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

refactor: replace ignoreLevelMVarDepth by levelAssignDepth #1953

Merged
merged 1 commit into from Dec 19, 2022

Conversation

gebner
Copy link
Member

@gebner gebner commented Dec 14, 2022

This removes the "global" ignoreLevelMVarDepth option that allows assignment of level mvars at any depth, by a much more restricted levelAssignDepth field in the metavariable context, which only allows assignment of level mvars at depth greater or equal to levelAssignDepth. The withNewMCtxDepth is function gets an extra argument to opt-in to allowing level mvars from the outer scope to be assigned. This API is enough for TC synthesis to work just like it does now.

Fixes #1951.

@gebner gebner added the dev meeting It will be discussed at the (next) dev meeting label Dec 14, 2022
@gebner gebner force-pushed the levelmvarassigndepth branch 4 times, most recently from 0a7b0f0 to 5daccbd Compare December 14, 2022 03:14
@gebner gebner enabled auto-merge (rebase) December 19, 2022 18:03
@gebner gebner merged commit e386d59 into leanprover:master Dec 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev meeting It will be discussed at the (next) dev meeting
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Universe parameters assigned by out-params during simp
2 participants