The areas / V01. The language of Mathlib
Mathlib.Logic.Pairwise
21 declarations and 2 deprecated aliases. Mathlib docs · Source
Relations holding pairwise
This file defines pairwise relations.
Main declarations
Pairwise:Pairwise rstates thatr i jfor alli ≠ j.Set.Pairwise:s.Pairwise rstates thatr i jfor alli ≠ jwithi, j ∈ s.
def Pairwise E3 #
{α : Type u_1} → (α → α → Prop) → Prop
A relation r holds pairwise if r i j for all i ≠ j.
theorem Pairwise.mono E1 #
∀ {α : Type u_1} {r p : α → α → Prop}, Pairwise r → (∀ ⦃i j : α⦄, r i j → p i j) → Pairwise p
theorem Pairwise.eq E1 #
∀ {α : Type u_1} {r : α → α → Prop} {a b : α}, Pairwise r → ¬r a b → a = b
theorem Subsingleton.pairwise E0 #
∀ {α : Type u_1} {r : α → α → Prop} [Subsingleton α], Pairwise r
theorem Function.injective_iff_pairwise_ne E1 #
∀ {α : Type u_1} {ι : Type u_3} {f : ι → α}, Function.Injective f ↔ Pairwise (Function.onFun (fun x1 x2 ↦ x1 ≠ x2) f)
theorem Function.Injective.pairwise_ne E1 #
∀ {α : Type u_1} {ι : Type u_3} {f : ι → α}, Function.Injective f → Pairwise (Function.onFun (fun x1 x2 ↦ x1 ≠ x2) f)
Alias of the forward direction of Function.injective_iff_pairwise_ne.
theorem Pairwise.comp_of_injective E1 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop},
Pairwise r → ∀ {f : β → α}, Function.Injective f → Pairwise (Function.onFun r f)
theorem Pairwise.of_comp_of_surjective E1 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {f : β → α},
Pairwise (Function.onFun r f) → Function.Surjective f → Pairwise r
theorem Function.Bijective.pairwise_comp_iff E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → α → Prop} {f : β → α},
Function.Bijective f → (Pairwise (Function.onFun r f) ↔ Pairwise r)
theorem pairwise_fin_succ_iff E0 #
∀ {n : ℕ} {R : Fin n.succ → Fin n.succ → Prop},
Pairwise R ↔ (∀ (i : Fin n), R i.succ 0) ∧ (∀ (j : Fin n), R 0 j.succ) ∧ Pairwise fun i j ↦ R i.succ j.succ
theorem pairwise_fin_succ_iff_of_isSymm E1 #
∀ {n : ℕ} {R : Fin n.succ → Fin n.succ → Prop} [Std.Symm R],
Pairwise R ↔ (∀ (j : Fin n), R 0 j.succ) ∧ Pairwise fun i j ↦ R i.succ j.succ
def Set.Pairwise E3 #
{α : Type u_1} → Set α → (α → α → Prop) → Prop
The relation r holds pairwise on the set s if r x y for all distinct x y ∈ s.
theorem Set.pairwise_of_forall E1 #
∀ {α : Type u_1} (s : Set α) (r : α → α → Prop), (∀ (a b : α), r a b) → s.Pairwise r
theorem Set.Pairwise.imp_on E1 #
∀ {α : Type u_1} {r p : α → α → Prop} {s : Set α}, s.Pairwise r → (s.Pairwise fun ⦃a b⦄ ↦ r a b → p a b) → s.Pairwise p
theorem Set.Pairwise.imp E1 #
∀ {α : Type u_1} {r p : α → α → Prop} {s : Set α}, s.Pairwise r → (∀ ⦃a b : α⦄, r a b → p a b) → s.Pairwise p
theorem Set.Pairwise.eq E1 #
∀ {α : Type u_1} {r : α → α → Prop} {s : Set α} {a b : α}, s.Pairwise r → a ∈ s → b ∈ s → ¬r a b → a = b
theorem Set.pairwise_iff_of_refl E1 #
∀ {α : Type u_1} {r : α → α → Prop} {s : Set α} [Std.Refl r], s.Pairwise r ↔ ∀ ⦃a : α⦄, a ∈ s → ∀ ⦃b : α⦄, b ∈ s → r a b
theorem Set.Pairwise.forall₂ E1 #
∀ {α : Type u_1} {r : α → α → Prop} {s : Set α} [Std.Refl r], s.Pairwise r → ∀ ⦃a : α⦄, a ∈ s → ∀ ⦃b : α⦄, b ∈ s → r a b
Alias of the forward direction of Set.pairwise_iff_of_refl.
theorem Set.Pairwise.of_forall₂ E1 #
∀ {α : Type u_1} {r : α → α → Prop} {s : Set α}, (∀ ⦃a : α⦄, a ∈ s → ∀ ⦃b : α⦄, b ∈ s → r a b) → s.Pairwise r
theorem Set.Pairwise.on_injective E1 #
∀ {α : Type u_1} {ι : Type u_3} {r : α → α → Prop} {f : ι → α} {s : Set α},
s.Pairwise r → Function.Injective f → (∀ (x : ι), f x ∈ s) → Pairwise (Function.onFun r f)
theorem Pairwise.set_pairwise E1 #
∀ {α : Type u_1} {r : α → α → Prop}, Pairwise r → ∀ (s : Set α), s.Pairwise r
Deprecated aliases
| Name | New name | Since |
|---|---|---|
Set.Pairwise.of_refl | Set.Pairwise.forall₂ | 2026-08-14 |
Std.Refl.set_pairwise_iff | Set.pairwise_iff_of_refl | 2026-08-14 |