Formally verified 3D CSG mesh intersection: trust 93 lines of spec, not AI code

A new project, verified-3d-mesh-intersection, implements a formally verified 3D constructive solid geometry (CSG) mesh intersection in Lean 4. The key idea: trust only 93 lines of formal specification, not the 1000+ lines of AI-written implementation code. The AI automatically wrote over 60,000 lines of Lean proofs, which never need human review — the Lean checker guarantees correctness at compile time.
How it works
The specification pins down the exact surface of the resulting mesh and guarantees well-formedness conditions on the triangulation. The core identity:
solid (meshIntersect M1 M2) = solid M1 ∩ solid M2where solid represents the infinite set of points inside a mesh. Lean can reason about these infinite sets and prove the equality exactly.
Key details
- Language: Lean 4, compiled to WebAssembly via
emcc-wasm.sh. - Performance: 24 seconds to intersect two 70k-triangle Stanford bunny meshes. Slow but prioritizes verification over speed.
- Web demo: Runs the verified kernel in-browser at schildep.github.io/verified-3d-mesh-intersection. Supports STL import. No data sent to server.
- Human review: Only the 93-line spec needs reading. The 1000+ lines of AI implementation and 60k+ lines of AI proofs are treated as black boxes.
- Well-formedness: If inputs are not well-formed (e.g., non-closed or self-intersecting), the algorithm must detect and report correctly — formalized in the spec.
Who it's for
Developers working with 3D geometry, CSG operations, or formal verification, especially those skeptical of trusting AI-generated code without guarantees.
Architecture
The repository contains the Lean kernel (CSG/), a C wrapper (wrapper.c), and web glue code (web/). Build commands are provided via lakefile.lean, emcc-wasm.sh, and build_web_demo.sh. The UI and glue code are not formally verified.
📖 Read the full source: HN LLM Tools
👀 See Also

Agentic Coding Is a Trap: Cognitive Debt and Atrophy
Lars Faye argues that agentic coding tools like Claude Code cause cognitive atrophy, vendor lock-in, and increased complexity, shifting the burden from writing code to reviewing generated code, which degrades developer skills.

Inference Pricing Analysis Shows 4.4x Spread for Same Model Across Providers
Analysis of inference pricing for Llama 3.1 70B Instruct shows a 4.4x cost difference between providers, with DeepInfra at $0.20/$0.27 per million tokens and Together at $0.88/$0.88. For reasoning models, the spread reaches ~30x between DeepSeek R1 and OpenAI o1.

Google Chrome Silently Downloads 4GB Gemini Nano Model Without Consent
Chrome automatically downloads a 4GB Gemini Nano model (weights.bin) to user devices without consent or opt-out, and re-downloads it if deleted. This raises legal (ePrivacy/GDPR) and environmental concerns at Chrome's billion-device scale.

Claude Code Bug Replaces German Umlauts with ASCII Substitutes
Claude Code and Claude.ai app have been randomly replacing German umlauts (ä, ö, ü, ß) with ASCII substitutes (ae, oe, ue, ss) since December 2025. The bug persists despite explicit instructions and has gone unfixed for over 3 months with no response from Anthropic support.