Adjoining a zero/one to semigroups and mapping #
Lift a map f : α → β to WithOne α → WithOne β. Implemented using Option.map.
Note: the definition previously known as WithOne.map is now called WithOne.mapMulHom.
Instances For
Lift a map f : α → β to WithZero α → WithZero β. Implemented using Option.map.
Note: the definition previously known as WithZero.map is now called WithZero.mapAddHom.
Instances For
@[simp]
@[simp]
@[simp]
@[simp]
theorem
WithOne.map₂_coe_coe
{α : Type u_1}
{β : Type u_2}
{γ : Type u_3}
(f : α → β → γ)
(a : α)
(b : β)
:
map₂ f ↑a ↑b = ↑(f a b)
theorem
WithZero.map₂_coe_coe
{α : Type u_1}
{β : Type u_2}
{γ : Type u_3}
(f : α → β → γ)
(a : α)
(b : β)
:
map₂ f ↑a ↑b = ↑(f a b)
@[simp]
@[simp]
@[simp]
@[simp]
@[simp]
@[simp]
@[simp]
@[simp]
@[simp]
@[simp]