lean4-htt/tests/lean/run/structuralIssue.lean
2020-10-12 16:58:30 -07:00

18 lines
278 B
Text

new_frontend
def f (xs : List Nat) : Nat :=
match xs with
| [] => 0
| x::xs =>
match xs with
| [] => 0
| _ => f xs + 1
def g (xs : List Nat) : Nat :=
match xs with
| [] => 0
| y::ys =>
match ys with
| [] => 0
| _::_::zs => g zs + 1
| zs => g zs + 3