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

16 lines
333 B
Text

axiom T : Type
axiom T.lt : T → T → Prop
axiom T.wf_lt : WellFounded T.lt
axiom T.f : T → T
instance : WellFoundedRelation T := ⟨_, T.wf_lt⟩
axiom T.lt_f x : (T.f x).lt x
set_option pp.raw true
#guard_msgs in
noncomputable def foo (t : T) : Unit :=
foo (T.f t)
termination_by t
decreasing_by
have := T.lt_f t
grind