-
Notifications
You must be signed in to change notification settings - Fork 350
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We should not allow `h.1` if `h` is a proposition and the result is not. The recursor for `h`'s type can only eliminate into `Prop`.
- Loading branch information
1 parent
622995b
commit db38bc4
Showing
3 changed files
with
11 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
def foo (h : ∃ x: Nat, True) := h.1 | ||
theorem contradiction : False := | ||
(by decide : 0 ≠ 1) (show foo ⟨0, trivial⟩ = foo ⟨1, trivial⟩ from rfl) |
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,4 @@ | ||
unsound.lean:1:4-1:7: error: (kernel) invalid projection | ||
h.1 | ||
unsound.lean:3:28-3:31: error: unknown identifier 'foo' | ||
unsound.lean:3:47-3:50: error: unknown identifier 'foo' |