lean4-htt/tests/lean/run/issue12240.lean
Joachim Breitner 4c5e3d73af
fix: deriving Ord with indexed data type (#12243)
This PR fixes #12240, where `deriving Ord` failed with `Unknown
identifier a✝`.
2026-01-29 20:50:14 +00:00

9 lines
307 B
Text

inductive InContext : Nat → List Nat → Type
| here {x : Nat} {xs : List Nat} : InContext x (x::xs)
| there {x y : Nat} {xs : List Nat} : InContext x xs → InContext x (y::xs)
deriving Ord
inductive Foo : Nat → Nat → Type
| left {n : Nat} : Foo 0 n
| right {n : Nat} : Foo n 0
deriving Ord