lean4-htt/tests/lean/wf2.lean
2021-12-17 06:50:20 -08:00

6 lines
126 B
Text

def g (x : Nat) (y : Nat) : Nat :=
if x < y then
2 * g (x-1) y -- Error here
else
0
termination_by measure (·.1)