Formalize refutations: 1692 -> 47, 1832, 2441, 3050, 3456, 4065 #1069
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.
This is based on this paper describing a proof strategy for the above non-implications:
https://leanprover.zulipchat.com/#narrow/stream/458659-Equational/topic/Proposed.20new.20target.3A.2063.20and.201692.20.28.22Dupont.20and.20Dupond.22.29/near/477252513
There's still quite a bit of room for cleanup (e.g. factoring out common code from several
match
branches). It's also very likely that there are simpler ways to prove some of the longer lemmas (e.g.partial_function
), as I wasn't working off of the above paper for those proofs. However, this is now in a state where it's ready for review - I'm happy to spend more time minimizing this if it would be useful.Closes #607