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

70 declarations. Mathlib docs · Source

Partial Isomorphisms

This file defines partial isomorphisms between first-order structures.

Main Definitions

  • FirstOrder.Language.PartialEquiv is defined so that L.PartialEquiv M N, annotated M ≃ₚ[L] N, is the type of equivalences between substructures of M and N. These can be ordered, with an order that is defined here in terms of a commutative square, but could also be defined as the order on the graphs of the partial equivalences under inclusion as subsets of M × N.
  • FirstOrder.Language.FGEquiv is the type of partial equivalences M ≃ₚ[L] N with finitely-generated domain (or equivalently, codomain).
  • FirstOrder.Language.IsExtensionPair is defined so that L.IsExtensionPair M N indicates that any finitely-generated partial equivalence from M to N can be extended to include an arbitrary element m : M in its domain.

Main Results

  • FirstOrder.Language.embedding_from_cg shows that if structures M and N form an equivalence pair with M countably-generated, then any finite-generated partial equivalence between them can be extended to an embedding M ↪[L] N.
  • FirstOrder.Language.equiv_between_cg shows that if countably-generated structures M and N form an equivalence pair in both directions, then any finite-generated partial equivalence between them can be extended to an isomorphism M ≃[L] N.
  • The proofs of these results are adapted in part from David Wärn's approach to countable dense linear orders, a special case of this phenomenon in the case where L = Language.order.

theorem FirstOrder.Language.DirectLimit.equiv_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 ι] (G' : ι → Type w')
  [inst_5 : (i : ι) → L.Structure (G' i)] (f' : (i j : ι) → i ≤ j → L.Embedding (G' i) (G' j))
  (g g_1 : (i : ι) → L.Equiv (G i) (G' i)) (e_g : g = g_1) [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)),
  FirstOrder.Language.DirectLimit.equiv_lift L ι G f G' f' g H_commuting =
    FirstOrder.Language.DirectLimit.equiv_lift L ι G f G' f' g_1 ⋯

theorem FirstOrder.Language.PartialEquiv.mk.inj E1 #

∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} {inst : L.Structure M} {inst_1 : L.Structure N}
  {dom : L.Substructure M} {cod : L.Substructure N} {toEquiv : L.Equiv ↥dom ↥cod} {dom_1 : L.Substructure M}
  {cod_1 : L.Substructure N} {toEquiv_1 : L.Equiv ↥dom_1 ↥cod_1},
  { dom := dom, cod := cod, toEquiv := toEquiv } = { dom := dom_1, cod := cod_1, toEquiv := toEquiv_1 } →
    dom = dom_1 ∧ cod = cod_1 ∧ toEquiv ≍ toEquiv_1

def FirstOrder.Language.PartialEquiv.ctorIdx E1 #

{L : FirstOrder.Language} →
  {M : Type w} → {N : Type w'} → {inst : L.Structure M} → {inst_1 : L.Structure N} → L.PartialEquiv M N → ℕ

theorem FirstOrder.Language.PartialEquiv.mk.injEq E0 #

∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N]
  (dom : L.Substructure M) (cod : L.Substructure N) (toEquiv : L.Equiv ↥dom ↥cod) (dom_1 : L.Substructure M)
  (cod_1 : L.Substructure N) (toEquiv_1 : L.Equiv ↥dom_1 ↥cod_1),
  ({ dom := dom, cod := cod, toEquiv := toEquiv } = { dom := dom_1, cod := cod_1, toEquiv := toEquiv_1 }) =
    (dom = dom_1 ∧ cod = cod_1 ∧ toEquiv ≍ toEquiv_1)

structure FirstOrder.Language.PartialEquiv E3 #

(L : FirstOrder.Language) → (M : Type w) → (N : Type w') → [L.Structure M] → [L.Structure N] → Type (max w w')

A partial L-equivalence, implemented as an equivalence between substructures.

ctor FirstOrder.Language.PartialEquiv.mk E0 #

{L : FirstOrder.Language} →
  {M : Type w} →
    {N : Type w'} →
      [inst : L.Structure M] →
        [inst_1 : L.Structure N] →
          (dom : L.Substructure M) → (cod : L.Substructure N) → L.Equiv ↥dom ↥cod → L.PartialEquiv M N

abbrev FirstOrder.Language.PartialEquiv.dom E1 #

{L : FirstOrder.Language} →
  {M : Type w} →
    {N : Type w'} → [inst : L.Structure M] → [inst_1 : L.Structure N] → L.PartialEquiv M N → L.Substructure M

The substructure which is the domain of the equivalence.

abbrev FirstOrder.Language.PartialEquiv.cod E1 #

{L : FirstOrder.Language} →
  {M : Type w} →
    {N : Type w'} → [inst : L.Structure M] → [inst_1 : L.Structure N] → L.PartialEquiv M N → L.Substructure N

The substructure which is the codomain of the equivalence.

abbrev FirstOrder.Language.PartialEquiv.toEquiv E1 #

{L : FirstOrder.Language} →
  {M : Type w} →
    {N : Type w'} →
      [inst : L.Structure M] → [inst_1 : L.Structure N] → (self : L.PartialEquiv M N) → L.Equiv ↥self.dom ↥self.cod

The equivalence between the two subdomains.

def FirstOrder.«term_≃ₚ[_]_» E1 #

Lean.TrailingParserDescr

A partial L-equivalence, implemented as an equivalence between substructures.

instance FirstOrder.Language.PartialEquiv.instInhabited_self E0 #

{L : FirstOrder.Language} → {M : Type w} → [inst : L.Structure M] → Inhabited (L.PartialEquiv M M)

def FirstOrder.Language.PartialEquiv.symm E1 #

{L : FirstOrder.Language} →
  {M : Type w} →
    {N : Type w'} → [inst : L.Structure M] → [inst_1 : L.Structure N] → L.PartialEquiv M N → L.PartialEquiv N M

Maps to the symmetric partial equivalence.

theorem FirstOrder.Language.PartialEquiv.symm_symm E0 #

∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N]
  (f : L.PartialEquiv M N), f.symm.symm = f

theorem FirstOrder.Language.PartialEquiv.symm_bijective E1 #

∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N],
  Function.Bijective FirstOrder.Language.PartialEquiv.symm

theorem FirstOrder.Language.PartialEquiv.symm_apply E0 #

∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N]
  (f : L.PartialEquiv M N) (x : ↥f.cod), f.symm.toEquiv x = f.toEquiv.symm x

instance FirstOrder.Language.PartialEquiv.instLE E0 #

{L : FirstOrder.Language} →
  {M : Type w} → {N : Type w'} → [inst : L.Structure M] → [inst_1 : L.Structure N] → LE (L.PartialEquiv M N)

theorem FirstOrder.Language.PartialEquiv.le_def E0 #

∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N]
  (f g : L.PartialEquiv M N),
  f ≤ g ↔
    ∃ (h : f.dom ≤ g.dom),
      g.cod.subtype.comp (g.toEquiv.toEmbedding.comp (FirstOrder.Language.Substructure.inclusion h)) =
        f.cod.subtype.comp f.toEquiv.toEmbedding

theorem FirstOrder.Language.PartialEquiv.dom_le_dom E1 #

∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N]
  {f g : L.PartialEquiv M N}, f ≤ g → f.dom ≤ g.dom

theorem FirstOrder.Language.PartialEquiv.cod_le_cod E1 #

∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N]
  {f g : L.PartialEquiv M N}, f ≤ g → f.cod ≤ g.cod

theorem FirstOrder.Language.PartialEquiv.subtype_toEquiv_inclusion E1 #

∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N]
  {f g : L.PartialEquiv M N} (h : f ≤ g),
  g.cod.subtype.comp (g.toEquiv.toEmbedding.comp (FirstOrder.Language.Substructure.inclusion ⋯)) =
    f.cod.subtype.comp f.toEquiv.toEmbedding

theorem FirstOrder.Language.PartialEquiv.toEquiv_inclusion E1 #

∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N]
  {f g : L.PartialEquiv M N} (h : f ≤ g),
  g.toEquiv.toEmbedding.comp (FirstOrder.Language.Substructure.inclusion ⋯) =
    (FirstOrder.Language.Substructure.inclusion ⋯).comp f.toEquiv.toEmbedding

theorem FirstOrder.Language.PartialEquiv.toEquiv_inclusion_apply E0 #

∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N]
  {f g : L.PartialEquiv M N} (h : f ≤ g) (x : ↥f.dom),
  g.toEquiv ((FirstOrder.Language.Substructure.inclusion ⋯) x) =
    (FirstOrder.Language.Substructure.inclusion ⋯) (f.toEquiv x)

theorem FirstOrder.Language.PartialEquiv.le_iff E0 #

∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N]
  {f g : L.PartialEquiv M N},
  f ≤ g ↔
    ∃ (dom_le_dom : f.dom ≤ g.dom) (cod_le_cod : f.cod ≤ g.cod),
      ∀ (x : ↥f.dom),
        (FirstOrder.Language.Substructure.inclusion cod_le_cod) (f.toEquiv x) =
          g.toEquiv ((FirstOrder.Language.Substructure.inclusion dom_le_dom) x)

theorem FirstOrder.Language.PartialEquiv.le_trans E1 #

∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N]
  (f g h : L.PartialEquiv M N), f ≤ g → g ≤ h → f ≤ h

instance FirstOrder.Language.PartialEquiv.instPartialOrder E0 #

{L : FirstOrder.Language} →
  {M : Type w} → {N : Type w'} → [inst : L.Structure M] → [inst_1 : L.Structure N] → PartialOrder (L.PartialEquiv M N)

theorem FirstOrder.Language.PartialEquiv.symm_le_symm E1 #

∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N]
  {f g : L.PartialEquiv M N}, f ≤ g → f.symm ≤ g.symm

theorem FirstOrder.Language.PartialEquiv.monotone_symm E1 #

∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N],
  Monotone fun f ↦ f.symm

theorem FirstOrder.Language.PartialEquiv.symm_le_iff E0 #

∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N]
  {f : L.PartialEquiv M N} {g : L.PartialEquiv N M}, f.symm ≤ g ↔ f ≤ g.symm

theorem FirstOrder.Language.PartialEquiv.ext E1 #

∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N]
  {f g : L.PartialEquiv M N} (h_dom : f.dom = g.dom),
  (∀ (x : M) (h : x ∈ f.dom), f.cod.subtype (f.toEquiv ⟨x, h⟩) = g.cod.subtype (g.toEquiv ⟨x, ⋯⟩)) → f = g

theorem FirstOrder.Language.PartialEquiv.ext_iff E0 #

∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N]
  {f g : L.PartialEquiv M N},
  f = g ↔
    ∃ (h_dom : f.dom = g.dom),
      ∀ (x : M) (h : x ∈ f.dom), f.cod.subtype (f.toEquiv ⟨x, h⟩) = g.cod.subtype (g.toEquiv ⟨x, ⋯⟩)

theorem FirstOrder.Language.PartialEquiv.monotone_dom E1 #

∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N],
  Monotone fun f ↦ f.dom

theorem FirstOrder.Language.PartialEquiv.monotone_cod E1 #

∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N],
  Monotone fun f ↦ f.cod

def FirstOrder.Language.PartialEquiv.domRestrict E1 #

{L : FirstOrder.Language} →
  {M : Type w} →
    {N : Type w'} →
      [inst : L.Structure M] →
        [inst_1 : L.Structure N] → (f : L.PartialEquiv M N) → {A : L.Substructure M} → A ≤ f.dom → L.PartialEquiv M N

Restriction of a partial equivalence to a substructure of the domain.

theorem FirstOrder.Language.PartialEquiv.domRestrict_le E1 #

∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N]
  (f : L.PartialEquiv M N) {A : L.Substructure M} (h : A ≤ f.dom), f.domRestrict h ≤ f

theorem FirstOrder.Language.PartialEquiv.le_domRestrict E1 #

∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N]
  (f g : L.PartialEquiv M N) {A : L.Substructure M}, f.dom ≤ A → ∀ (hg : A ≤ g.dom), f ≤ g → f ≤ g.domRestrict hg

def FirstOrder.Language.PartialEquiv.codRestrict E1 #

{L : FirstOrder.Language} →
  {M : Type w} →
    {N : Type w'} →
      [inst : L.Structure M] →
        [inst_1 : L.Structure N] → (f : L.PartialEquiv M N) → {A : L.Substructure N} → A ≤ f.cod → L.PartialEquiv M N

Restriction of a partial equivalence to a substructure of the codomain.

theorem FirstOrder.Language.PartialEquiv.codRestrict_le E1 #

∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N]
  (f : L.PartialEquiv M N) {A : L.Substructure N} (h : A ≤ f.cod), f.codRestrict h ≤ f

theorem FirstOrder.Language.PartialEquiv.le_codRestrict E1 #

∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N]
  (f g : L.PartialEquiv M N) {A : L.Substructure N}, f.cod ≤ A → ∀ (hg : A ≤ g.cod), f ≤ g → f ≤ g.codRestrict hg

def FirstOrder.Language.PartialEquiv.toEmbedding E1 #

{L : FirstOrder.Language} →
  {M : Type w} →
    {N : Type w'} →
      [inst : L.Structure M] → [inst_1 : L.Structure N] → (f : L.PartialEquiv M N) → L.Embedding (↥f.dom) N

A partial equivalence as an embedding from its domain.

theorem FirstOrder.Language.PartialEquiv.toEmbedding_apply E0 #

∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N]
  {f : L.PartialEquiv M N} (m : ↥f.dom), f.toEmbedding m = ↑(f.toEquiv m)

def FirstOrder.Language.PartialEquiv.toEmbeddingOfEqTop E1 #

{L : FirstOrder.Language} →
  {M : Type w} →
    {N : Type w'} →
      [inst : L.Structure M] → [inst_1 : L.Structure N] → {f : L.PartialEquiv M N} → f.dom = ⊤ → L.Embedding M N

Given a partial equivalence which has the whole structure as domain, returns the corresponding embedding.

theorem FirstOrder.Language.PartialEquiv.toEmbeddingOfEqTop_apply E0 #

∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N]
  {f : L.PartialEquiv M N} (h : f.dom = ⊤) (m : M),
  (FirstOrder.Language.PartialEquiv.toEmbeddingOfEqTop h) m = ↑(f.toEquiv ⟨m, ⋯⟩)

def FirstOrder.Language.PartialEquiv.toEquivOfEqTop E1 #

{L : FirstOrder.Language} →
  {M : Type w} →
    {N : Type w'} →
      [inst : L.Structure M] → [inst_1 : L.Structure N] → {f : L.PartialEquiv M N} → f.dom = ⊤ → f.cod = ⊤ → L.Equiv M N

Given a partial equivalence which has the whole structure as domain and as codomain, returns the corresponding equivalence.

theorem FirstOrder.Language.PartialEquiv.toEquivOfEqTop_toEmbedding E0 #

∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N]
  {f : L.PartialEquiv M N} (h_dom : f.dom = ⊤) (h_cod : f.cod = ⊤),
  (FirstOrder.Language.PartialEquiv.toEquivOfEqTop h_dom h_cod).toEmbedding =
    FirstOrder.Language.PartialEquiv.toEmbeddingOfEqTop h_dom

theorem FirstOrder.Language.PartialEquiv.dom_fg_iff_cod_fg E1 #

∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] {N : Type u_1} [inst_1 : L.Structure N]
  (f : L.PartialEquiv M N), f.dom.FG ↔ f.cod.FG

def FirstOrder.Language.Embedding.toPartialEquiv E1 #

{L : FirstOrder.Language} →
  {M : Type w} →
    {N : Type w'} → [inst : L.Structure M] → [inst_1 : L.Structure N] → L.Embedding M N → L.PartialEquiv M N

Given an embedding, returns the corresponding partial equivalence with ⊤ as domain.

theorem FirstOrder.Language.Embedding.toPartialEquiv_injective E1 #

∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N],
  Function.Injective fun f ↦ f.toPartialEquiv

theorem FirstOrder.Language.Embedding.toEmbedding_toPartialEquiv E0 #

∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N]
  (f : L.Embedding M N), FirstOrder.Language.PartialEquiv.toEmbeddingOfEqTop ⋯ = f

theorem FirstOrder.Language.Embedding.toPartialEquiv_toEmbedding E0 #

∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N]
  {f : L.PartialEquiv M N} (h : f.dom = ⊤), (FirstOrder.Language.PartialEquiv.toEmbeddingOfEqTop h).toPartialEquiv = f

instance FirstOrder.Language.DirectLimit.instDirectedSystemSubtypeMemSubstructureDomCoeOrderHomPartialEquivEmbeddingInclusion E0 #

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

instance FirstOrder.Language.DirectLimit.instDirectedSystemSubtypeMemSubstructureCodCoeOrderHomPartialEquivEmbeddingInclusion E0 #

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

def FirstOrder.Language.DirectLimit.partialEquivLimit E1 #

{L : FirstOrder.Language} →
  {M : Type w} →
    {N : Type w'} →
      [inst : L.Structure M] →
        [inst_1 : L.Structure N] →
          {ι : Type u_1} →
            [inst_2 : Preorder ι] → [Nonempty ι] → [IsDirectedOrder ι] → (ι →o L.PartialEquiv M N) → L.PartialEquiv M N

The limit of a directed system of PartialEquivs.

theorem FirstOrder.Language.DirectLimit.dom_partialEquivLimit E0 #

∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N] {ι : Type u_1}
  [inst_2 : Preorder ι] [inst_3 : Nonempty ι] [inst_4 : IsDirectedOrder ι] (S : ι →o L.PartialEquiv M N),
  (FirstOrder.Language.DirectLimit.partialEquivLimit S).dom = ⨆ x, (S x).dom

theorem FirstOrder.Language.DirectLimit.cod_partialEquivLimit E0 #

∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N] {ι : Type u_1}
  [inst_2 : Preorder ι] [inst_3 : Nonempty ι] [inst_4 : IsDirectedOrder ι] (S : ι →o L.PartialEquiv M N),
  (FirstOrder.Language.DirectLimit.partialEquivLimit S).cod = ⨆ x, (S x).cod

theorem FirstOrder.Language.DirectLimit.partialEquivLimit_comp_inclusion E0 #

∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N] {ι : Type u_1}
  [inst_2 : Preorder ι] [inst_3 : Nonempty ι] [inst_4 : IsDirectedOrder ι] (S : ι →o L.PartialEquiv M N) {i : ι},
  (FirstOrder.Language.DirectLimit.partialEquivLimit S).toEquiv.toEmbedding.comp
      (FirstOrder.Language.Substructure.inclusion ⋯) =
    (FirstOrder.Language.Substructure.inclusion ⋯).comp (S i).toEquiv.toEmbedding

theorem FirstOrder.Language.DirectLimit.le_partialEquivLimit E1 #

∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N] {ι : Type u_1}
  [inst_2 : Preorder ι] [inst_3 : Nonempty ι] [inst_4 : IsDirectedOrder ι] (S : ι →o L.PartialEquiv M N) (i : ι),
  S i ≤ FirstOrder.Language.DirectLimit.partialEquivLimit S

abbrev FirstOrder.Language.FGEquiv E3 #

(L : FirstOrder.Language) → (M : Type w) → (N : Type w') → [L.Structure M] → [L.Structure N] → Type (max 0 w w')

The type of equivalences between finitely generated substructures.

def FirstOrder.Language.IsExtensionPair E3 #

(L : FirstOrder.Language) → (M : Type w) → (N : Type w') → [L.Structure M] → [L.Structure N] → Prop

Two structures M and N form an extension pair if the domain of any finitely-generated map from M to N can be extended to include any element of M.

theorem FirstOrder.Language.countable_self_fgequiv_of_countable E1 #

∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] [Countable M], Countable (L.FGEquiv M M)

instance FirstOrder.Language.inhabited_self_FGEquiv E0 #

{L : FirstOrder.Language} → {M : Type w} → [inst : L.Structure M] → Inhabited (L.FGEquiv M M)

instance FirstOrder.Language.inhabited_FGEquiv_of_IsEmpty_Constants_and_Relations E0 #

{L : FirstOrder.Language} →
  {M : Type w} →
    {N : Type w'} →
      [inst : L.Structure M] →
        [inst_1 : L.Structure N] → [IsEmpty L.Constants] → [IsEmpty (L.Relations 0)] → Inhabited (L.FGEquiv M N)

def FirstOrder.Language.FGEquiv.symm E1 #

{L : FirstOrder.Language} →
  {M : Type w} → {N : Type w'} → [inst : L.Structure M] → [inst_1 : L.Structure N] → L.FGEquiv M N → L.FGEquiv N M

Maps to the symmetric finitely-generated partial equivalence.

theorem FirstOrder.Language.FGEquiv.symm_coe E0 #

∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N]
  (f : L.FGEquiv M N), ↑f.symm = (↑f).symm

theorem FirstOrder.Language.isExtensionPair_iff_cod E1 #

∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N],
  L.IsExtensionPair M N ↔ ∀ (f : L.FGEquiv N M) (m : M), ∃ g, m ∈ (↑g).cod ∧ f ≤ g

theorem FirstOrder.Language.isExtensionPair_iff_exists_embedding_closure_singleton_sup E1 #

∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N],
  L.IsExtensionPair M N ↔
    ∀ (S : L.Substructure M),
      S.FG → ∀ (f : L.Embedding (↥S) N) (m : M), ∃ g, f = g.comp (FirstOrder.Language.Substructure.inclusion ⋯)

An alternate characterization of an extension pair is that every finitely generated partial isomorphism can be extended to include any particular element of the domain.

theorem FirstOrder.Language.IsExtensionPair.cod E1 #

∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N],
  L.IsExtensionPair M N → ∀ (f : L.FGEquiv N M) (m : M), ∃ g, m ∈ (↑g).cod ∧ f ≤ g

Alias of the forward direction of FirstOrder.Language.isExtensionPair_iff_cod.

def FirstOrder.Language.IsExtensionPair.definedAtLeft E1 #

{L : FirstOrder.Language} →
  {M : Type w} →
    {N : Type w'} →
      [inst : L.Structure M] → [inst_1 : L.Structure N] → L.IsExtensionPair M N → M → Order.Cofinal (L.FGEquiv M N)

The cofinal set of finite equivalences with a given element in their domain.

def FirstOrder.Language.IsExtensionPair.definedAtRight E1 #

{L : FirstOrder.Language} →
  {M : Type w} →
    {N : Type w'} →
      [inst : L.Structure M] → [inst_1 : L.Structure N] → L.IsExtensionPair N M → N → Order.Cofinal (L.FGEquiv M N)

The cofinal set of finite equivalences with a given element in their codomain.

theorem FirstOrder.Language.embedding_from_cg E3 #

∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N],
  FirstOrder.Language.Structure.CG L M → ∀ (g : L.FGEquiv M N), L.IsExtensionPair M N → ∃ f, ↑g ≤ f.toPartialEquiv

For a countably generated structure M and a structure N, if any partial equivalence between finitely generated substructures can be extended to any element in the domain, then there exists an embedding of M in N.

theorem FirstOrder.Language.equiv_between_cg E3 #

∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N],
  FirstOrder.Language.Structure.CG L M →
    FirstOrder.Language.Structure.CG L N →
      ∀ (g : L.FGEquiv M N), L.IsExtensionPair M N → L.IsExtensionPair N M → ∃ f, ↑g ≤ f.toEmbedding.toPartialEquiv

For two countably generated structure M and N, if any PartialEquiv between finitely generated substructures can be extended to any element in the domain and to any element in the codomain, then there exists an equivalence between M and N.