You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reduced the issue to a self-contained, reproducible test case.
Description
@[elab_as_elim]
def strongSubRecursion {P : Nat → Nat → Sort _} (H : ∀ a b, (∀ x y, x < a → y < b → P x y) → P a b) :
∀ n m : Nat, P n m
| n, m => H n m fun x y _ _ => strongSubRecursion H x y
fails with unexpected eliminator resulting type P _x✝.1 _x✝.2.
@Khasuggested on zulip that "I think it's trying to apply the attribute to the WF recursion helper?"
Applying the attribute afterwards is a satisfactory workaround for now.
Activity
Squashed commit of the following:
Squashed commit of the following:
chore: use elab_as_elim directly, now that lean4#1900 is fixed (#9288)