-
Notifications
You must be signed in to change notification settings - Fork 297
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
[Merged by Bors] - fix(tactic/delta_instance): handle universe metavariables #2463
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bors merge
@@ -1805,6 +1817,7 @@ do new_decl_type ← declaration.type <$> get_decl new_decl_name, | |||
(_, inst) ← solve_aux tgt | |||
(intros >> reset_instance_cache >> delta_target [new_decl_name] >> apply_instance >> done), | |||
inst ← instantiate_mvars inst, | |||
inst ← replace_univ_metas_with_univ_params inst, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you know where the universe metavariables come from here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In my examples that provoked this PR, they were the morphism universe levels associated to a category instance. In particular, see the test case I added:
attribute [derive large_category] Mon
which used to fail with a "declaration has universe metavariables" type error.
Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
Pull request successfully merged into master. Build succeeded: |
…-community#2463) Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
…-community#2463) Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
…-community#2463) Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
No description provided.