Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add axiom_use generator #107

Merged
merged 3 commits into from
Jun 12, 2023
Merged

add axiom_use generator #107

merged 3 commits into from
Jun 12, 2023

Conversation

digama0
Copy link
Member

@digama0 digama0 commented May 1, 2023

Based on a request at metamath/set.mm#3150 (comment) . 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:

  • It only supports compressed proofs, and will panic on normal mode proofs, and possibly panic or give the wrong result on packed proofs.
  • It assumes that axioms are marked with the ax- prefix, meaning that definitions are ignored, but also nonstandardly named axioms.

Copy link
Collaborator

@tirix tirix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good for me, just one point I don't fully understand.

src/axiom_use.rs Show resolved Hide resolved
src/main.rs Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants