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

Tracking: explicit universes can improve performance substantially #12737

Open
mattrobball opened this issue May 7, 2024 · 0 comments
Open
Labels
performance-hack Something that improves performance but is poorly understood.

Comments

@mattrobball
Copy link
Collaborator

For AlgebraicGeometry.Scheme and similar bundled categories, elaboration seems to inject level metavariables resulting more steps in unification. Providing explicit universe annotations, Scheme.{u}, prevents this.

It would nice to understand what is happening.

@mattrobball mattrobball added the performance-hack Something that improves performance but is poorly understood. label May 7, 2024
mathlib-bors bot pushed a commit that referenced this issue May 7, 2024
Testing for leanprover/lean4#4085 exposed possible regressions typeclass synthesis which can be ameliorated using explicit universes. We do this and we add references to the issue #12737 tracking these changes.
apnelson1 pushed a commit that referenced this issue May 12, 2024
Testing for leanprover/lean4#4085 exposed possible regressions typeclass synthesis which can be ameliorated using explicit universes. We do this and we add references to the issue #12737 tracking these changes.
callesonne pushed a commit that referenced this issue May 16, 2024
Testing for leanprover/lean4#4085 exposed possible regressions typeclass synthesis which can be ameliorated using explicit universes. We do this and we add references to the issue #12737 tracking these changes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance-hack Something that improves performance but is poorly understood.
Projects
None yet
Development

No branches or pull requests

1 participant