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.
Equations
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.
Equations
Instances For
@[simp]
@[simp]
@[simp]
@[simp]
@[simp]
@[simp]
@[simp]
@[simp]
@[simp]
@[simp]
@[simp]
@[simp]