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.DirectLimit

54 declarations. Mathlib docs · Source

Direct Limits of First-Order Structures

This file constructs the direct limit of a directed system of first-order embeddings.

Main Definitions

  • FirstOrder.Language.DirectLimit G f is the direct limit of the directed system f of first-order embeddings between the structures indexed by G.
  • FirstOrder.Language.DirectLimit.lift is the universal property of the direct limit: maps from the components to another module that respect the directed system structure give rise to a unique map out of the direct limit.
  • FirstOrder.Language.DirectLimit.equiv_lift is the equivalence between limits of isomorphic direct systems.

theorem FirstOrder.Language.DirectLimit.unify.congr_simp E1 #

∀ {L : FirstOrder.Language} {ι : Type v} [inst : Preorder ι] {G : ι → Type w} [inst_1 : (i : ι) → L.Structure (G i)]
  (f : (i j : ι) → i ≤ j → L.Embedding (G i) (G j)) {α : Type u_1} (x x_1 : α → FirstOrder.Language.Structure.Sigma f)
  (e_x : x = x_1) (i : ι) (h : i ∈ upperBounds (Set.range (Sigma.fst ∘ x))) (a a_1 : α),
  a = a_1 → FirstOrder.Language.DirectLimit.unify f x i h a = FirstOrder.Language.DirectLimit.unify f x_1 i ⋯ a_1

theorem FirstOrder.Language.DirectLimit.lift.congr_simp E1 #

∀ (L : FirstOrder.Language) (ι : Type v) [inst : Preorder ι] (G : ι → Type w) [inst_1 : (i : ι) → L.Structure (G i)]
  (f : (i j : ι) → i ≤ j → L.Embedding (G i) (G j)) [inst_2 : IsDirectedOrder ι]
  [inst_3 : DirectedSystem G fun i j h ↦ ⇑(f i j h)] [inst_4 : Nonempty ι] {P : Type u₁} [inst_5 : L.Structure P]
  (g g_1 : (i : ι) → L.Embedding (G i) P) (e_g : g = g_1)
  (Hg : ∀ (i j : ι) (hij : i ≤ j) (x : G i), (g j) ((f i j hij) x) = (g i) x),
  FirstOrder.Language.DirectLimit.lift L ι G f g Hg = FirstOrder.Language.DirectLimit.lift L ι G f g_1 ⋯

theorem FirstOrder.Language.DirectedSystem.natLERec.congr_simp E1 #

∀ {L : FirstOrder.Language} {G' : ℕ → Type w} [inst : (i : ℕ) → L.Structure (G' i)]
  (f' f'_1 : (n : ℕ) → L.Embedding (G' n) (G' (n + 1))),
  f' = f'_1 →
    ∀ (m n : ℕ) (h : m ≤ n),
      FirstOrder.Language.DirectedSystem.natLERec f' m n h = FirstOrder.Language.DirectedSystem.natLERec f'_1 m n h

theorem FirstOrder.Language.Embedding.mk.congr_simp E1 #

∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N]
  (toEmbedding toEmbedding_1 : M ↪ N) (e_toEmbedding : toEmbedding = toEmbedding_1)
  (map_fun' :
    ∀ {n : ℕ} (f : L.Functions n) (x : Fin n → M),
      toEmbedding.toFun (FirstOrder.Language.Structure.funMap f x) =
        FirstOrder.Language.Structure.funMap f (toEmbedding.toFun ∘ x))
  (map_rel' :
    ∀ {n : ℕ} (r : L.Relations n) (x : Fin n → M),
      FirstOrder.Language.Structure.RelMap r (toEmbedding.toFun ∘ x) ↔ FirstOrder.Language.Structure.RelMap r x),
  { toEmbedding := toEmbedding, map_fun' := map_fun', map_rel' := map_rel' } =
    { toEmbedding := toEmbedding_1, map_fun' := ⋯, map_rel' := ⋯ }

theorem FirstOrder.Language.Substructure.inclusion.congr_simp E1 #

∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] {S T : L.Substructure M} (h : S ≤ T),
  FirstOrder.Language.Substructure.inclusion h = FirstOrder.Language.Substructure.inclusion h

theorem FirstOrder.Language.DirectedSystem.map_self E0 #

∀ {ι : Type u_1} [inst : Preorder ι] {F : ι → Type u_4} {T : ⦃i j : ι⦄ → i ≤ j → Sort u_8}
  (f : (i j : ι) → (h : i ≤ j) → T h) [inst_1 : ⦃i j : ι⦄ → (h : i ≤ j) → FunLike (T h) (F i) (F j)]
  [DirectedSystem F fun x1 x2 x3 ↦ ⇑(f x1 x2 x3)] ⦃i : ι⦄ (x : F i), (f i i ⋯) x = x

Alias of DirectedSystem.map_self'.

theorem FirstOrder.Language.DirectedSystem.map_map E0 #

∀ {ι : Type u_1} [inst : Preorder ι] {F : ι → Type u_4} {T : ⦃i j : ι⦄ → i ≤ j → Sort u_8}
  (f : (i j : ι) → (h : i ≤ j) → T h) [inst_1 : ⦃i j : ι⦄ → (h : i ≤ j) → FunLike (T h) (F i) (F j)]
  [DirectedSystem F fun x1 x2 x3 ↦ ⇑(f x1 x2 x3)] ⦃i j k : ι⦄ (hij : i ≤ j) (hjk : j ≤ k) (x : F i),
  (f j k hjk) ((f i j hij) x) = (f i k ⋯) x

Alias of DirectedSystem.map_map'.

def FirstOrder.Language.DirectedSystem.natLERec E1 #

{L : FirstOrder.Language} →
  {G' : ℕ → Type w} →
    [inst : (i : ℕ) → L.Structure (G' i)] →
      ((n : ℕ) → L.Embedding (G' n) (G' (n + 1))) → (m n : ℕ) → m ≤ n → L.Embedding (G' m) (G' n)

Given a chain of embeddings of structures indexed by ℕ, defines a DirectedSystem by composing them.

theorem FirstOrder.Language.DirectedSystem.coe_natLERec E0 #

∀ {L : FirstOrder.Language} {G' : ℕ → Type w} [inst : (i : ℕ) → L.Structure (G' i)]
  (f' : (n : ℕ) → L.Embedding (G' n) (G' (n + 1))) (m n : ℕ) (h : m ≤ n),
  ⇑(FirstOrder.Language.DirectedSystem.natLERec f' m n h) = fun base ↦ Nat.leRecOn h (fun k ↦ ⇑(f' k)) base

instance FirstOrder.Language.DirectedSystem.natLERec.directedSystem E0 #

∀ {L : FirstOrder.Language} {G' : ℕ → Type w} [inst : (i : ℕ) → L.Structure (G' i)]
  (f' : (n : ℕ) → L.Embedding (G' n) (G' (n + 1))),
  DirectedSystem G' fun i j h ↦ ⇑(FirstOrder.Language.DirectedSystem.natLERec f' i j h)

abbrev FirstOrder.Language.Structure.Sigma E1 #

{L : FirstOrder.Language} →
  {ι : Type v} →
    [inst : Preorder ι] →
      {G : ι → Type w} →
        [inst_1 : (i : ι) → L.Structure (G i)] → ((i j : ι) → i ≤ j → L.Embedding (G i) (G j)) → Type (max v w)

Alias for Σ i, G i.

Instead of Σ i, G i, we use the alias Language.Structure.Sigma which depends on f. This way, Lean can infer what L and f are in the Setoid instance. Otherwise we have a "cannot find synthesization order" error. See also the discussion at https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/local.20instance.20cannot.20find.20synthesization.20order.20in.20porting

abbrev FirstOrder.Language.Structure.Sigma.mk E1 #

{L : FirstOrder.Language} →
  {ι : Type v} →
    [inst : Preorder ι] →
      {G : ι → Type w} →
        [inst_1 : (i : ι) → L.Structure (G i)] →
          (f : (i j : ι) → i ≤ j → L.Embedding (G i) (G j)) → (i : ι) → G i → FirstOrder.Language.Structure.Sigma f

Constructor for FirstOrder.Language.Structure.Sigma alias.

def FirstOrder.Language.DirectLimit.unify E1 #

{L : FirstOrder.Language} →
  {ι : Type v} →
    [inst : Preorder ι] →
      {G : ι → Type w} →
        [inst_1 : (i : ι) → L.Structure (G i)] →
          (f : (i j : ι) → i ≤ j → L.Embedding (G i) (G j)) →
            {α : Type u_1} →
              (x : α → FirstOrder.Language.Structure.Sigma f) →
                (i : ι) → i ∈ upperBounds (Set.range (Sigma.fst ∘ x)) → α → G i

Raises a family of elements in the Σ-type to the same level along the embeddings.

theorem FirstOrder.Language.DirectLimit.unify_sigma_mk_self E0 #

∀ {L : FirstOrder.Language} {ι : Type v} [inst : Preorder ι] {G : ι → Type w} [inst_1 : (i : ι) → L.Structure (G i)]
  (f : (i j : ι) → i ≤ j → L.Embedding (G i) (G j)) [DirectedSystem G fun i j h ↦ ⇑(f i j h)] {α : Type u_1} {i : ι}
  {x : α → G i},
  FirstOrder.Language.DirectLimit.unify f (fun a ↦ FirstOrder.Language.Structure.Sigma.mk f i (x a)) i ⋯ = x

theorem FirstOrder.Language.DirectLimit.comp_unify E1 #

∀ {L : FirstOrder.Language} {ι : Type v} [inst : Preorder ι] {G : ι → Type w} [inst_1 : (i : ι) → L.Structure (G i)]
  (f : (i j : ι) → i ≤ j → L.Embedding (G i) (G j)) [DirectedSystem G fun i j h ↦ ⇑(f i j h)] {α : Type u_1}
  {x : α → FirstOrder.Language.Structure.Sigma f} {i j : ι} (ij : i ≤ j)
  (h : i ∈ upperBounds (Set.range (Sigma.fst ∘ x))),
  ⇑(f i j ij) ∘ FirstOrder.Language.DirectLimit.unify f x i h = FirstOrder.Language.DirectLimit.unify f x j ⋯

def FirstOrder.Language.DirectLimit.setoid E1 #

{L : FirstOrder.Language} →
  {ι : Type v} →
    [inst : Preorder ι] →
      (G : ι → Type w) →
        [inst_1 : (i : ι) → L.Structure (G i)] →
          (f : (i j : ι) → i ≤ j → L.Embedding (G i) (G j)) →
            [DirectedSystem G fun i j h ↦ ⇑(f i j h)] →
              [IsDirectedOrder ι] → Setoid (FirstOrder.Language.Structure.Sigma f)

The directed limit glues together the structures along the embeddings.

def FirstOrder.Language.DirectLimit.sigmaStructure E1 #

{L : FirstOrder.Language} →
  {ι : Type v} →
    [inst : Preorder ι] →
      (G : ι → Type w) →
        [inst_1 : (i : ι) → L.Structure (G i)] →
          (f : (i j : ι) → i ≤ j → L.Embedding (G i) (G j)) →
            [IsDirectedOrder ι] → [Nonempty ι] → L.Structure (FirstOrder.Language.Structure.Sigma f)

The structure on the Σ-type which becomes the structure on the direct limit after quotienting.

def FirstOrder.Language.DirectLimit E1 #

{L : FirstOrder.Language} →
  {ι : Type v} →
    [inst : Preorder ι] →
      (G : ι → Type w) →
        [inst_1 : (i : ι) → L.Structure (G i)] →
          (f : (i j : ι) → i ≤ j → L.Embedding (G i) (G j)) →
            [DirectedSystem G fun i j h ↦ ⇑(f i j h)] → [IsDirectedOrder ι] → Type (max v w)

The direct limit of a directed system is the structures glued together along the embeddings.

instance FirstOrder.Language.instInhabitedDirectLimitOfDefault E0 #

{L : FirstOrder.Language} →
  {ι : Type v} →
    [inst : Preorder ι] →
      (G : ι → Type w) →
        [inst_1 : (i : ι) → L.Structure (G i)] →
          (f : (i j : ι) → i ≤ j → L.Embedding (G i) (G j)) →
            [inst_2 : DirectedSystem G fun i j h ↦ ⇑(f i j h)] →
              [inst_3 : IsDirectedOrder ι] →
                [inst_4 : Inhabited ι] → [Inhabited (G default)] → Inhabited (FirstOrder.Language.DirectLimit G f)

theorem FirstOrder.Language.DirectLimit.equiv_iff E0 #

∀ {L : FirstOrder.Language} {ι : Type v} [inst : Preorder ι] (G : ι → Type w) [inst_1 : (i : ι) → L.Structure (G i)]
  (f : (i j : ι) → i ≤ j → L.Embedding (G i) (G j)) [inst_2 : IsDirectedOrder ι]
  [inst_3 : DirectedSystem G fun i j h ↦ ⇑(f i j h)] {x y : FirstOrder.Language.Structure.Sigma f} {i : ι}
  (hx : x.fst ≤ i) (hy : y.fst ≤ i), x ≈ y ↔ (f x.fst i hx) x.snd = (f y.fst i hy) y.snd

theorem FirstOrder.Language.DirectLimit.funMap_unify_equiv E1 #

∀ {L : FirstOrder.Language} {ι : Type v} [inst : Preorder ι] (G : ι → Type w) [inst_1 : (i : ι) → L.Structure (G i)]
  (f : (i j : ι) → i ≤ j → L.Embedding (G i) (G j)) [inst_2 : IsDirectedOrder ι]
  [inst_3 : DirectedSystem G fun i j h ↦ ⇑(f i j h)] {n : ℕ} (F : L.Functions n)
  (x : Fin n → FirstOrder.Language.Structure.Sigma f) (i j : ι) (hi : i ∈ upperBounds (Set.range (Sigma.fst ∘ x)))
  (hj : j ∈ upperBounds (Set.range (Sigma.fst ∘ x))),
  FirstOrder.Language.Structure.Sigma.mk f i
      (FirstOrder.Language.Structure.funMap F (FirstOrder.Language.DirectLimit.unify f x i hi)) ≈
    FirstOrder.Language.Structure.Sigma.mk f j
      (FirstOrder.Language.Structure.funMap F (FirstOrder.Language.DirectLimit.unify f x j hj))

theorem FirstOrder.Language.DirectLimit.relMap_unify_equiv E1 #

∀ {L : FirstOrder.Language} {ι : Type v} [inst : Preorder ι] (G : ι → Type w) [inst_1 : (i : ι) → L.Structure (G i)]
  (f : (i j : ι) → i ≤ j → L.Embedding (G i) (G j)) [IsDirectedOrder ι] [DirectedSystem G fun i j h ↦ ⇑(f i j h)]
  {n : ℕ} (R : L.Relations n) (x : Fin n → FirstOrder.Language.Structure.Sigma f) (i j : ι)
  (hi : i ∈ upperBounds (Set.range (Sigma.fst ∘ x))) (hj : j ∈ upperBounds (Set.range (Sigma.fst ∘ x))),
  FirstOrder.Language.Structure.RelMap R (FirstOrder.Language.DirectLimit.unify f x i hi) =
    FirstOrder.Language.Structure.RelMap R (FirstOrder.Language.DirectLimit.unify f x j hj)

theorem FirstOrder.Language.DirectLimit.exists_unify_eq E0 #

∀ {L : FirstOrder.Language} {ι : Type v} [inst : Preorder ι] (G : ι → Type w) [inst_1 : (i : ι) → L.Structure (G i)]
  (f : (i j : ι) → i ≤ j → L.Embedding (G i) (G j)) [inst_2 : IsDirectedOrder ι]
  [inst_3 : DirectedSystem G fun i j h ↦ ⇑(f i j h)] [Nonempty ι] {α : Type u_1} [Finite α]
  {x y : α → FirstOrder.Language.Structure.Sigma f},
  x ≈ y →
    ∃ i,
      ∃ (hx : i ∈ upperBounds (Set.range (Sigma.fst ∘ x))) (hy : i ∈ upperBounds (Set.range (Sigma.fst ∘ y))),
        FirstOrder.Language.DirectLimit.unify f x i hx = FirstOrder.Language.DirectLimit.unify f y i hy

theorem FirstOrder.Language.DirectLimit.funMap_equiv_unify E1 #

∀ {L : FirstOrder.Language} {ι : Type v} [inst : Preorder ι] (G : ι → Type w) [inst_1 : (i : ι) → L.Structure (G i)]
  (f : (i j : ι) → i ≤ j → L.Embedding (G i) (G j)) [inst_2 : IsDirectedOrder ι]
  [inst_3 : DirectedSystem G fun i j h ↦ ⇑(f i j h)] [inst_4 : Nonempty ι] {n : ℕ} (F : L.Functions n)
  (x : Fin n → FirstOrder.Language.Structure.Sigma f) (i : ι) (hi : i ∈ upperBounds (Set.range (Sigma.fst ∘ x))),
  FirstOrder.Language.Structure.funMap F x ≈
    FirstOrder.Language.Structure.Sigma.mk f i
      (FirstOrder.Language.Structure.funMap F (FirstOrder.Language.DirectLimit.unify f x i hi))

theorem FirstOrder.Language.DirectLimit.relMap_equiv_unify E1 #

∀ {L : FirstOrder.Language} {ι : Type v} [inst : Preorder ι] (G : ι → Type w) [inst_1 : (i : ι) → L.Structure (G i)]
  (f : (i j : ι) → i ≤ j → L.Embedding (G i) (G j)) [inst_2 : IsDirectedOrder ι]
  [DirectedSystem G fun i j h ↦ ⇑(f i j h)] [inst_4 : Nonempty ι] {n : ℕ} (R : L.Relations n)
  (x : Fin n → FirstOrder.Language.Structure.Sigma f) (i : ι) (hi : i ∈ upperBounds (Set.range (Sigma.fst ∘ x))),
  FirstOrder.Language.Structure.RelMap R x =
    FirstOrder.Language.Structure.RelMap R (FirstOrder.Language.DirectLimit.unify f x i hi)

instance FirstOrder.Language.DirectLimit.prestructure E0 #

{L : FirstOrder.Language} →
  {ι : Type v} →
    [inst : Preorder ι] →
      (G : ι → Type w) →
        [inst_1 : (i : ι) → L.Structure (G i)] →
          (f : (i j : ι) → i ≤ j → L.Embedding (G i) (G j)) →
            [inst_2 : IsDirectedOrder ι] →
              [inst_3 : DirectedSystem G fun i j h ↦ ⇑(f i j h)] →
                [Nonempty ι] → L.Prestructure (FirstOrder.Language.DirectLimit.setoid G f)

The direct limit setoid respects the structure sigmaStructure, so quotienting by it gives rise to a valid structure.

instance FirstOrder.Language.DirectLimit.instStructureDirectLimit E0 #

{L : FirstOrder.Language} →
  {ι : Type v} →
    [inst : Preorder ι] →
      (G : ι → Type w) →
        [inst_1 : (i : ι) → L.Structure (G i)] →
          (f : (i j : ι) → i ≤ j → L.Embedding (G i) (G j)) →
            [inst_2 : IsDirectedOrder ι] →
              [inst_3 : DirectedSystem G fun i j h ↦ ⇑(f i j h)] →
                [Nonempty ι] → L.Structure (FirstOrder.Language.DirectLimit G f)

The L.Structure on a direct limit of L.Structures.

theorem FirstOrder.Language.DirectLimit.funMap_quotient_mk'_sigma_mk' E0 #

∀ {L : FirstOrder.Language} {ι : Type v} [inst : Preorder ι] (G : ι → Type w) [inst_1 : (i : ι) → L.Structure (G i)]
  (f : (i j : ι) → i ≤ j → L.Embedding (G i) (G j)) [inst_2 : IsDirectedOrder ι]
  [inst_3 : DirectedSystem G fun i j h ↦ ⇑(f i j h)] [inst_4 : Nonempty ι] {n : ℕ} {F : L.Functions n} {i : ι}
  {x : Fin n → G i},
  (FirstOrder.Language.Structure.funMap F fun a ↦ ⟦FirstOrder.Language.Structure.Sigma.mk f i (x a)⟧) =
    ⟦FirstOrder.Language.Structure.Sigma.mk f i (FirstOrder.Language.Structure.funMap F x)⟧

theorem FirstOrder.Language.DirectLimit.relMap_quotient_mk'_sigma_mk' E0 #

∀ {L : FirstOrder.Language} {ι : Type v} [inst : Preorder ι] (G : ι → Type w) [inst_1 : (i : ι) → L.Structure (G i)]
  (f : (i j : ι) → i ≤ j → L.Embedding (G i) (G j)) [inst_2 : IsDirectedOrder ι]
  [inst_3 : DirectedSystem G fun i j h ↦ ⇑(f i j h)] [inst_4 : Nonempty ι] {n : ℕ} {R : L.Relations n} {i : ι}
  {x : Fin n → G i},
  (FirstOrder.Language.Structure.RelMap R fun a ↦ ⟦FirstOrder.Language.Structure.Sigma.mk f i (x a)⟧) =
    FirstOrder.Language.Structure.RelMap R x

theorem FirstOrder.Language.DirectLimit.exists_quotient_mk'_sigma_mk'_eq E0 #

∀ {L : FirstOrder.Language} {ι : Type v} [inst : Preorder ι] (G : ι → Type w) [inst_1 : (i : ι) → L.Structure (G i)]
  (f : (i j : ι) → i ≤ j → L.Embedding (G i) (G j)) [inst_2 : IsDirectedOrder ι]
  [inst_3 : DirectedSystem G fun i j h ↦ ⇑(f i j h)] [Nonempty ι] {α : Type u_1} [Finite α]
  (x : α → FirstOrder.Language.DirectLimit G f), ∃ i y, x = fun a ↦ ⟦FirstOrder.Language.Structure.Sigma.mk f i (y a)⟧

def FirstOrder.Language.DirectLimit.of E1 #

(L : FirstOrder.Language) →
  (ι : Type v) →
    [inst : Preorder ι] →
      (G : ι → Type w) →
        [inst_1 : (i : ι) → L.Structure (G i)] →
          (f : (i j : ι) → i ≤ j → L.Embedding (G i) (G j)) →
            [inst_2 : IsDirectedOrder ι] →
              [inst_3 : DirectedSystem G fun i j h ↦ ⇑(f i j h)] →
                [inst_4 : Nonempty ι] → (i : ι) → L.Embedding (G i) (FirstOrder.Language.DirectLimit G f)

The canonical map from a component to the direct limit.

theorem FirstOrder.Language.DirectLimit.of_apply E0 #

∀ {L : FirstOrder.Language} {ι : Type v} [inst : Preorder ι] {G : ι → Type w} [inst_1 : (i : ι) → L.Structure (G i)]
  {f : (i j : ι) → i ≤ j → L.Embedding (G i) (G j)} [inst_2 : IsDirectedOrder ι]
  [inst_3 : DirectedSystem G fun i j h ↦ ⇑(f i j h)] [inst_4 : Nonempty ι] {i : ι} {x : G i},
  (FirstOrder.Language.DirectLimit.of L ι G f i) x = ⟦FirstOrder.Language.Structure.Sigma.mk f i x⟧

theorem FirstOrder.Language.DirectLimit.of_f E1 #

∀ {L : FirstOrder.Language} {ι : Type v} [inst : Preorder ι] {G : ι → Type w} [inst_1 : (i : ι) → L.Structure (G i)]
  {f : (i j : ι) → i ≤ j → L.Embedding (G i) (G j)} [inst_2 : IsDirectedOrder ι]
  [inst_3 : DirectedSystem G fun i j h ↦ ⇑(f i j h)] [inst_4 : Nonempty ι] {i j : ι} {hij : i ≤ j} {x : G i},
  (FirstOrder.Language.DirectLimit.of L ι G f j) ((f i j hij) x) = (FirstOrder.Language.DirectLimit.of L ι G f i) x

theorem FirstOrder.Language.DirectLimit.exists_of E1 #

∀ {L : FirstOrder.Language} {ι : Type v} [inst : Preorder ι] {G : ι → Type w} [inst_1 : (i : ι) → L.Structure (G i)]
  {f : (i j : ι) → i ≤ j → L.Embedding (G i) (G j)} [inst_2 : IsDirectedOrder ι]
  [inst_3 : DirectedSystem G fun i j h ↦ ⇑(f i j h)] [inst_4 : Nonempty ι] (z : FirstOrder.Language.DirectLimit G f),
  ∃ i x, (FirstOrder.Language.DirectLimit.of L ι G f i) x = z

Every element of the direct limit corresponds to some element in some component of the directed system.

theorem FirstOrder.Language.DirectLimit.inductionOn E1 #

∀ {L : FirstOrder.Language} {ι : Type v} [inst : Preorder ι] {G : ι → Type w} [inst_1 : (i : ι) → L.Structure (G i)]
  {f : (i j : ι) → i ≤ j → L.Embedding (G i) (G j)} [inst_2 : IsDirectedOrder ι]
  [inst_3 : DirectedSystem G fun i j h ↦ ⇑(f i j h)] [inst_4 : Nonempty ι]
  {C : FirstOrder.Language.DirectLimit G f → Prop} (z : FirstOrder.Language.DirectLimit G f),
  (∀ (i : ι) (x : G i), C ((FirstOrder.Language.DirectLimit.of L ι G f i) x)) → C z

theorem FirstOrder.Language.DirectLimit.iSup_range_of_eq_top E1 #

∀ {L : FirstOrder.Language} {ι : Type v} [inst : Preorder ι] {G : ι → Type w} [inst_1 : (i : ι) → L.Structure (G i)]
  {f : (i j : ι) → i ≤ j → L.Embedding (G i) (G j)} [inst_2 : IsDirectedOrder ι]
  [inst_3 : DirectedSystem G fun i j h ↦ ⇑(f i j h)] [inst_4 : Nonempty ι],
  ⨆ i, (FirstOrder.Language.DirectLimit.of L ι G f i).toHom.range = ⊤

theorem FirstOrder.Language.DirectLimit.exists_fg_substructure_in_Sigma E1 #

∀ {L : FirstOrder.Language} {ι : Type v} [inst : Preorder ι] {G : ι → Type w} [inst_1 : (i : ι) → L.Structure (G i)]
  {f : (i j : ι) → i ≤ j → L.Embedding (G i) (G j)} [inst_2 : IsDirectedOrder ι]
  [inst_3 : DirectedSystem G fun i j h ↦ ⇑(f i j h)] [inst_4 : Nonempty ι]
  (S : L.Substructure (FirstOrder.Language.DirectLimit G f)),
  S.FG → ∃ i T, FirstOrder.Language.Substructure.map (FirstOrder.Language.DirectLimit.of L ι G f i).toHom T = S

Every finitely generated substructure of the direct limit corresponds to some substructure in some component of the directed system.

def FirstOrder.Language.DirectLimit.lift E3 #

(L : FirstOrder.Language) →
  (ι : Type v) →
    [inst : Preorder ι] →
      (G : ι → Type w) →
        [inst_1 : (i : ι) → L.Structure (G i)] →
          (f : (i j : ι) → i ≤ j → L.Embedding (G i) (G j)) →
            [inst_2 : IsDirectedOrder ι] →
              [inst_3 : DirectedSystem G fun i j h ↦ ⇑(f i j h)] →
                [inst_4 : Nonempty ι] →
                  {P : Type u₁} →
                    [inst_5 : L.Structure P] →
                      (g : (i : ι) → L.Embedding (G i) P) →
                        (∀ (i j : ι) (hij : i ≤ j) (x : G i), (g j) ((f i j hij) x) = (g i) x) →
                          L.Embedding (FirstOrder.Language.DirectLimit G f) P

The universal property of the direct limit: maps from the components to another module that respect the directed system structure (i.e. make some diagram commute) give rise to a unique map out of the direct limit.

theorem FirstOrder.Language.DirectLimit.lift_quotient_mk'_sigma_mk' E0 #

∀ {L : FirstOrder.Language} {ι : Type v} [inst : Preorder ι] {G : ι → Type w} [inst_1 : (i : ι) → L.Structure (G i)]
  {f : (i j : ι) → i ≤ j → L.Embedding (G i) (G j)} [inst_2 : IsDirectedOrder ι]
  [inst_3 : DirectedSystem G fun i j h ↦ ⇑(f i j h)] [inst_4 : Nonempty ι] {P : Type u₁} [inst_5 : L.Structure P]
  (g : (i : ι) → L.Embedding (G i) P) (Hg : ∀ (i j : ι) (hij : i ≤ j) (x : G i), (g j) ((f i j hij) x) = (g i) x)
  {i : ι} (x : G i),
  (FirstOrder.Language.DirectLimit.lift L ι G f g Hg) ⟦FirstOrder.Language.Structure.Sigma.mk f i x⟧ = (g i) x

theorem FirstOrder.Language.DirectLimit.lift_of E1 #

∀ {L : FirstOrder.Language} {ι : Type v} [inst : Preorder ι] {G : ι → Type w} [inst_1 : (i : ι) → L.Structure (G i)]
  {f : (i j : ι) → i ≤ j → L.Embedding (G i) (G j)} [inst_2 : IsDirectedOrder ι]
  [inst_3 : DirectedSystem G fun i j h ↦ ⇑(f i j h)] [inst_4 : Nonempty ι] {P : Type u₁} [inst_5 : L.Structure P]
  (g : (i : ι) → L.Embedding (G i) P) (Hg : ∀ (i j : ι) (hij : i ≤ j) (x : G i), (g j) ((f i j hij) x) = (g i) x)
  {i : ι} (x : G i),
  (FirstOrder.Language.DirectLimit.lift L ι G f g Hg) ((FirstOrder.Language.DirectLimit.of L ι G f i) x) = (g i) x

theorem FirstOrder.Language.DirectLimit.lift_unique E1 #

∀ {L : FirstOrder.Language} {ι : Type v} [inst : Preorder ι] {G : ι → Type w} [inst_1 : (i : ι) → L.Structure (G i)]
  {f : (i j : ι) → i ≤ j → L.Embedding (G i) (G j)} [inst_2 : IsDirectedOrder ι]
  [inst_3 : DirectedSystem G fun i j h ↦ ⇑(f i j h)] [inst_4 : Nonempty ι] {P : Type u₁} [inst_5 : L.Structure P]
  (F : L.Embedding (FirstOrder.Language.DirectLimit G f) P) (x : FirstOrder.Language.DirectLimit G f),
  F x =
    (FirstOrder.Language.DirectLimit.lift L ι G f (fun i ↦ F.comp (FirstOrder.Language.DirectLimit.of L ι G f i)) ⋯) x

theorem FirstOrder.Language.DirectLimit.range_lift E1 #

∀ {L : FirstOrder.Language} {ι : Type v} [inst : Preorder ι] {G : ι → Type w} [inst_1 : (i : ι) → L.Structure (G i)]
  {f : (i j : ι) → i ≤ j → L.Embedding (G i) (G j)} [inst_2 : IsDirectedOrder ι]
  [inst_3 : DirectedSystem G fun i j h ↦ ⇑(f i j h)] [inst_4 : Nonempty ι] {P : Type u₁} [inst_5 : L.Structure P]
  (g : (i : ι) → L.Embedding (G i) P) (Hg : ∀ (i j : ι) (hij : i ≤ j) (x : G i), (g j) ((f i j hij) x) = (g i) x),
  (FirstOrder.Language.DirectLimit.lift L ι G f g Hg).toHom.range = ⨆ i, (g i).toHom.range

def FirstOrder.Language.DirectLimit.equiv_lift E3 #

(L : FirstOrder.Language) →
  (ι : Type v) →
    [inst : Preorder ι] →
      (G : ι → Type w) →
        [inst_1 : (i : ι) → L.Structure (G i)] →
          (f : (i j : ι) → i ≤ j → L.Embedding (G i) (G j)) →
            [inst_2 : IsDirectedOrder ι] →
              [inst_3 : DirectedSystem G fun i j h ↦ ⇑(f i j h)] →
                [inst_4 : Nonempty ι] →
                  (G' : ι → Type w') →
                    [inst_5 : (i : ι) → L.Structure (G' i)] →
                      (f' : (i j : ι) → i ≤ j → L.Embedding (G' i) (G' j)) →
                        (g : (i : ι) → L.Equiv (G i) (G' i)) →
                          [inst_6 : DirectedSystem G' fun i j h ↦ ⇑(f' i j h)] →
                            (∀ (i j : ι) (hij : i ≤ j) (x : G i), (g j) ((f i j hij) x) = (f' i j hij) ((g i) x)) →
                              L.Equiv (FirstOrder.Language.DirectLimit G f) (FirstOrder.Language.DirectLimit G' f')

The isomorphism between limits of isomorphic systems.

theorem FirstOrder.Language.DirectLimit.equiv_lift_of E1 #

∀ (L : FirstOrder.Language) (ι : Type v) [inst : Preorder ι] (G : ι → Type w) [inst_1 : (i : ι) → L.Structure (G i)]
  (f : (i j : ι) → i ≤ j → L.Embedding (G i) (G j)) [inst_2 : IsDirectedOrder ι]
  [inst_3 : DirectedSystem G fun i j h ↦ ⇑(f i j h)] [inst_4 : Nonempty ι] (G' : ι → Type w')
  [inst_5 : (i : ι) → L.Structure (G' i)] (f' : (i j : ι) → i ≤ j → L.Embedding (G' i) (G' j))
  (g : (i : ι) → L.Equiv (G i) (G' i)) [inst_6 : DirectedSystem G' fun i j h ↦ ⇑(f' i j h)]
  (H_commuting : ∀ (i j : ι) (hij : i ≤ j) (x : G i), (g j) ((f i j hij) x) = (f' i j hij) ((g i) x)) {i : ι} (x : G i),
  (FirstOrder.Language.DirectLimit.equiv_lift L ι G f G' f' g H_commuting)
      ((FirstOrder.Language.DirectLimit.of L ι G f i) x) =
    (FirstOrder.Language.DirectLimit.of L ι G' f' i) ((g i) x)

theorem FirstOrder.Language.DirectLimit.cg E1 #

∀ {L : FirstOrder.Language} {ι : Type u_1} [Countable ι] [inst : Preorder ι] [inst_1 : IsDirectedOrder ι]
  [inst_2 : Nonempty ι] {G : ι → Type w} [inst_3 : (i : ι) → L.Structure (G i)]
  (f : (i j : ι) → i ≤ j → L.Embedding (G i) (G j)),
  (∀ (i : ι), FirstOrder.Language.Structure.CG L (G i)) →
    ∀ [inst_4 : DirectedSystem G fun i j h ↦ ⇑(f i j h)],
      FirstOrder.Language.Structure.CG L (FirstOrder.Language.DirectLimit G f)

The direct limit of countably many countably generated structures is countably generated.

instance FirstOrder.Language.DirectLimit.cg' E0 #

∀ {L : FirstOrder.Language} {ι : Type u_1} [Countable ι] [inst : Preorder ι] [inst_1 : IsDirectedOrder ι]
  [inst_2 : Nonempty ι] {G : ι → Type w} [inst_3 : (i : ι) → L.Structure (G i)]
  (f : (i j : ι) → i ≤ j → L.Embedding (G i) (G j)) [h : ∀ (i : ι), FirstOrder.Language.Structure.CG L (G i)]
  [inst_4 : DirectedSystem G fun i j h ↦ ⇑(f i j h)],
  FirstOrder.Language.Structure.CG L (FirstOrder.Language.DirectLimit G f)

instance FirstOrder.Language.instDirectedSystemSubtypeMemSubstructureCoeOrderHomEmbeddingInclusion E0 #

∀ {L : FirstOrder.Language} {ι : Type v} [inst : Preorder ι] {M : Type u_1} [inst_1 : L.Structure M]
  (S : ι →o L.Substructure M),
  DirectedSystem (fun i ↦ ↥(S i)) fun x x_1 h ↦ ⇑(FirstOrder.Language.Substructure.inclusion ⋯)

def FirstOrder.Language.DirectLimit.liftInclusion E1 #

{L : FirstOrder.Language} →
  {ι : Type v} →
    [inst : Preorder ι] →
      [inst_1 : Nonempty ι] →
        [inst_2 : IsDirectedOrder ι] →
          {M : Type u_1} →
            [inst_3 : L.Structure M] →
              (S : ι →o L.Substructure M) →
                L.Embedding
                  (FirstOrder.Language.DirectLimit (fun i ↦ ↥(S i)) fun x x_1 h ↦
                    FirstOrder.Language.Substructure.inclusion ⋯)
                  M

The map from a direct limit of a system of substructures of M into M.

theorem FirstOrder.Language.DirectLimit.liftInclusion_of E1 #

∀ {L : FirstOrder.Language} {ι : Type v} [inst : Preorder ι] [inst_1 : Nonempty ι] [inst_2 : IsDirectedOrder ι]
  {M : Type u_1} [inst_3 : L.Structure M] (S : ι →o L.Substructure M) {i : ι} (x : ↥(S i)),
  (FirstOrder.Language.DirectLimit.liftInclusion S)
      ((FirstOrder.Language.DirectLimit.of L ι (fun x ↦ ↥(S x))
          (fun x x_1 h ↦ FirstOrder.Language.Substructure.inclusion ⋯) i)
        x) =
    (S i).subtype x

theorem FirstOrder.Language.DirectLimit.rangeLiftInclusion E1 #

∀ {L : FirstOrder.Language} {ι : Type v} [inst : Preorder ι] [inst_1 : Nonempty ι] [inst_2 : IsDirectedOrder ι]
  {M : Type u_1} [inst_3 : L.Structure M] (S : ι →o L.Substructure M),
  (FirstOrder.Language.DirectLimit.liftInclusion S).toHom.range = ⨆ i, S i

def FirstOrder.Language.DirectLimit.Equiv_iSup E1 #

{L : FirstOrder.Language} →
  {ι : Type v} →
    [inst : Preorder ι] →
      [inst_1 : Nonempty ι] →
        [inst_2 : IsDirectedOrder ι] →
          {M : Type u_1} →
            [inst_3 : L.Structure M] →
              (S : ι →o L.Substructure M) →
                L.Equiv
                  (FirstOrder.Language.DirectLimit (fun i ↦ ↥(S i)) fun x x_1 h ↦
                    FirstOrder.Language.Substructure.inclusion ⋯)
                  ↥(iSup ⇑S)

The isomorphism between a direct limit of a system of substructures and their union.

theorem FirstOrder.Language.DirectLimit.Equiv_isup_of_apply E0 #

∀ {L : FirstOrder.Language} {ι : Type v} [inst : Preorder ι] [inst_1 : Nonempty ι] [inst_2 : IsDirectedOrder ι]
  {M : Type u_1} [inst_3 : L.Structure M] (S : ι →o L.Substructure M) {i : ι} (x : ↥(S i)),
  (FirstOrder.Language.DirectLimit.Equiv_iSup S)
      ((FirstOrder.Language.DirectLimit.of L ι (fun x ↦ ↥(S x))
          (fun x x_1 h ↦ FirstOrder.Language.Substructure.inclusion ⋯) i)
        x) =
    (FirstOrder.Language.Substructure.inclusion ⋯) x

theorem FirstOrder.Language.DirectLimit.Equiv_isup_symm_inclusion_apply E0 #

∀ {L : FirstOrder.Language} {ι : Type v} [inst : Preorder ι] [inst_1 : Nonempty ι] [inst_2 : IsDirectedOrder ι]
  {M : Type u_1} [inst_3 : L.Structure M] (S : ι →o L.Substructure M) {i : ι} (x : ↥(S i)),
  (FirstOrder.Language.DirectLimit.Equiv_iSup S).symm ((FirstOrder.Language.Substructure.inclusion ⋯) x) =
    (FirstOrder.Language.DirectLimit.of L ι (fun x ↦ ↥(S x))
        (fun x x_1 h ↦ FirstOrder.Language.Substructure.inclusion ⋯) i)
      x

theorem FirstOrder.Language.DirectLimit.Equiv_isup_symm_inclusion E0 #

∀ {L : FirstOrder.Language} {ι : Type v} [inst : Preorder ι] [inst_1 : Nonempty ι] [inst_2 : IsDirectedOrder ι]
  {M : Type u_1} [inst_3 : L.Structure M] (S : ι →o L.Substructure M) (i : ι),
  (FirstOrder.Language.DirectLimit.Equiv_iSup S).symm.toEmbedding.comp (FirstOrder.Language.Substructure.inclusion ⋯) =
    FirstOrder.Language.DirectLimit.of L ι (fun x ↦ ↥(S x)) (fun x x_1 h ↦ FirstOrder.Language.Substructure.inclusion ⋯)
      i