Project ideas from Hacker News discussions.

Fermat's Last Theorem in Lean 4

📝 Discussion Summary (Click to expand)

1. Reusability and library‑ready formalizations
Commenters stress the desire to extract usable lemmas and foundations from the proof rather than treating it as a one‑off result.
- black_knight: “I wonder if any piece of the lean code is in a shape which means it could be contributed to one of the existing Lean libraries.”
- Jhsto: “…finding reusable parts that can be built into libraries (that's lemmas in Lean 4 sense).”
- black_knight: “Kevin might not care, but I care more about building the foundation for future proofs and human understanding than I do about this particular result.”

2. Admiration for the achievement
Many participants simply celebrate the result as impressive work.
- abhv: “This is a very impressive result. Bravo to that team.”

3. Concerns about the trustworthiness of the proof system
A recurring theme is skepticism about whether the Lean kernel and its toolchain can be guaranteed error‑free.
- kmoser: “Serious question: how do you prove that the Lean interpreter itself (not to mention the toolchain built around it) is error‑free? Isn't this turtles all the way down to some degree?”
- ezwoodland: “You can only do so in another framework that might itself have bugs. Lean is called that because the hope is the part that has to be correct by inspection ('the kernel') is small or 'lean'. The kernel does have bugs sometimes.”


🚀 Project Ideas

LeanProofRefactor

Summary

  • Automatically extracts reusable lemmas from large Lean proofs and refactors them into library‑ready modules.
  • Core value: reduces manual effort to turn capstone formalizations into building blocks for future Lean developments.

Details

Key Value
Target Audience Lean theorem‑prover users, formalization researchers, library maintainers
Core Feature Proof‑tree analysis + lemma suggestion + automated refactoring
Tech Stack Lean 4, Rust (for parsing), Python/LLMs for pattern detection, LSP integration
Difficulty Medium
Monetization Hobby
#### Notes
- HN users lamented “it takes a lot of human input to make Fable write code nice enough for a formalisation library” (black_knight) and wanted reusable parts (Jhsto). This tool directly addresses that pain.
- Could spark discussion on best practices for lemma extraction and lead to more modular Lean libraries.

LeanKernelVerifier

Summary

  • Provides cross‑validation of the Lean kernel by translating its core inference rules into trusted proof assistants (Coq, Isabelle) and checking consistency.
  • Core value: gives the community confidence that the Lean kernel is error‑free, addressing the “turtles all the way down” concern.

Details

Key Value
Target Audience Lean developers, proof‑assistant researchers, safety‑critical formal methods practitioners
Core Feature Automated translation of Lean kernel tactics to Coq/Isabelle and mutual verification
Tech Stack OCaml/Lean kernel extraction, Coq/Isabelle APIs, Docker, CI pipelines
Difficulty High
Monetization Hobby
#### Notes
- Commenters questioned “how do you prove that the Lean interpreter itself is error‑free?” (kmoser) and noted the kernel is supposed to be small but can have bugs (ezwoodland). This service offers a practical way to increase trust.
- Could foster collaboration between Lean and other proof‑assistant communities and become a benchmark for kernel correctness.

LeanLibraryHub

Summary

  • A collaborative hub for Lean library contributors that offers automated linting, lemma‑gap detection, and PR‑ready suggestions to make contributions library‑friendly.
  • Core value: streamlines the contribution process, lowers the barrier to reuse, and helps build a foundation for future proofs as requested by HN users.

Details

Key Value
Target Audience Lean library maintainers, contributors, educators, formalization enthusiasts
Core Feature Repo‑wide analysis that flags non‑library‑style code, proposes lemmas, and runs CI checks
Tech Stack Lean 4, GitHub Actions, Rust analyzer, web frontend (React/TypeScript), database (Postgres)
Difficulty Medium
Monetization Hobby
#### Notes
- black_knight said he cares about “building the foundation for future proofs and human understanding” and wants pieces in good enough shape for Lean libraries; Jhsto noted LLMs struggle to find reusable parts. LeanLibraryHub directly supports that goal.
- Would encourage discussion on library standards and could become a go‑to place for sharing verified Lean components.

Read Later