metamath / metamath-knife

Metamath-knife can rapidly verify Metamath proofs, providing strong confidence that the proofs are correct.
Apache License 2.0
25 stars 9 forks source link

add axiom_use generator #107

Closed digama0 closed 1 year ago

digama0 commented 1 year ago

Based on a request at https://github.com/metamath/set.mm/issues/3150#issuecomment-1529101901 . This generates a list of the axioms used by every statement in set.mm, like so:

a1ii:
idi:
mp2: ax-mp
mp2b: ax-mp
a1i: ax-mp ax-1
2a1i: ax-mp ax-1
mp1i: ax-mp ax-1
a2i: ax-mp ax-2
mpd: ax-mp ax-2
...

It takes about 200ms to generate the file.

Some caveats: This is only really designed to work for set.mm. In particular it bakes in two assumptions which are correct for set.mm but not necessarily for other databases: