SkillAgentSearch skills...

Karatsuba

No description available

Install / Use

/learn @Forthoney/Karatsuba
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

karatsuba

An provably correct implementation of the Karatsuba multiplication algorithm in Lean.

The Karatsuba algorithm is a "fast" multiplication algorithm for arbitrary precision integer multiplication where fast means "better than O(n^2)". It is reasonably practical and libraries such as GMP use it for multiplication of very large numbers.

Ironically, this implies Lean programmers probably should not use my implementation when running code. Lean's runtime also uses GMP for arithmetic on Nats, meaning for sufficiently large Nats, GMP's ultra-optimized karatsuba algorithm will kick in anyways.

View on GitHub
GitHub Stars4
CategoryDevelopment
Updated1mo ago
Forks0

Languages

Lean

Security Score

65/100

Audited on Feb 21, 2026

No findings