blob: da8acce2a5c2776283a9a8c713820357047e1238 [file]
/--Ensure that `deriving Ord` works on indexed inductive types.-/
inductive Ty where
| int
| bool
inductive Expr : Ty → Type where
| a : Expr .int
| b : Expr .bool
deriving Ord
inductive Vec (α : Type u) : Nat → Type u
| nil : Vec α 0
| cons : α → {n : Nat} → Vec α n → Vec α (n+1)
deriving Ord