lean4-htt/tests/lean/run/1026.lean
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

23 lines
384 B
Text

def foo (n : Nat) : Nat :=
if n = 0 then 0 else
let x := n - 1
have := match () with | _ => trivial
foo x
termination_by n
decreasing_by sorry
theorem ex : foo 0 = 0 := by
unfold foo
sorry
/--
info: foo.eq_def (n : Nat) :
foo n =
if n = 0 then 0
else
let x := n - 1;
have this := foo._proof_4;
foo x
-/
#guard_msgs in
#check foo.eq_def