Zulip Chat Archive
Stream: Lean for teaching
Topic: Offline proof presentation e.g. in PDF
thielema (May 29 2025 at 09:30):
I like to send a Lean4 proof of a mathematical problem to a mathematician who has no Lean installed. I thought it would be nice to have a tool, that converts a Lean4 proof to a kind of flip-book animation packaged in a PDF. That is, the PDF shall present the view of, say, VSCode, that is, the proof script on the left side and the current variables and goals on the right side. Landscape paper orientation would be prefered. Every PDF page highlights one proof step and shows the according outcome on the right side.
Is there already a tool that can do this?
Could be also nice for preserving proofs and may simplify upgrading them to future versions of Mathlib.
Jannis Limperg (May 29 2025 at 11:01):
Verso lets you generate websites and PDFs where you can see the proof states. Here's an example. (Ignore the ugly proof; it's AI-generated.) You might be able to get Verso to produce a document in your desired format by mashing together the verso-blog and verso-manual genres.
Dan Velleman (May 29 2025 at 21:20):
I made such displays in How To Prove It with Lean, especially in Chapter 3. However, I didn't have a tool to do it--I just created the displays by hand.
Patrick Massot (May 30 2025 at 16:28):
Unless you really really want a pdf rather than a web page then verso is definitely the way to go.
Shreyas Srinivas (May 30 2025 at 19:13):
Is there a verso tutorial in the style of markdown tutorials?
Last updated: Dec 20 2025 at 21:32 UTC