Fin n
is a natural number i
with the constraint that 0 β€ i < n
.
It is the "canonical type with n
elements".
Constructor
Fin.mk
Fields
val : Nat
If i : Fin n
, then i.val : β
is the described number. It can also be
written as i.1
or just i
when the target type is known.
isLt : βself < n
If i : Fin n
, then i.2
is a proof that i.1 < n
.