Sign in
◑
Theme
fuchsia
/
third_party
/
github.com
/
leanprover
/
lean4
/
refs/heads/upstream/realize-nested-kernel-check
/
.
/
tests
/
elab
/
localNameResolutionWithProj.lean
blob: d15d59d7fbfcd0adbcf035a3174a03afeb9bb4ad [
file
] [
edit
]
macro
"foo!"
x
:
term
:
term
=>
`(let xs := $x; xs.succ + xs)
def f1 (x : Nat) : Nat :=
foo! x+1
theorem ex1 (x : Nat) : f1 x = Nat.succ (x+1) + (x + 1) :=
rfl
def f2 (xs : Nat) : Nat :=
foo! xs
theorem ex2 (x : Nat) : f2 x = Nat.succ x + x :=
rfl