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

feat: use whnf in ext, more like Lean3 behaviour #156

Closed
wants to merge 3 commits into from

Conversation

semorrison
Copy link
Collaborator

We restore Lean3-like behaviour to ext, by keeping track of two discrimation trees. The first is the current behaviour of ext, while the second indexes using whnf.

See leanprover-community/mathlib4#5191 for examples of how this works out in mathlib4. (That PR is far from exhaustive.)

Obviously this will be slower, but I hope it's considered worth it for the simplifications available in mathlib4. Note this is still much faster than the mathlib3 behaviour (where there wasn't any discrimation tree at all, just a single big bucket of lemmas). apply is fast.

@semorrison
Copy link
Collaborator Author

Per discussion on zulip, I don't want to pursue this for now.

@semorrison semorrison closed this Jun 19, 2023
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.

None yet

1 participant