Equivalences for option α
#
We define remove_none
which acts to provide a e : α ≃ β
if given a f : option α ≃ option β
.
To construct an f : option α ≃ option β
from e : α ≃ β
such that
f none = none
and f (some x) = some (e x)
, use
f = equiv_functor.map_equiv option e
.
Given an equivalence between two option
types, eliminate none
from that equivalence by
mapping e.symm none
to e none
.
@[simp]
theorem
equiv.remove_none_symm
{α : Type u_1}
{β : Type u_2}
(e : option α ≃ option β) :
e.remove_none.symm = e.symm.remove_none
@[simp]