Skip navigation
While working hard on the approach to deformalization of massive Lean repos like the Riemann…
0:00 / 1:21

While working hard on the approach to deformalization of massive Lean repos like the Riemann…

Bartosz Naskręcki

@nasqret19K followers

Visit on X
269 likesDownloadOriginal post

15,134 views

While working hard on the approach to deformalization of massive Lean repos like the Riemann Hypothesis, I wrote a new skill, Readback. It allows you to take hard-to-read Lean code and turn it into a high-quality mathematical paper. The intermediate step is to generate something called a structured proof. This is an intermediate step, and the setup is two-agentic. The results are presented in the repo, and they helped me nicely deformalize some critical parts of the Riemann Hypothesis proof. I hope more people will join and use their top agents to contribute high-quality deformalizations of Lean. The skill is still in development, so I hope to receive some feedback too.

14 Comments

Comments from the original post on X (Twitter)

  • Bartosz Naskręcki's profile picture

    @nasqret

    1/ Link:

    12 likes

  • Bartosz Naskręcki's profile picture

    @nasqret

    2/ The idea: never jump from Lean straight to prose. In between sits a structured proof: a tree of steps, each quoting at most 8 Lean lines, checked byte for byte against the pinned source. Only then is the note written, in standard mathematical language.

    6 likes

  • Bartosz Naskręcki's profile picture

    @nasqret

    4/ Tested on the Lean archive of the announced proof of the Riemann hypothesis (a claim; 175,187 modules): 3 notes, 57 pages. Blind round trip: a fresh session rewrote the 16 statements in Lean from the notes alone. Lean confirmed 9; none of the notes' statements was shown wrong.

    3 likes

  • Bartosz Naskręcki's profile picture

    @nasqret

    5/ Early release, 0BSD. It installs with make install and starts with two commands, one per agent. Feedback, and Lean artifacts to read, are welcome.

    2 likes

  • senno's profile picture

    @senno_kai

    good idea. I feel like math is heading towards lean first and paper second, or at least it is a new way of doing things. various reasons for this like agents performing better with this type of setup and journals being too slow to referee results.

    2 likes

  • Bartosz Naskręcki's profile picture

    @nasqret

    3/ Nothing hidden. Every argument of a Lean definition is written in the notes, and every hypothesis stands in its statement. The build enforces it, and the gate is itself tested on notes broken on purpose.

    2 likes

  • Somnia Librarian 📚's profile picture

    @ErnstKummer

    nice

    1 like

  • Subsidy Bro's profile picture

    @MAGASubsidyBro

    HUGE MISSED OPPORTUNITY to call it LeanBack

    1 like

  • tuberculosis's profile picture

    @xxmuizzi

    This is really cool. Would love to compare this with verbose lean.

    1 like

  • Bartosz Naskręcki's profile picture

    @nasqret

    Thanks, looking forward to your feedback.

    1 like

  • Eyal Weiss's profile picture

    @Eyal__Weiss

    Very cool. Thanks for sharing!

    1 like

  • Bartosz Naskręcki's profile picture

    @nasqret

    Thank you! Please send feedback if you manage to deformalize some Lean code. Curious to see what people will bring.

    1 like

  • Abc's profile picture

    @01100001bc

    @nasqret Czy to cos zmienia ?

  • Brian Kramer's profile picture

    @kramertweet

    I wanted my manuscript to sound more natural/human. Still needs fine-tuning, though, but applying the following really helped improve the prose. The biggest two things that were reduced: the sloganing and the contrast setups. HTH.