Zulip Chat Archive
Stream: Is there code for X?
Topic: Can I render my Lean as HTML?
Nicholas Dyson (Jun 25 2021 at 08:33):
Theorem provers can (I am aware that Coq does, at least) have associated tools that convert a source file into a pretty HTML document usable for showing the results. Does such a tool exist for Lean? I was able to find this (https://github.com/leanprover-community/format_lean) link, but it hasn't been updated in a year and I can't get it to work - it errors even on an absolutely minimal file containing nothing but a proof that x = x.
Is there a more up-to-date alternative?
Eric Wieser (Jun 25 2021 at 08:36):
I assume doc-gen doesn't do what you're after?
Johan Commelin (Jun 25 2021 at 08:36):
@Patrick Massot is our expert here. But roughly, I think we just lack the people power right now to build these tools. Even though we would love to have more tools in this direction.
Eric Wieser (Jun 25 2021 at 08:36):
(it shows results but not proofs)
Patrick Massot (Jun 25 2021 at 08:36):
format_lean
hasn't been updated because it just works for its intended purpose last time I checked.
Patrick Massot (Jun 25 2021 at 08:36):
For instance this page is using it (there is Lean code at the bottom).
Patrick Massot (Jun 25 2021 at 08:37):
But it's a pretty rudimentary tool, we are waiting to find man power to port Alectryon.
Nicholas Dyson (Jun 25 2021 at 08:50):
Thanks for the advice, I wasn't aware of doc-gen
. I can probably use that to do most of what I need.
Eric Wieser (Jun 25 2021 at 09:19):
While doc-gen is very much built for mathlib only, it's not too hard to tweak it to run on other projects
Last updated: Dec 20 2023 at 11:08 UTC