Mathlib.Algebra.Group.WithOne.Map
20 declarations. Mathlib docs · Source
def WithOne.map E1 #
{α : Type u_1} → {β : Type u_2} → (α → β) → WithOne α → WithOne β
Lift a map f : α → β to WithOne α → WithOne β. Implemented using Option.map.
Note: the definition previously known as WithOne.map is now called WithOne.mapMulHom.
def WithZero.map E1 #
{α : Type u_1} → {β : Type u_2} → (α → β) → WithZero α → WithZero β
Lift a map f : α → β to WithZero α → WithZero β. Implemented using Option.map.
Note: the definition previously known as WithZero.map is now called WithZero.mapAddHom.
theorem WithOne.map_bot E0 #
∀ {α : Type u_1} {β : Type u_2} (f : α → β), WithOne.map f 1 = 1
theorem WithZero.map_bot E0 #
∀ {α : Type u_1} {β : Type u_2} (f : α → β), WithZero.map f 0 = 0
theorem WithOne.map_coe E0 #
∀ {α : Type u_1} {β : Type u_2} (f : α → β) (a : α), WithOne.map f ↑a = ↑(f a)
theorem WithZero.map_coe E0 #
∀ {α : Type u_1} {β : Type u_2} (f : α → β) (a : α), WithZero.map f ↑a = ↑(f a)
def WithOne.map₂ E1 #
{α : Type u_1} → {β : Type u_2} → {γ : Type u_3} → (α → β → γ) → WithOne α → WithOne β → WithOne γ
The image of a binary function f : α → β → γ as a function
WithOne α → WithOne β → WithOne γ.
Mathematically this should be thought of as the image of the corresponding function α × β → γ.
def WithZero.map₂ E1 #
{α : Type u_1} → {β : Type u_2} → {γ : Type u_3} → (α → β → γ) → WithZero α → WithZero β → WithZero γ
The image of a binary function f : α → β → γ as a function
WithZero α → WithZero β → WithZero γ.
Mathematically this should be thought of as the image of the corresponding function α × β → γ.
theorem WithOne.map₂_coe_coe E0 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (f : α → β → γ) (a : α) (b : β), WithOne.map₂ f ↑a ↑b = ↑(f a b)
theorem WithZero.map₂_coe_coe E0 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (f : α → β → γ) (a : α) (b : β), WithZero.map₂ f ↑a ↑b = ↑(f a b)
theorem WithOne.map₂_bot_left E0 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (f : α → β → γ) (b : WithOne β), WithOne.map₂ f 1 b = 1
theorem WithZero.map₂_bot_left E0 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (f : α → β → γ) (b : WithZero β), WithZero.map₂ f 0 b = 0
theorem WithOne.map₂_bot_right E0 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (f : α → β → γ) (a : WithOne α), WithOne.map₂ f a 1 = 1
theorem WithZero.map₂_bot_right E0 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (f : α → β → γ) (a : WithZero α), WithZero.map₂ f a 0 = 0
theorem WithZero.map₂_coe_left E0 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (f : α → β → γ) (a : α) (b : WithZero β),
WithZero.map₂ f (↑a) b = WithZero.map (fun b ↦ f a b) b
theorem WithOne.map₂_coe_left E0 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (f : α → β → γ) (a : α) (b : WithOne β),
WithOne.map₂ f (↑a) b = WithOne.map (fun b ↦ f a b) b
theorem WithZero.map₂_coe_right E0 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (f : α → β → γ) (a : WithZero α) (b : β),
WithZero.map₂ f a ↑b = WithZero.map (fun x ↦ f x b) a
theorem WithOne.map₂_coe_right E0 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} (f : α → β → γ) (a : WithOne α) (b : β),
WithOne.map₂ f a ↑b = WithOne.map (fun x ↦ f x b) a
theorem WithZero.map₂_eq_bot_iff E0 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {f : α → β → γ} {a : WithZero α} {b : WithZero β},
WithZero.map₂ f a b = 0 ↔ a = 0 ∨ b = 0
theorem WithOne.map₂_eq_bot_iff E0 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {f : α → β → γ} {a : WithOne α} {b : WithOne β},
WithOne.map₂ f a b = 1 ↔ a = 1 ∨ b = 1