The areas / V01. The language of Mathlib
Mathlib.Data.Prod.Basic
60 declarations. Mathlib docs · Source
theorem Prod.swap_eq_iff_eq_swap E1 #
∀ {α : Type u_1} {β : Type u_2} {x : α × β} {y : β × α}, x.swap = y ↔ x = y.swap
def Prod.mk.injArrow E1 #
{α : Type u_1} →
{β : Type u_2} →
{x₁ : α} → {y₁ : β} → {x₂ : α} → {y₂ : β} → (x₁, y₁) = (x₂, y₂) → ⦃P : Sort u_5⦄ → (x₁ = x₂ → y₁ = y₂ → P) → P
theorem Prod.mk.eta E0 #
∀ {α : Type u_1} {β : Type u_2} {p : α × β}, (p.1, p.2) = p
theorem Prod.forall' E1 #
∀ {α : Type u_1} {β : Type u_2} {p : α → β → Prop}, (∀ (x : α × β), p x.1 x.2) ↔ ∀ (a : α) (b : β), p a b
theorem Prod.exists' E1 #
∀ {α : Type u_1} {β : Type u_2} {p : α → β → Prop}, (∃ x, p x.1 x.2) ↔ ∃ a b, p a b
theorem Prod.snd_comp_mk E0 #
∀ {α : Type u_1} {β : Type u_2} (x : α), Prod.snd ∘ Prod.mk x = id
theorem Prod.fst_comp_mk E0 #
∀ {α : Type u_1} {β : Type u_2} (x : α), Prod.fst ∘ Prod.mk x = Function.const β x
theorem Prod.map_apply' E0 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {δ : Type u_4} (f : α → γ) (g : β → δ) (p : α × β),
Prod.map f g p = (f p.1, g p.2)
theorem Prod.map_fst' E0 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {δ : Type u_4} (f : α → γ) (g : β → δ),
Prod.fst ∘ Prod.map f g = f ∘ Prod.fst
theorem Prod.map_snd' E0 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {δ : Type u_4} (f : α → γ) (g : β → δ),
Prod.snd ∘ Prod.map f g = g ∘ Prod.snd
theorem Prod.mk_inj E1 #
∀ {α : Type u_1} {β : Type u_2} {a₁ a₂ : α} {b₁ b₂ : β}, (a₁, b₁) = (a₂, b₂) ↔ a₁ = a₂ ∧ b₁ = b₂
theorem Prod.mk_right_injective E1 #
∀ {α : Type u_5} {β : Type u_6} (a : α), Function.Injective (Prod.mk a)
theorem Prod.mk_left_injective E1 #
∀ {α : Type u_5} {β : Type u_6} (b : β), Function.Injective fun a ↦ (a, b)
theorem Prod.mk_right_inj E1 #
∀ {α : Type u_1} {β : Type u_2} {a : α} {b₁ b₂ : β}, (a, b₁) = (a, b₂) ↔ b₁ = b₂
theorem Prod.mk_left_inj E1 #
∀ {α : Type u_1} {β : Type u_2} {a₁ a₂ : α} {b : β}, (a₁, b) = (a₂, b) ↔ a₁ = a₂
theorem Prod.map_def E0 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {δ : Type u_4} {f : α → γ} {g : β → δ},
Prod.map f g = fun p ↦ (f p.1, g p.2)
theorem Prod.id_prod E1 #
∀ {α : Type u_1} {β : Type u_2}, (fun p ↦ (p.1, p.2)) = id
theorem Prod.map_iterate E0 #
∀ {α : Type u_1} {β : Type u_2} (f : α → α) (g : β → β) (n : ℕ), (Prod.map f g)^[n] = Prod.map f^[n] g^[n]
theorem Prod.fst_surjective E1 #
∀ {α : Type u_1} {β : Type u_2} [h : Nonempty β], Function.Surjective Prod.fst
theorem Prod.snd_surjective E1 #
∀ {α : Type u_1} {β : Type u_2} [h : Nonempty α], Function.Surjective Prod.snd
theorem Prod.fst_injective E1 #
∀ {α : Type u_1} {β : Type u_2} [Subsingleton β], Function.Injective Prod.fst
theorem Prod.snd_injective E1 #
∀ {α : Type u_1} {β : Type u_2} [Subsingleton α], Function.Injective Prod.snd
theorem Prod.swap_leftInverse E0 #
∀ {α : Type u_1} {β : Type u_2}, Function.LeftInverse Prod.swap Prod.swap
theorem Prod.swap_rightInverse E0 #
∀ {α : Type u_1} {β : Type u_2}, Function.RightInverse Prod.swap Prod.swap
theorem Prod.swap_injective E1 #
∀ {α : Type u_1} {β : Type u_2}, Function.Injective Prod.swap
theorem Prod.swap_surjective E1 #
∀ {α : Type u_1} {β : Type u_2}, Function.Surjective Prod.swap
theorem Prod.swap_bijective E1 #
∀ {α : Type u_1} {β : Type u_2}, Function.Bijective Prod.swap
theorem Function.Semiconj.swap_map E1 #
∀ {α : Type u_1} {β : Type u_2} (f : α → α) (g : β → β), Function.Semiconj Prod.swap (Prod.map f g) (Prod.map g f)
theorem Prod.fst_eq_iff E0 #
∀ {α : Type u_1} {β : Type u_2} {p : α × β} {x : α}, p.1 = x ↔ p = (x, p.2)
theorem Prod.snd_eq_iff E0 #
∀ {α : Type u_1} {β : Type u_2} {p : α × β} {x : β}, p.2 = x ↔ p = (p.1, x)
theorem Prod.lex_iff E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} {x y : α × β},
Prod.Lex r s x y ↔ r x.1 y.1 ∨ x.1 = y.1 ∧ s x.2 y.2
instance Prod.Lex.decidable E0 #
{α : Type u_1} →
{β : Type u_2} →
[DecidableEq α] →
(r : α → α → Prop) → (s : β → β → Prop) → [DecidableRel r] → [DecidableRel s] → DecidableRel (Prod.Lex r s)
theorem Prod.Lex.refl_left E1 #
∀ {α : Type u_1} {β : Type u_2} (r : α → α → Prop) (s : β → β → Prop) [Std.Refl r] (x : α × β), Prod.Lex r s x x
instance Prod.instReflLex_mathlib E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} [Std.Refl r], Std.Refl (Prod.Lex r s)
theorem Prod.Lex.refl_right E1 #
∀ {α : Type u_1} {β : Type u_2} (r : α → α → Prop) (s : β → β → Prop) [Std.Refl s] (x : α × β), Prod.Lex r s x x
instance Prod.instReflLex_mathlib_1 E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} [Std.Refl s], Std.Refl (Prod.Lex r s)
instance Prod.instIrreflLex_mathlib E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} [Std.Irrefl r] [Std.Irrefl s],
Std.Irrefl (Prod.Lex r s)
theorem Prod.Lex.trans E1 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} [IsTrans α r] [IsTrans β s] {x y z : α × β},
Prod.Lex r s x y → Prod.Lex r s y z → Prod.Lex r s x z
instance Prod.instIsTransLex E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} [IsTrans α r] [IsTrans β s],
IsTrans (α × β) (Prod.Lex r s)
instance Prod.instAntisymmLexOfIsStrictOrder E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} [IsStrictOrder α r] [Std.Antisymm s],
Std.Antisymm (Prod.Lex r s)
instance Prod.total_left E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} [Std.Total r], Std.Total (Prod.Lex r s)
instance Prod.total_right E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} [Std.Trichotomous r] [Std.Total s],
Std.Total (Prod.Lex r s)
instance Prod.trichotomous E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} [Std.Trichotomous r] [Std.Trichotomous s],
Std.Trichotomous (Prod.Lex r s)
instance Prod.instAsymmLex_mathlib E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {s : β → β → Prop} [Std.Asymm r] [Std.Asymm s],
Std.Asymm (Prod.Lex r s)
theorem Function.Injective.prodMap E1 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {δ : Type u_4} {f : α → γ} {g : β → δ},
Function.Injective f → Function.Injective g → Function.Injective (Prod.map f g)
theorem Function.Surjective.prodMap E1 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {δ : Type u_4} {f : α → γ} {g : β → δ},
Function.Surjective f → Function.Surjective g → Function.Surjective (Prod.map f g)
theorem Function.Bijective.prodMap E1 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {δ : Type u_4} {f : α → γ} {g : β → δ},
Function.Bijective f → Function.Bijective g → Function.Bijective (Prod.map f g)
theorem Function.LeftInverse.prodMap E1 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {δ : Type u_4} {f₁ : α → β} {g₁ : γ → δ} {f₂ : β → α} {g₂ : δ → γ},
Function.LeftInverse f₁ f₂ → Function.LeftInverse g₁ g₂ → Function.LeftInverse (Prod.map f₁ g₁) (Prod.map f₂ g₂)
theorem Function.RightInverse.prodMap E1 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {δ : Type u_4} {f₁ : α → β} {g₁ : γ → δ} {f₂ : β → α} {g₂ : δ → γ},
Function.RightInverse f₁ f₂ → Function.RightInverse g₁ g₂ → Function.RightInverse (Prod.map f₁ g₁) (Prod.map f₂ g₂)
theorem Function.Involutive.prodMap E1 #
∀ {α : Type u_1} {β : Type u_2} {f : α → α} {g : β → β},
Function.Involutive f → Function.Involutive g → Function.Involutive (Prod.map f g)
theorem Prod.map_injective E0 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {δ : Type u_4} [Nonempty α] [Nonempty β] {f : α → γ} {g : β → δ},
Function.Injective (Prod.map f g) ↔ Function.Injective f ∧ Function.Injective g
theorem Prod.map_surjective E0 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {δ : Type u_4} [Nonempty γ] [Nonempty δ] {f : α → γ} {g : β → δ},
Function.Surjective (Prod.map f g) ↔ Function.Surjective f ∧ Function.Surjective g
theorem Prod.map_bijective E0 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {δ : Type u_4} [Nonempty α] [Nonempty β] {f : α → γ} {g : β → δ},
Function.Bijective (Prod.map f g) ↔ Function.Bijective f ∧ Function.Bijective g
theorem Prod.map_leftInverse E0 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {δ : Type u_4} [Nonempty β] [Nonempty δ] {f₁ : α → β} {g₁ : γ → δ}
{f₂ : β → α} {g₂ : δ → γ},
Function.LeftInverse (Prod.map f₁ g₁) (Prod.map f₂ g₂) ↔ Function.LeftInverse f₁ f₂ ∧ Function.LeftInverse g₁ g₂
theorem Prod.map_rightInverse E0 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {δ : Type u_4} [Nonempty α] [Nonempty γ] {f₁ : α → β} {g₁ : γ → δ}
{f₂ : β → α} {g₂ : δ → γ},
Function.RightInverse (Prod.map f₁ g₁) (Prod.map f₂ g₂) ↔ Function.RightInverse f₁ f₂ ∧ Function.RightInverse g₁ g₂
theorem Prod.map_involutive E0 #
∀ {α : Type u_1} {β : Type u_2} [Nonempty α] [Nonempty β] {f : α → α} {g : β → β},
Function.Involutive (Prod.map f g) ↔ Function.Involutive f ∧ Function.Involutive g
opaque Prod.PrettyPrinting.pp.numericProj.prod E1 #
Lean.Option Bool
When true, then Prod.fst x and Prod.snd x pretty print as x.1 and x.2
rather than as x.fst and x.snd.
def Prod.PrettyPrinting.getPPNumericProjProd E1 #
Lean.Options → Bool
Tell whether pretty-printing should use numeric projection notations .1
and .2 for Prod.fst and Prod.snd.
def Prod.PrettyPrinting.delabProdFst E1 #
Lean.PrettyPrinter.Delaborator.Delab
Delaborator for Prod.fst x as x.1.
def Prod.PrettyPrinting.delabProdSnd E1 #
Lean.PrettyPrinter.Delaborator.Delab
Delaborator for Prod.snd x as x.2.