forked from leanprover/lean4
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix:
simp
fails to discharge autoParam
premises even when it can …
…reduce them to `True` (leanprover#3314) closes leanprover#3257
- Loading branch information
1 parent
435fe6a
commit 2bc44f6
Showing
2 changed files
with
19 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
structure T : Prop | ||
structure U : Prop | ||
|
||
theorem foo : T → U := λ _ => {} | ||
theorem bar : (_ : T := by trivial) → U := λ _ => {} | ||
|
||
-- fails as expected | ||
example : U := by | ||
fail_if_success simp | ||
sorry | ||
|
||
-- works as expected, discharging `T` via `T.mk` | ||
example : U := by | ||
simp [foo, T.mk] | ||
|
||
example : U := by | ||
set_option trace.Meta.Tactic.simp true in | ||
simp [bar, T.mk] |