The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V32. Logic, model theory and computability

Mathlib.ModelTheory.Quotients

10 declarations. Mathlib docs · Source

Quotients of First-Order Structures

This file defines prestructures and quotients of first-order structures.

Main Definitions

  • If s is a setoid (equivalence relation) on M, a FirstOrder.Language.Prestructure s is the data for a first-order structure on M that will still be a structure when modded out by s.
  • The structure FirstOrder.Language.quotientStructure s is the resulting structure on Quotient s.

def FirstOrder.Language.Prestructure.ctorIdx E1 #

{L : FirstOrder.Language} → {M : Type u_1} → {s : Setoid M} → L.Prestructure s → ℕ

class FirstOrder.Language.Prestructure E1 #

FirstOrder.Language → {M : Type u_1} → Setoid M → Type (max (max u_1 u_2) u_3)

A prestructure is a first-order structure with a Setoid equivalence relation on it, such that quotienting by that equivalence relation is still a structure.

ctor FirstOrder.Language.Prestructure.mk E0 #

{L : FirstOrder.Language} →
  {M : Type u_1} →
    {s : Setoid M} →
      (toStructure : L.Structure M) →
        (∀ {n : ℕ} {f : L.Functions n} (x y : Fin n → M),
            x ≈ y → FirstOrder.Language.Structure.funMap f x ≈ FirstOrder.Language.Structure.funMap f y) →
          (∀ {n : ℕ} {r : L.Relations n} (x y : Fin n → M),
              x ≈ y → FirstOrder.Language.Structure.RelMap r x = FirstOrder.Language.Structure.RelMap r y) →
            L.Prestructure s

abbrev FirstOrder.Language.Prestructure.toStructure E1 #

{L : FirstOrder.Language} → {M : Type u_1} → (s : Setoid M) → [self : L.Prestructure s] → L.Structure M

The underlying first-order structure

theorem FirstOrder.Language.Prestructure.fun_equiv E1 #

∀ {L : FirstOrder.Language} {M : Type u_1} {s : Setoid M} [self : L.Prestructure s] {n : ℕ} {f : L.Functions n}
  (x y : Fin n → M), x ≈ y → FirstOrder.Language.Structure.funMap f x ≈ FirstOrder.Language.Structure.funMap f y

theorem FirstOrder.Language.Prestructure.rel_equiv E1 #

∀ {L : FirstOrder.Language} {M : Type u_1} {s : Setoid M} [self : L.Prestructure s] {n : ℕ} {r : L.Relations n}
  (x y : Fin n → M), x ≈ y → FirstOrder.Language.Structure.RelMap r x = FirstOrder.Language.Structure.RelMap r y

instance FirstOrder.Language.quotientStructure E0 #

{L : FirstOrder.Language} → {M : Type u_1} → {s : Setoid M} → [ps : L.Prestructure s] → L.Structure (Quotient s)

theorem FirstOrder.Language.funMap_quotient_mk' E1 #

∀ {L : FirstOrder.Language} {M : Type u_1} (s : Setoid M) [ps : L.Prestructure s] {n : ℕ} (f : L.Functions n)
  (x : Fin n → M), (FirstOrder.Language.Structure.funMap f fun i ↦ ⟦x i⟧) = ⟦FirstOrder.Language.Structure.funMap f x⟧

theorem FirstOrder.Language.relMap_quotient_mk' E1 #

∀ {L : FirstOrder.Language} {M : Type u_1} (s : Setoid M) [ps : L.Prestructure s] {n : ℕ} (r : L.Relations n)
  (x : Fin n → M), (FirstOrder.Language.Structure.RelMap r fun i ↦ ⟦x i⟧) ↔ FirstOrder.Language.Structure.RelMap r x

theorem FirstOrder.Language.Term.realize_quotient_mk' E1 #

∀ {L : FirstOrder.Language} {M : Type u_1} (s : Setoid M) [ps : L.Prestructure s] {β : Type u_2} (t : L.Term β)
  (x : β → M), FirstOrder.Language.Term.realize (fun i ↦ ⟦x i⟧) t = ⟦FirstOrder.Language.Term.realize x t⟧