Constructions of embeddings of Fin n into a type #
Fin.Embedding.cons: from an embeddingx : Fin n ↪ αanda : αsuch thata ∉ x.range, construct an embeddingFin (n + 1) ↪ αby puttingaat0Fin.Embedding.tail: the tail of an embeddingx : Fin (n + 1) ↪ αFin.Embedding.snoc: from an embeddingx : Fin n ↪ αanda : αsuch thata ∉ x.range, construct an embeddingFin (n + 1) ↪ αby puttingaat the end.Fin.Embedding.init: the init of an embeddingx : Fin (n + 1) ↪ αFin.Embedding.append: merges two embeddingsFin m ↪ αandFin n ↪ αinto an embeddingFin (m + n) ↪ αif they have disjoint ranges