Struct lt wf#349
Open
BennoLossin wants to merge 3 commits into
Open
Conversation
This comment has been minimized.
This comment has been minimized.
`prove_wf` did not consider assumptions when proving well-formedness goals, which the general `prove` mechanism does, so instead of directly recursing into `prove_wf`, go through `prove`.
Collaborator
|
Thanks for contributing to formality! :) |
Contributor
Author
|
I totally forgot about this PR... @nikomatsakis I updated the implementation as well, instead of having an |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
(depends on #344)
What does this PR do?
@_Benno Lossin|458499 said:
Xiang and I looked into this a bit in our meeting today and we think that we actually found the issue:
prove_wfdoesn't have a rule to prove wf via assumption and it is directly called from itself (when checking wf of parameters for example), so any assumption proving logic inprove_wcdoesn't get used.There are two solutions:
prove_wcorprovefromprove_wfinstead of directly recursing,via-assumptionrule toprove_wfI have implemented the latter one (since I thought it would be less overall churn) to see what other things break/change. There are some test output changes and I'll send a PR.
From an overall design perspective, I think we should either handle assumptions once at the very top in
prove. Or eachprove_*function should do it themselves.Disclosure questions
AI disclosure.
No ai used.
Confidence level.