Order properties on tuples #
Π i : Fin 2, α i is order equivalent to α 0 × α 1. See also OrderIso.finTwoArrowEquiv
for a non-dependent version.
Equations
- OrderIso.piFinTwoIso α = let __Equiv := piFinTwoEquiv α; { toEquiv := __Equiv, map_rel_iff' := ⋯ }
Instances For
The space of functions Fin 2 → α is order equivalent to α × α. See also
OrderIso.piFinTwoIso.
Equations
- OrderIso.finTwoArrowIso α = let __Equiv := finTwoArrowEquiv α; { toEquiv := __Equiv, map_rel_iff' := ⋯ }
Instances For
Order isomorphism between tuples of length n + 1 and pairs of an element and a tuple of length
n given by separating out the first element of the tuple.
This is Fin.cons as an OrderIso.
Equations
- Fin.consOrderIso α = let __Equiv := Fin.consEquiv α; { toEquiv := __Equiv, map_rel_iff' := ⋯ }
Instances For
Order isomorphism between tuples of length n + 1 and pairs of an element and a tuple of length
n given by separating out the last element of the tuple.
This is Fin.snoc as an OrderIso.
Equations
- Fin.snocOrderIso α = let __Equiv := Fin.snocEquiv α; { toEquiv := __Equiv, map_rel_iff' := ⋯ }
Instances For
Order isomorphism between tuples of length n + 1 and pairs of an element and a tuple of length
n given by separating out the p-th element of the tuple.
This is Fin.insertNth as an OrderIso.
Equations
- Fin.insertNthOrderIso α p = let __Equiv := Fin.insertNthEquiv α p; { toEquiv := __Equiv, map_rel_iff' := ⋯ }
Instances For
Note this lemma can only be written about non-dependent tuples as insertNth (last n) = snoc is
not a definitional equality.
Fin.succAbove as an order isomorphism between Fin n and {x : Fin (n + 1) // x ≠ p}.
Equations
- finSuccAboveOrderIso p = let __spread.0 := finSuccAboveEquiv p; { toEquiv := __spread.0, map_rel_iff' := ⋯ }
Instances For
Promote a Fin n into a larger Fin m, as a subtype where the underlying
values are retained. This is the OrderIso version of Fin.castLE.