Equivalence between Fin 2
and Bool
.
Equations
- finTwoEquiv = { toFun := ![false, true], invFun := fun b => Bool.casesOn b 0 1, left_inv := finTwoEquiv.proof_2, right_inv := finTwoEquiv.proof_3 }
Instances For
Π i : Fin 2, α i
is equivalent to α 0 × α 1
. See also finTwoArrowEquiv
for a
non-dependent version and prodEquivPiFinTwo
for a version with inputs α β : Type u
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
A product space α × β
is equivalent to the space Π i : Fin 2, γ i
, where
γ = Fin.cons α (Fin.cons β finZeroElim)
. See also piFinTwoEquiv
and
finTwoArrowEquiv
.
Equations
- prodEquivPiFinTwo α β = (piFinTwoEquiv (Fin.cons α (Fin.cons β finZeroElim))).symm
Instances For
The space of functions Fin 2 → α
is equivalent to α × α
. See also piFinTwoEquiv
and
prodEquivPiFinTwo
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Π i : Fin 2, α i
is order equivalent to α 0 × α 1
. See also OrderIso.finTwoArrowEquiv
for a non-dependent version.
Equations
- OrderIso.piFinTwoIso α = { toEquiv := piFinTwoEquiv α, map_rel_iff' := (_ : ∀ {a b : (i : Fin 2) → α i}, ↑(piFinTwoEquiv α) a ≤ ↑(piFinTwoEquiv α) b ↔ a ≤ b) }
Instances For
The space of functions Fin 2 → α
is order equivalent to α × α
. See also
OrderIso.piFinTwoIso
.
Equations
- One or more equations did not get rendered due to their size.
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.cast_succ
and i.succ
to i
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The equiv version of Fin.predAbove_zero
.
Equivalence between Fin (n + 1) → β
and β × (Fin n → β)
.
Equations
- Equiv.piFinSucc n β = Equiv.piFinSuccAboveEquiv (fun x => β) 0
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.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The equivalence induced by a ↦ (a / n, a % n)
for nonzero n
.
See Int.ediv_emod_unique
for a similar propositional statement.
Equations
- One or more equations did not get rendered due to their size.
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
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Fin 0
is a subsingleton.
Fin 1
is a subsingleton.