Equivalences for Option α #
We define
Equiv.optionCongr: theOption α ≃ Option βconstructed frome : α ≃ βby sendingnonetonone, and applyingeelsewhere.Equiv.removeNone: theα ≃ βconstructed fromOption α ≃ Option βby removingnonefrom both sides.
A universe-polymorphic version of EquivFunctor.mapEquiv Option e.
Instances For
@[simp]
@[simp]
@[simp]
When α and β are in the same universe, this is the same as the result of
EquivFunctor.mapEquiv.
@[deprecated Equiv.removeNoneAux (since := "2026-06-06")]
Alias of Equiv.removeNoneAux.
If we have a value on one side of an Equiv of Option
we also have a value on the other side of the equivalence
Instances For
@[deprecated Equiv.removeNoneAux_none (since := "2026-06-06")]
theorem
Equiv.removeNone_aux_none
{α : Type u_1}
{β : Type u_2}
(e : Option α ≃ Option β)
{x : α}
(h : e (some x) = none)
:
Alias of Equiv.removeNoneAux_none.
@[deprecated Equiv.removeNoneAux_inv (since := "2026-06-06")]
Alias of Equiv.removeNoneAux_inv.
@[simp]
@[simp]
theorem
Equiv.optionSubtype_symm_apply_apply_coe
{α : Type u_1}
{β : Type u_2}
[DecidableEq β]
(x : β)
(e : α ≃ { y : β // y ≠ x })
(a : α)
:
@[simp]
theorem
Equiv.optionSubtype_symm_apply_apply_some
{α : Type u_1}
{β : Type u_2}
[DecidableEq β]
(x : β)
(e : α ≃ { y : β // y ≠ x })
(a : α)
:
@[simp]
theorem
Equiv.optionSubtype_symm_apply_apply_none
{α : Type u_1}
{β : Type u_2}
[DecidableEq β]
(x : β)
(e : α ≃ { y : β // y ≠ x })
:
@[simp]
@[simp]
theorem
Equiv.optionSubtypeNe_apply
{α : Type u_1}
[DecidableEq α]
(a : α)
(a✝ : Option { y : α // y ≠ a })
:
@[simp]
@[simp]
theorem
Equiv.optionSubtypeNe_some
{α : Type u_1}
[DecidableEq α]
(a : α)
(b : { b : α // b ≠ a })
:
@[simp]
@[simp]
@[simp]
@[simp]
@[simp]
@[simp]