-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: report (pending) type mismatch errors in
simp
arguments
- Loading branch information
1 parent
7485ab5
commit f816e61
Showing
4 changed files
with
29 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
example (p : Prop) [Decidable p] (hnp : ¬ p) : | ||
if decide p then 0 = 1 else 1 = 1 := by | ||
simp [hnp, decideEqFalse Unit] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
simpArgTypeMismatch.lean:3:13-3:31: error: application type mismatch | ||
decideEqFalse Unit | ||
argument | ||
Unit | ||
has type | ||
Type : Type 1 | ||
but is expected to have type | ||
¬?m : Prop |