Formally verified 3D mesh intersection - trust 93 lines of spec, not 1000+ lines of AI-written code
Summary
A project demonstrating a formally verified 3D mesh intersection implemented in Lean 4, using a concise 93-line specification to guarantee correctness while avoiding reliance on AI-written code. The workflow combines AI-assisted proofs with a Lean checker to certify conformance to the specification, and includes a web demo where the kernel runs locally in the browser. The article discusses performance trade-offs, comparisons to informal vibecoding, and the development process that used AI agents to produce proofs and implementations.