mathcontest-lean is a collection of formalized mathematics olympiad problems written in Lean 4. The goal of this project is to rigorously verify solutions to contest problems.
OKTV/
— Problems from the Hungarian National Secondary School Academic CompetitionAranyDaniel/
— Problems from the Dániel Arany Secondary School Mathematics Competition
You can try out the proofs directly in your browser using the Lean 4 Web Editor.
Just copy and paste the Lean code from this repository into the editor — no installation required.
Sometimes even official solutions contain subtle mistakes. This section tracks such discoveries made during formalization.
Problem | Official Solution | Mistake |
---|---|---|
OKTV2006_I_II_P5 | oktatas.hu | The official solution doesn't check whether p = 19 after determining that 7 < p < 21. Fortunately, this doesn't affect the final result. |