-
Notifications
You must be signed in to change notification settings - Fork 446
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
af301fa
commit 8114067
Showing
3 changed files
with
60 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
@[simp] def foo (a : Nat) : Nat := | ||
2 * a | ||
|
||
example : foo = fun a => a + a := | ||
by | ||
fail_if_success simp -- should not unfold `foo` into a lambda | ||
funext x | ||
simp -- unfolds `foo` | ||
trace_state | ||
simp_arith | ||
|
||
@[simp] def boo : Nat → Nat | ||
| a => 2 * a | ||
|
||
example : boo = fun a => a + a := | ||
by | ||
fail_if_success simp -- should not unfold `boo` into a lambda | ||
funext x | ||
simp -- unfolds `boo` | ||
trace_state | ||
simp_arith |