Login
You're viewing the functional.cafe public feed.
  • Nov 22, 2026, 4:58 PM

    I can see why it's a great idea.

    But I am very used to writing programs that compile fine but don't do what I expect. I am guessing that there is something about Lean that makes that at least *less* likely but the implicit faith people talking about it are displaying makes me think there is something I am missing.

    Does it only allow redefinitions in certain circumstances? That would help at least.

    @Yuvalne @lrhodes

    💬 2🔄 0⭐ 2

Replies

  • Nov 22, 2026, 5:12 PM

    @dogfox @Yuvalne I think the key here is Lean plus Mathlib. Mathlib is basically a peer-reviewed library of mathematical formulations, and if a line in your code matches the Mathlib formulation, it's generally accepted as orthodox. The first step in verifying Alpöge's lean proof, for example, was checking to ensure that his statement of the Reimann hypothesis matched the version in Mathlib.

    💬 0🔄 0⭐ 2
  • Nov 23, 2026, 11:11 PM

    @dogfox Lean has a "comparator" that verifies two different files end up assigning the same values to variables with the same names. As such, rather than poring over AI slop, mathematicians can manually write and audit a much shorter file containing just a theorem statement (which had already been done for the RH) before using Lean to check 1) logical correctness and 2) alignment with the problem statement.

    @Yuvalne @lrhodes

    💬 0🔄 0⭐ 1