Indexing types #
This file introduces IndexType : ℕ → Type
such that IndexType 0 = ℕ
and
IndexType (N+1) = Fin (N+1)
. Each IndexType N
has a total order and and inductive principle
together with supporting lemmas.
Equations
Instances For
Equations
Instances For
Equations
- instOrderBotIndexType 0 = inferInstanceAs (OrderBot ℕ)
- instOrderBotIndexType N.succ = inferInstanceAs (OrderBot (Fin (N + 1)))
Equations
Equations
Equations
- instZeroIndexType 0 = inferInstanceAs (Zero ℕ)
- instZeroIndexType N.succ = inferInstanceAs (Zero (Fin (N + 1)))
Equations
- instSuccOrderIndexType 0 = inferInstanceAs (SuccOrder ℕ)
- instSuccOrderIndexType N.succ = inferInstanceAs (SuccOrder (Fin (N + 1)))