Sign in
◑
Theme
fuchsia
/
third_party
/
github.com
/
leanprover
/
lean4
/
b8a31ed10eeabaca678ab303ec3f4d7d5a817841
/
.
/
tests
/
lean
/
letFun.lean
blob: 15aa19971042602e346381765a159c9da3292e82 [
file
]
#check
let_fun f x
:=
x
*
2
let_fun x
:=
1
let_fun y
:=
x
+
1
f
(
y
+
x
)
example
(
a b
:
Nat
)
(
h1
:
a
=
0
)
(
h2
:
b
=
0
)
:
(
let_fun x
:=
a
+
1
;
x
+
x
)
>
b
:=
by
simp
(
config
:=
{
beta
:=
false
})
[
h1
]
trace_state
simp
[
h2
]