Hi Ender,
The metamath-knife utility has the -F
option to output Metamath's database formulas as s-expressions since
version 0.3.9 , which is a prefix format with parentheses.
Here is an example of outputs:
ax-1: (wi wph (wi wps wph))
ax-2: (wi (wi wph (wi wps wch)) (wi (wi wph wps) (wi wph wch)))
ax-3: (wi (wi (wn wph) (wn wps)) (wi wps wph))
mp2.1: wph
mp2.2: wps
mp2.3: (wi wph (wi wps wch))
areacirc: (wi (wa (wcel cR cr) (wbr cc0
cle cR)) (wceq (cfv carea cS) (co cpi cmul (co cR cexp c2))))
This option does not show which statements are hypotheses and which ones are theorem statements, but it would be easy to modify it to print different information.
BR,
_
Thierry
Hi Ender,
what script could expand a proof fast on-demand to its steps with full statements written down
Metamath-knife also has the option -e to output the full proof of a single statement in MMP format (with steps in ASCII, not as S-expressions), as a file.
Here again since the tool is thought as a library, it would be
easy to customize.
(Sorry for spamming, I should have answered both points in a single mail)
BR,
_
Thierry