A collection of Lean 4 files written as a personal study of modern algebra and its applications to cryptography. Built on top of Mathlib.
Status: heavily work in progress. Expect gaps, rough edges, and frequent rewrites; files will be added, restructured, and refined over time as the study progresses.
- Algebra: core algebraic structures
- Crypto: cryptographic schemes built on the above
- DiffieHellman: key exchange in a cyclic group
- Rsa: RSA correctness from Bézout and Euler's theorem
- EllipticCurves: Weierstrass curves over finite fields
lake buildThe Mathlib revision is pinned in lakefile.toml.
