lean4-htt/tests/lean/letFun.lean.expected.out
Kyle Miller 3854ba87b6
feat: pretty print letFun using have syntax (#8372)
This PR modifies the pretty printer to use `have` syntax instead of
`let_fun` syntax.
2025-05-16 15:10:01 +00:00

26 lines
335 B
Text

have f := fun x => x * 2;
have x := 1;
have y := x + 1;
f (y + x) : Nat
a b : Nat
h1 : a = 0
h2 : b = 0
⊢ b <
have x := 1;
x + x
(have this := id;
this)
1 : Nat
a b : Nat
h : a > b
⊢ b < a
have n := 5;
⟨[], ⋯⟩ : { as // as.length ≤ 5 }
rfl : (have n := 5;
n) =
have n := 5;
n
rfl : 2 = 2
5
have n := 5;
n