lean4-htt/tests/lean/run/262.lean
2022-02-26 09:12:34 -08:00

16 lines
269 B
Text

mutual
inductive ConE : Type where
| nilE : ConE
| extE : ConE → TyE → ConE
inductive TyE : Type where
| UE : ConE → TyE
end
def length (ΓE : ConE) : Nat :=
match ΓE with
| ConE.nilE => 0
| ConE.extE ΓE AE => (length ΓE) + 1
termination_by _ e => e