logoalt Hacker News

buzzy_hacker • yesterday at 11:03 PM • 2 replies • view on HN

Please keep up your effort and write up your approach in a blog post, people would love to read it still!


Replies

jychang • yesterday at 11:41 PM

The most important thing is to take regular Software Engineering skills and apply it to Lean. The basic concepts like DRY still hold. You also want to reuse Mathlib as much as possible.

When you formalize a proof with Lean, you want to start off with the Challenge.lean statement file, which is good standard practice (which is surprising to me that the original proof by Alpoge lacked one). Make sure that's correct, and just replace the proof with a `sorry` statement. If your Challenge.lean is correct, then that means nobody can complain about you "proving the wrong thing". Then, counterintuitively, you want to liberally use `sorry` statements in your proof as you go. For software engineers, just think of `sorry` statements as NotImplemented exceptions. Track all the sorry statements in a centralized location, and have the AI build out the proof with breadth first search, not depth first. That's the biggest rookie mistake; most people tell their AI to do one component at a time, DFS style. You will get a much cleaner codebase if you do BFS.

thirtygeo • yesterday at 11:05 PM

Yes and what if it is different!!?