Equivalences for Fin n #
Miscellaneous #
This is currently not very sorted. PRs welcome!
A product space ฮฑ ร ฮฒ is equivalent to the space ฮ i : Fin 2, ฮณ i, where
ฮณ = Fin.cons ฮฑ (Fin.cons ฮฒ finZeroElim). See also piFinTwoEquiv and
finTwoArrowEquiv.
Instances For
The space of functions Fin 2 โ ฮฑ is equivalent to ฮฑ ร ฮฑ. See also piFinTwoEquiv and
prodEquivPiFinTwo.
Instances For
An equivalence that removes i and maps it to none.
This is a version of Fin.predAbove that produces Option (Fin n) instead of
mapping both i.castSucc and i.succ to i.
Instances For
Equivalence between Fin (n + 1) and Option (Fin n).
This is a version of Fin.pred that produces Option (Fin n) instead of
requiring a proof that the input is not 0.
Instances For
The equiv version of Fin.predAbove_zero.
Fin.succAbove as an order isomorphism between Fin n and {x : Fin (n + 1) // x โ p}.
Instances For
Equiv between Fin (n + 1) and Option (Fin n) sending Fin.last n to none
Instances For
An embedding e : Fin (n+1) โช ฮน corresponds to an embedding f : Fin n โช ฮน (corresponding
the last n coordinates of e) together with a value not taken by f (corresponding to e 0).
Instances For
Equivalence between Fin m โ Fin n and Fin (m + n)
Instances For
Equivalence between Fin n โ โ and โ that sends inl (a : Fin n) to
(a : โ) and inr a to n + a.
Instances For
The equivalence between Fin (m + n) and Fin (n + m) which rotates by n.
Instances For
Equivalence between Fin m ร Fin n and Fin (m * n)
Instances For
The equivalence induced by a โฆ (a / n, a % n) for nonzero n.
This is like finProdFinEquiv.symm but with m infinite.
See Nat.div_mod_unique for a similar propositional statement.
Instances For
The equivalence induced by a โฆ (a / n, a % n) for nonzero n.
See Int.ediv_emod_unique for a similar propositional statement.
Instances For
Promote a Fin n into a larger Fin m, as a subtype where the underlying
values are retained.
This is the Equiv version of Fin.castLE.
Instances For
The natural Equiv between (Fin m โ ฮฑ) ร (Fin n โ ฮฑ) and Fin (m + n) โ ฮฑ
Instances For
Fin (n + 1) โ ฮฑ and (Fin n โ ฮฑ) ร ฮฑ are equivalent.