-
Notifications
You must be signed in to change notification settings - Fork 580
fix: strip optional parameters when elaborating the termination hints #7335
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
fix: strip optional parameters when elaborating the termination hints #7335
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.
I wonder if it wouldn’t be more natural to pass (cleanupAnnotations := true
) to the forallBoundedTelescope
s within TerminationMeasure.elab
Mathlib CI status (docs):
|
Before this gets merged – did you see my review comment
Also, this should come with a test case so that we don’t break it again. Just drop a suitable file in |
This PR modifies
elabTerminationByHints
in a way that the type of the recursive function used for elaboration of the termination measure is striped of from optional parameters. It prevents introducing dependencies between the default values for arguments, that can cause the termination checker to fail.Closes #6351.