logoalt Hacker News

keyle • yesterday at 11:08 PM • 1 reply • view on HN

Is anyone going through this stuff? [1]

It looks like a miserable job; reading LLM produced code is bad enough but I feel lean could have been named 'thick'.

[1] https://github.com/lsernau/grh-lean/blob/main/grh-compact/sr...


Replies

Paracompact • yesterday at 11:53 PM

There are only two theorem statements here. When vetting a (trusted) theory as a mathematician, scrutinizing proof bodies tends to be the very last thing on the checklist. Top-down learning beats bottom-up.

Plus, this big proof really isn't that bad. What a line like

simp_rw [invDFT_apply, ← nsmul_eq_mul', AddChar.map_nsmul_eq_pow, ← smul_sum, @sum_comm _ _ ℕ, ← sum_smul, hψ.fourierTransform_eq_inv_mul_gaussSum]

really means to say is simply, "simplify and rewrite the goal statement iteratively according to these equalities, in the specified directions." Understanding this in an interactive proof assistant just comes down to comparing the before-and-after of the goal state, only referring to the specific equalities mentioned if it's not obvious to you. The `grw` tactic used all over is similarly a rewriter.

➕ show 1 reply