The areas / V01. The language of Mathlib
Mathlib.Logic.Relator
30 declarations. Mathlib docs · Source
def Relator.LiftFun E1 #
{α : Sort u₁} →
{β : Sort u₂} → {γ : Sort v₁} → {δ : Sort v₂} → (α → β → Prop) → (γ → δ → Prop) → (α → γ) → (β → δ) → Prop
The binary relations R : α → β → Prop and S : γ → δ → Prop induce a binary
relation on functions LiftFun : (α → γ) → (β → δ) → Prop.
def Relator.«term_⇒_» E1 #
Lean.TrailingParserDescr
(R ⇒ S) f g means LiftFun R S f g.
def Relator.RightTotal E1 #
{α : Sort u₁} → {β : Sort u₂} → (α → β → Prop) → Prop
A relation is "right total" if every element appears on the right.
def Relator.LeftTotal E1 #
{α : Sort u₁} → {β : Sort u₂} → (α → β → Prop) → Prop
A relation is "left total" if every element appears on the left.
def Relator.BiTotal E1 #
{α : Sort u₁} → {β : Sort u₂} → (α → β → Prop) → Prop
A relation is "bi-total" if it is both right total and left total.
def Relator.LeftUnique E1 #
{α : Sort u₁} → {β : Sort u₂} → (α → β → Prop) → Prop
A relation is "left unique" if every element on the right is paired with at most one element on the left.
def Relator.RightUnique E1 #
{α : Sort u₁} → {β : Sort u₂} → (α → β → Prop) → Prop
A relation is "right unique" if every element on the left is paired with at most one element on the right.
def Relator.BiUnique E1 #
{α : Sort u₁} → {β : Sort u₂} → (α → β → Prop) → Prop
A relation is "bi-unique" if it is both left unique and right unique.
theorem Relator.RightTotal.rel_forall E1 #
∀ {α : Sort u₁} {β : Sort u₂} {R : α → β → Prop},
Relator.RightTotal R →
Relator.LiftFun (Relator.LiftFun R fun x1 x2 ↦ ∀ (a : x1), x2) (fun x1 x2 ↦ ∀ (a : x1), x2) (fun p ↦ (i : α) → p i)
fun q ↦ ∀ (i : β), q i
theorem Relator.LeftTotal.rel_exists E1 #
∀ {α : Sort u₁} {β : Sort u₂} {R : α → β → Prop},
Relator.LeftTotal R →
Relator.LiftFun (Relator.LiftFun R fun x1 x2 ↦ x1 → x2) (fun x1 x2 ↦ x1 → x2) (fun p ↦ ∃ i, p i) fun q ↦ ∃ i, q i
theorem Relator.BiTotal.rel_forall E1 #
∀ {α : Sort u₁} {β : Sort u₂} {R : α → β → Prop},
Relator.BiTotal R → Relator.LiftFun (Relator.LiftFun R Iff) Iff (fun p ↦ ∀ (i : α), p i) fun q ↦ ∀ (i : β), q i
theorem Relator.BiTotal.rel_exists E1 #
∀ {α : Sort u₁} {β : Sort u₂} {R : α → β → Prop},
Relator.BiTotal R → Relator.LiftFun (Relator.LiftFun R Iff) Iff (fun p ↦ ∃ i, p i) fun q ↦ ∃ i, q i
theorem Relator.left_unique_of_rel_eq E0 #
∀ {α : Sort u₁} {β : Sort u₂} {R : α → β → Prop} {eq' : β → β → Prop},
Relator.LiftFun R (Relator.LiftFun R Iff) Eq eq' → Relator.LeftUnique R
theorem Relator.rel_imp E1 #
Relator.LiftFun Iff (Relator.LiftFun Iff Iff) (fun x1 x2 ↦ x1 → x2) fun x1 x2 ↦ x1 → x2
theorem Relator.rel_not E1 #
Relator.LiftFun Iff Iff Not Not
theorem Relator.bi_total_eq E0 #
∀ {α : Type u₁}, Relator.BiTotal Eq
theorem Relator.LeftUnique.flip E1 #
∀ {α : Type u_1} {β : Type u_2} {r : α → β → Prop}, Relator.LeftUnique r → Relator.RightUnique (flip r)
theorem Relator.rel_and E1 #
Relator.LiftFun (fun x1 x2 ↦ x1 ↔ x2) (Relator.LiftFun (fun x1 x2 ↦ x1 ↔ x2) fun x1 x2 ↦ x1 ↔ x2) (fun x1 x2 ↦ x1 ∧ x2)
fun x1 x2 ↦ x1 ∧ x2
theorem Relator.rel_or E1 #
Relator.LiftFun (fun x1 x2 ↦ x1 ↔ x2) (Relator.LiftFun (fun x1 x2 ↦ x1 ↔ x2) fun x1 x2 ↦ x1 ↔ x2) (fun x1 x2 ↦ x1 ∨ x2)
fun x1 x2 ↦ x1 ∨ x2
theorem Relator.rel_iff E0 #
Relator.LiftFun (fun x1 x2 ↦ x1 ↔ x2) (Relator.LiftFun (fun x1 x2 ↦ x1 ↔ x2) fun x1 x2 ↦ x1 ↔ x2) (fun x1 x2 ↦ x1 ↔ x2)
fun x1 x2 ↦ x1 ↔ x2
theorem Relator.rel_eq E0 #
∀ {α : Type u_1} {β : Type u_2} {r : α → β → Prop},
Relator.BiUnique r →
Relator.LiftFun r (Relator.LiftFun r fun x1 x2 ↦ x1 ↔ x2) (fun x1 x2 ↦ x1 = x2) fun x1 x2 ↦ x1 = x2
theorem Relator.LeftTotal.refl E1 #
∀ {α : Type u_1} {r₁₁ : α → α → Prop}, (∀ (a : α), r₁₁ a a) → Relator.LeftTotal r₁₁
theorem Relator.LeftTotal.symm E1 #
∀ {α : Type u_1} {β : Type u_2} {r₁₂ : α → β → Prop} {r₂₁ : β → α → Prop},
(∀ (a : α) (b : β), r₁₂ a b → r₂₁ b a) → Relator.LeftTotal r₁₂ → Relator.RightTotal r₂₁
theorem Relator.LeftTotal.trans E1 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {r₁₂ : α → β → Prop} {r₂₃ : β → γ → Prop} {r₁₃ : α → γ → Prop},
(∀ (a : α) (b : β) (c : γ), r₁₂ a b → r₂₃ b c → r₁₃ a c) →
Relator.LeftTotal r₁₂ → Relator.LeftTotal r₂₃ → Relator.LeftTotal r₁₃
theorem Relator.RightTotal.refl E1 #
∀ {α : Type u_1} {r₁₁ : α → α → Prop}, (∀ (a : α), r₁₁ a a) → Relator.RightTotal r₁₁
theorem Relator.RightTotal.symm E1 #
∀ {α : Type u_1} {β : Type u_2} {r₁₂ : α → β → Prop} {r₂₁ : β → α → Prop},
(∀ (a : α) (b : β), r₁₂ a b → r₂₁ b a) → Relator.RightTotal r₁₂ → Relator.LeftTotal r₂₁
theorem Relator.RightTotal.trans E1 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {r₁₂ : α → β → Prop} {r₂₃ : β → γ → Prop} {r₁₃ : α → γ → Prop},
(∀ (a : α) (b : β) (c : γ), r₁₂ a b → r₂₃ b c → r₁₃ a c) →
Relator.RightTotal r₁₂ → Relator.RightTotal r₂₃ → Relator.RightTotal r₁₃
theorem Relator.BiTotal.refl E1 #
∀ {α : Type u_1} {r₁₁ : α → α → Prop}, (∀ (a : α), r₁₁ a a) → Relator.BiTotal r₁₁
theorem Relator.BiTotal.symm E1 #
∀ {α : Type u_1} {β : Type u_2} {r₁₂ : α → β → Prop} {r₂₁ : β → α → Prop},
(∀ (a : α) (b : β), r₁₂ a b → r₂₁ b a) → Relator.BiTotal r₁₂ → Relator.BiTotal r₂₁
theorem Relator.BiTotal.trans E1 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} {r₁₂ : α → β → Prop} {r₂₃ : β → γ → Prop} {r₁₃ : α → γ → Prop},
(∀ (a : α) (b : β) (c : γ), r₁₂ a b → r₂₃ b c → r₁₃ a c) →
Relator.BiTotal r₁₂ → Relator.BiTotal r₂₃ → Relator.BiTotal r₁₃