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

Allow disabling base axioms #11

Open
MithicSpirit opened this issue Aug 15, 2024 · 1 comment
Open

Allow disabling base axioms #11

MithicSpirit opened this issue Aug 15, 2024 · 1 comment

Comments

@MithicSpirit
Copy link

It may be desirable in some cases to prohibit the use of an axiom like "Classical.choice", which goes against constructivity. This could be solved by having a way to prevent isBaseAxiom from working altogether, instead requiring the user to manually tag all the axioms they wish to use. A more elegant solution might be to do something like the unused tactic linter in Mathlib, where an IO.Ref (HashSet _) is used, which can be manually and arbitrarily modified.

@robertylewis
Copy link
Owner

Thanks for the suggestion. I've added this feature and used it in practice! But I still need to document the validAxioms attribute. See https://github.com/BrownCS1951x/fpv2024/blob/main/LoVe/Homework/Homework2.lean#L114 as an example.

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

No branches or pull requests

2 participants