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:
记忆技巧:找「更大」→ 弹掉 ≤ 当前的(栈顶保留比当前大的);找「更小」→ 弹掉 ≥ 当前的;找「相等可接受」→ 用 < / ,否则用 <= / =。
。业内人士推荐爱思助手下载最新版本作为进阶阅读
Что думаешь? Оцени!
A developer's job is ship value. Code is just one input in that job—planning, reviewing, and teaching the system all count too. Effective compound engineers write less code than before and ship more.