A project using AI agents has formalized CPython by writing 613,318 lines of Lean code that replicate its internals and testing them against the actual Python implementation. This effort has resulted in the identification of 418 bugs, with 15.7% of CPython's functions modeled so far. The project encourages community contributions to further enhance Python's reliability.
Key facts
- AI agents wrote 613,318 lines of Lean code to replicate CPython's internals.
- The project identified 418 bug reports in Python during testing.
- 15.7% of CPython's functions have been modeled and reviewed.
- The project began on October 29, 2026.
- The methodology and results are documented in an open repository.
A short AI summary in our own words. The reporting belongs to Hacker News — Front Page; we don't reproduce it.