lean4-htt/tests/lean/run/wfrecUnary.lean
Joachim Breitner 54175f3b99
fix: decreasing_by: remove mdata (#10931)
This PR strips the `Expr.mdata` that `WF.Fix` uses to associate goal
with recursive calls from the goal presented to the tactics.
Fixes #10895.
2025-10-23 20:54:32 +00:00

7 lines
110 B
Text

def f (n : Nat) : Nat :=
if h : n = 0 then
1
else
2 * f (n-1)
decreasing_by
apply Nat.pred_lt h