"I was pulling pipes off the houses to stop myself being dragged out - the wave was powerful enough to break doors and windows."
At the Lean FRO, Kim Morrison, a Senior Research Software Engineer, recently ran an experiment that went well beyond our expectations. An AI agent converted zlib, a widely used C compression library embedded in countless systems, to Lean, with minimal human guidance. No special tooling was built. It was Claude, a general-purpose AI, with no special training for theorem proving, out of the box. The workflow had four steps. First, the AI produced a clean, readable Lean implementation of the zlib compression format, including the DEFLATE algorithm at its core. Second, the Lean version passed the library’s existing test suite, confirming behavioral equivalence. Third, key properties were stated and proved, not as tests, but as mathematical theorems. The capstone theorem:
,这一点在clash下载中也有详细论述
GetMemberType[T, S: Literal[str]]: Extract the type of the
Anyone new to the module should be able to check the list of dependencies easily. But it’s naive to point him/her to the documentation. Docs are rarely up to date. It would be better if she/he could rather check the module’s bootstrap code (in some languages also the required public interfaces).