lean4-htt/tests/lean/wf2.lean
Leonardo de Moura 381f66428a chore: use termination_by'
We are going to define a higher level syntax for `termination_by`.
2022-01-11 15:00:53 -08:00

6 lines
127 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)