-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simultaneous superposition bug fix and oracleInst modification
I'm confident that the change made to the simultaneous superposition code is a strict improvement. Currently at least, it is possible for Expr.replaceGreenWithPos to miss occurrences of sidePremiseLhs which can cause a unification problem to succeed without a rewrite occurring at mainPremisePos. This commit's simultaneous superposition change ensures that even if occurrences of sidePremiseLhs can be missed elsewhere in the main clause, superposition will always rewrite at mainPremisePos. However, the change to oracleInst this commit makes is much more suspect. I made the change because with the previous oracleInst code (and this commit's simultaneous superposition bug fix), the following problem would fail due to an application type mismatch exception: theorem proj_test (h1 : ∀ x : Nat, x > 0 → ∃ y : Fin x, y.1 = 0) (h2 : 3 > 0) : ∃ z : Fin 3, z.1 = 0 := by duper [h1, h2] {portfolioInstance := 7} With this commit's change to oracleInst, this problem no longer results in an error. However, tests poly₃, poly₄, and poly₅ in DReflTests.lean now fail even though they previously succeeded.
- Loading branch information
Showing
4 changed files
with
63 additions
and
14 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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