lean4-htt/tests/lean/run/issue11665.lean
Joachim Breitner 0f2ac0b099
feat: sparse sparse casesOn splitting in match equations (#11666)
This PR makes sure that when a matcher is compiled using a sparse cases,
that equation generation also uses sparse cases to split.
This fixes #11665.
2025-12-14 14:59:45 +00:00

13 lines
394 B
Text

opaque opq : Nat → Nat
/-- A particular tricky inductive type -/
inductive T : Nat → Type where
| mk3 n : T (n + 1)
| mk4 n : T (opq n) -- Removing this constructor makes the issue go away
def test1 : (n : Nat) → T n → Unit
| Nat.succ _, T.mk3 _ => ()
| _, _ => ()
def eqns := @test1.match_1.eq_1 -- used to fail
def congreqns := @test1.match_1.congr_eq_1 -- used to faile