Module IndexedTyp <: INDEXED_TYPE.
Definition t := typ.
Definition index (x: t) :=
match x with
| Tany32 => 1%positive
| Tint => 2%positive
| Tsingle => 3%positive
| Tany64 => 4%positive
| Tfloat => 5%positive
| Tlong => 6%positive
end.

Lemma index_inj: forall x y, index x = index y -> x = y.
Lemma lt_not_eq : forall x y : t, lt x y -> ~ eq x y.