The areas / V32. Logic, model theory and computability
Mathlib.ModelTheory.Basic
198 declarations. Mathlib docs · Source
Basics on First-Order Structures
This file defines first-order languages and structures in the style of the Flypitch project, as well as several important maps between structures.
Main Definitions
- A
FirstOrder.Languagedefines a language as a pair of functions from the natural numbers toType l. One sendsnto the type ofn-ary functions, and the other sendsnto the type ofn-ary relations. - A
FirstOrder.Language.Structureinterprets the symbols of a givenFirstOrder.Languagein the context of a given type. - A
FirstOrder.Language.Hom, denotedM →[L] N, is a map from theL-structureMto theL-structureNthat commutes with the interpretations of functions, and which preserves the interpretations of relations (although only in the forward direction). - A
FirstOrder.Language.Embedding, denotedM ↪[L] N, is an embedding from theL-structureMto theL-structureNthat commutes with the interpretations of functions, and which preserves the interpretations of relations in both directions. - A
FirstOrder.Language.Equiv, denotedM ≃[L] N, is an equivalence from theL-structureMto theL-structureNthat commutes with the interpretations of functions, and which preserves the interpretations of relations in both directions.
References
For the Flypitch project:
- [J. Han, F. van Doorn, A formal proof of the independence of the continuum hypothesis][flypitch_cpp]
- [J. Han, F. van Doorn, A formalization of forcing and the unprovability of the continuum hypothesis][flypitch_itp]
Languages and Structures
Maps
theorem FirstOrder.Language.Embedding.ofInjective.congr_simp E1 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N]
[inst_2 : L.IsAlgebraic] {f f_1 : L.Hom M N} (e_f : f = f_1) (hf : Function.Injective ⇑f),
FirstOrder.Language.Embedding.ofInjective hf = FirstOrder.Language.Embedding.ofInjective ⋯
theorem FirstOrder.Language.Embedding.mk.inj E1 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} {inst : L.Structure M} {inst_1 : L.Structure N}
{toEmbedding : M ↪ N}
{map_fun' :
autoParam
(∀ {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))
FirstOrder.Language.Embedding.map_fun'._autoParam}
{map_rel' :
autoParam
(∀ {n : ℕ} (r : L.Relations n) (x : Fin n → M),
FirstOrder.Language.Structure.RelMap r (toEmbedding.toFun ∘ x) ↔ FirstOrder.Language.Structure.RelMap r x)
FirstOrder.Language.Embedding.map_rel'._autoParam}
{toEmbedding_1 : M ↪ N}
{map_fun'_1 :
autoParam
(∀ {n : ℕ} (f : L.Functions n) (x : Fin n → M),
toEmbedding_1.toFun (FirstOrder.Language.Structure.funMap f x) =
FirstOrder.Language.Structure.funMap f (toEmbedding_1.toFun ∘ x))
FirstOrder.Language.Embedding.map_fun'._autoParam}
{map_rel'_1 :
autoParam
(∀ {n : ℕ} (r : L.Relations n) (x : Fin n → M),
FirstOrder.Language.Structure.RelMap r (toEmbedding_1.toFun ∘ x) ↔ FirstOrder.Language.Structure.RelMap r x)
FirstOrder.Language.Embedding.map_rel'._autoParam},
{ toEmbedding := toEmbedding, map_fun' := map_fun', map_rel' := map_rel' } =
{ toEmbedding := toEmbedding_1, map_fun' := map_fun'_1, map_rel' := map_rel'_1 } →
toEmbedding = toEmbedding_1
theorem FirstOrder.Language.Equiv.mk.injEq E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N] (toEquiv : M ≃ N)
(map_fun' :
autoParam
(∀ {n : ℕ} (f : L.Functions n) (x : Fin n → M),
toEquiv.toFun (FirstOrder.Language.Structure.funMap f x) =
FirstOrder.Language.Structure.funMap f (toEquiv.toFun ∘ x))
FirstOrder.Language.Equiv.map_fun'._autoParam)
(map_rel' :
autoParam
(∀ {n : ℕ} (r : L.Relations n) (x : Fin n → M),
FirstOrder.Language.Structure.RelMap r (toEquiv.toFun ∘ x) ↔ FirstOrder.Language.Structure.RelMap r x)
FirstOrder.Language.Equiv.map_rel'._autoParam)
(toEquiv_1 : M ≃ N)
(map_fun'_1 :
autoParam
(∀ {n : ℕ} (f : L.Functions n) (x : Fin n → M),
toEquiv_1.toFun (FirstOrder.Language.Structure.funMap f x) =
FirstOrder.Language.Structure.funMap f (toEquiv_1.toFun ∘ x))
FirstOrder.Language.Equiv.map_fun'._autoParam)
(map_rel'_1 :
autoParam
(∀ {n : ℕ} (r : L.Relations n) (x : Fin n → M),
FirstOrder.Language.Structure.RelMap r (toEquiv_1.toFun ∘ x) ↔ FirstOrder.Language.Structure.RelMap r x)
FirstOrder.Language.Equiv.map_rel'._autoParam),
({ toEquiv := toEquiv, map_fun' := map_fun', map_rel' := map_rel' } =
{ toEquiv := toEquiv_1, map_fun' := map_fun'_1, map_rel' := map_rel'_1 }) =
(toEquiv = toEquiv_1)
theorem FirstOrder.Language.Equiv.mk.inj E1 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} {inst : L.Structure M} {inst_1 : L.Structure N} {toEquiv : M ≃ N}
{map_fun' :
autoParam
(∀ {n : ℕ} (f : L.Functions n) (x : Fin n → M),
toEquiv.toFun (FirstOrder.Language.Structure.funMap f x) =
FirstOrder.Language.Structure.funMap f (toEquiv.toFun ∘ x))
FirstOrder.Language.Equiv.map_fun'._autoParam}
{map_rel' :
autoParam
(∀ {n : ℕ} (r : L.Relations n) (x : Fin n → M),
FirstOrder.Language.Structure.RelMap r (toEquiv.toFun ∘ x) ↔ FirstOrder.Language.Structure.RelMap r x)
FirstOrder.Language.Equiv.map_rel'._autoParam}
{toEquiv_1 : M ≃ N}
{map_fun'_1 :
autoParam
(∀ {n : ℕ} (f : L.Functions n) (x : Fin n → M),
toEquiv_1.toFun (FirstOrder.Language.Structure.funMap f x) =
FirstOrder.Language.Structure.funMap f (toEquiv_1.toFun ∘ x))
FirstOrder.Language.Equiv.map_fun'._autoParam}
{map_rel'_1 :
autoParam
(∀ {n : ℕ} (r : L.Relations n) (x : Fin n → M),
FirstOrder.Language.Structure.RelMap r (toEquiv_1.toFun ∘ x) ↔ FirstOrder.Language.Structure.RelMap r x)
FirstOrder.Language.Equiv.map_rel'._autoParam},
{ toEquiv := toEquiv, map_fun' := map_fun', map_rel' := map_rel' } =
{ toEquiv := toEquiv_1, map_fun' := map_fun'_1, map_rel' := map_rel'_1 } →
toEquiv = toEquiv_1
theorem FirstOrder.Language.Hom.mk.injEq E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N] (toFun : M → N)
(map_fun' :
autoParam
(∀ {n : ℕ} (f : L.Functions n) (x : Fin n → M),
toFun (FirstOrder.Language.Structure.funMap f x) = FirstOrder.Language.Structure.funMap f (toFun ∘ x))
FirstOrder.Language.Hom.map_fun'._autoParam)
(map_rel' :
autoParam
(∀ {n : ℕ} (r : L.Relations n) (x : Fin n → M),
FirstOrder.Language.Structure.RelMap r x → FirstOrder.Language.Structure.RelMap r (toFun ∘ x))
FirstOrder.Language.Hom.map_rel'._autoParam)
(toFun_1 : M → N)
(map_fun'_1 :
autoParam
(∀ {n : ℕ} (f : L.Functions n) (x : Fin n → M),
toFun_1 (FirstOrder.Language.Structure.funMap f x) = FirstOrder.Language.Structure.funMap f (toFun_1 ∘ x))
FirstOrder.Language.Hom.map_fun'._autoParam)
(map_rel'_1 :
autoParam
(∀ {n : ℕ} (r : L.Relations n) (x : Fin n → M),
FirstOrder.Language.Structure.RelMap r x → FirstOrder.Language.Structure.RelMap r (toFun_1 ∘ x))
FirstOrder.Language.Hom.map_rel'._autoParam),
({ toFun := toFun, map_fun' := map_fun', map_rel' := map_rel' } =
{ toFun := toFun_1, map_fun' := map_fun'_1, map_rel' := map_rel'_1 }) =
(toFun = toFun_1)
def FirstOrder.Language.Structure.ctorIdx E1 #
{L : FirstOrder.Language} → {M : Type w} → L.Structure M → ℕ
theorem FirstOrder.Language.Embedding.mk.injEq E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N]
(toEmbedding : M ↪ N)
(map_fun' :
autoParam
(∀ {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))
FirstOrder.Language.Embedding.map_fun'._autoParam)
(map_rel' :
autoParam
(∀ {n : ℕ} (r : L.Relations n) (x : Fin n → M),
FirstOrder.Language.Structure.RelMap r (toEmbedding.toFun ∘ x) ↔ FirstOrder.Language.Structure.RelMap r x)
FirstOrder.Language.Embedding.map_rel'._autoParam)
(toEmbedding_1 : M ↪ N)
(map_fun'_1 :
autoParam
(∀ {n : ℕ} (f : L.Functions n) (x : Fin n → M),
toEmbedding_1.toFun (FirstOrder.Language.Structure.funMap f x) =
FirstOrder.Language.Structure.funMap f (toEmbedding_1.toFun ∘ x))
FirstOrder.Language.Embedding.map_fun'._autoParam)
(map_rel'_1 :
autoParam
(∀ {n : ℕ} (r : L.Relations n) (x : Fin n → M),
FirstOrder.Language.Structure.RelMap r (toEmbedding_1.toFun ∘ x) ↔ FirstOrder.Language.Structure.RelMap r x)
FirstOrder.Language.Embedding.map_rel'._autoParam),
({ toEmbedding := toEmbedding, map_fun' := map_fun', map_rel' := map_rel' } =
{ toEmbedding := toEmbedding_1, map_fun' := map_fun'_1, map_rel' := map_rel'_1 }) =
(toEmbedding = toEmbedding_1)
theorem FirstOrder.Language.Hom.mk.inj E1 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} {inst : L.Structure M} {inst_1 : L.Structure N} {toFun : M → N}
{map_fun' :
autoParam
(∀ {n : ℕ} (f : L.Functions n) (x : Fin n → M),
toFun (FirstOrder.Language.Structure.funMap f x) = FirstOrder.Language.Structure.funMap f (toFun ∘ x))
FirstOrder.Language.Hom.map_fun'._autoParam}
{map_rel' :
autoParam
(∀ {n : ℕ} (r : L.Relations n) (x : Fin n → M),
FirstOrder.Language.Structure.RelMap r x → FirstOrder.Language.Structure.RelMap r (toFun ∘ x))
FirstOrder.Language.Hom.map_rel'._autoParam}
{toFun_1 : M → N}
{map_fun'_1 :
autoParam
(∀ {n : ℕ} (f : L.Functions n) (x : Fin n → M),
toFun_1 (FirstOrder.Language.Structure.funMap f x) = FirstOrder.Language.Structure.funMap f (toFun_1 ∘ x))
FirstOrder.Language.Hom.map_fun'._autoParam}
{map_rel'_1 :
autoParam
(∀ {n : ℕ} (r : L.Relations n) (x : Fin n → M),
FirstOrder.Language.Structure.RelMap r x → FirstOrder.Language.Structure.RelMap r (toFun_1 ∘ x))
FirstOrder.Language.Hom.map_rel'._autoParam},
{ toFun := toFun, map_fun' := map_fun', map_rel' := map_rel' } =
{ toFun := toFun_1, map_fun' := map_fun'_1, map_rel' := map_rel'_1 } →
toFun = toFun_1
def FirstOrder.Language.Equiv.ctorIdx E1 #
{L : FirstOrder.Language} →
{M : Type w} → {N : Type w'} → {inst : L.Structure M} → {inst_1 : L.Structure N} → L.Equiv M N → ℕ
theorem FirstOrder.Language.mk.inj E1 #
∀ {Functions : ℕ → Type u} {Relations : ℕ → Type v} {Functions_1 : ℕ → Type u} {Relations_1 : ℕ → Type v},
{ Functions := Functions, Relations := Relations } = { Functions := Functions_1, Relations := Relations_1 } →
Functions = Functions_1 ∧ Relations = Relations_1
def FirstOrder.Language.Hom.ctorIdx E1 #
{L : FirstOrder.Language} →
{M : Type w} → {N : Type w'} → {inst : L.Structure M} → {inst_1 : L.Structure N} → L.Hom M N → ℕ
theorem FirstOrder.Language.mk.injEq E0 #
∀ (Functions : ℕ → Type u) (Relations : ℕ → Type v) (Functions_1 : ℕ → Type u) (Relations_1 : ℕ → Type v),
({ Functions := Functions, Relations := Relations } = { Functions := Functions_1, Relations := Relations_1 }) =
(Functions = Functions_1 ∧ Relations = Relations_1)
def FirstOrder.Language.Embedding.ctorIdx E1 #
{L : FirstOrder.Language} →
{M : Type w} → {N : Type w'} → {inst : L.Structure M} → {inst_1 : L.Structure N} → L.Embedding M N → ℕ
def FirstOrder.Language.ctorIdx E1 #
FirstOrder.Language → ℕ
theorem FirstOrder.Language.Equiv.mk.congr_simp E1 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N]
(toEquiv toEquiv_1 : M ≃ N) (e_toEquiv : toEquiv = toEquiv_1)
(map_fun' :
∀ {n : ℕ} (f : L.Functions n) (x : Fin n → M),
toEquiv.toFun (FirstOrder.Language.Structure.funMap f x) =
FirstOrder.Language.Structure.funMap f (toEquiv.toFun ∘ x))
(map_rel' :
∀ {n : ℕ} (r : L.Relations n) (x : Fin n → M),
FirstOrder.Language.Structure.RelMap r (toEquiv.toFun ∘ x) ↔ FirstOrder.Language.Structure.RelMap r x),
{ toEquiv := toEquiv, map_fun' := map_fun', map_rel' := map_rel' } =
{ toEquiv := toEquiv_1, map_fun' := ⋯, map_rel' := ⋯ }
structure FirstOrder.Language E3 #
Type (max (u + 1) (v + 1))
A first-order language consists of a type of functions of every natural-number arity and a type of relations of every natural-number arity.
ctor FirstOrder.Language.mk E0 #
(ℕ → Type u) → (ℕ → Type v) → FirstOrder.Language
abbrev FirstOrder.Language.Functions E1 #
FirstOrder.Language → ℕ → Type u
For every arity, a Type u of functions of that arity
abbrev FirstOrder.Language.Relations E1 #
FirstOrder.Language → ℕ → Type v
For every arity, a Type v of relations of that arity
abbrev FirstOrder.Language.IsRelational E1 #
FirstOrder.Language → Prop
A language is relational when it has no function symbols.
abbrev FirstOrder.Language.IsAlgebraic E1 #
FirstOrder.Language → Prop
A language is algebraic when it has no relation symbols.
def FirstOrder.Language.empty E1 #
FirstOrder.Language
The empty language has no symbols.
instance FirstOrder.Language.instIsAlgebraicEmpty E0 #
FirstOrder.Language.empty.IsAlgebraic
instance FirstOrder.Language.instIsRelationalEmpty E0 #
FirstOrder.Language.empty.IsRelational
instance FirstOrder.Language.instInhabited E0 #
Inhabited FirstOrder.Language
def FirstOrder.Language.sum E1 #
FirstOrder.Language → FirstOrder.Language → FirstOrder.Language
The sum of two languages consists of the disjoint union of their symbols.
abbrev FirstOrder.Language.Constants E1 #
FirstOrder.Language → Type u
The type of constants in a given language.
abbrev FirstOrder.Language.Symbols E1 #
FirstOrder.Language → Type (max u v)
The type of symbols in a given language.
def FirstOrder.Language.card E1 #
FirstOrder.Language → Cardinal.{max u v}
The cardinality of a language is the cardinality of its type of symbols.
theorem FirstOrder.Language.card_eq_card_functions_add_card_relations E1 #
∀ {L : FirstOrder.Language},
L.card =
(Cardinal.sum fun l ↦ Cardinal.lift.{v, u} (Cardinal.mk (L.Functions l))) +
Cardinal.sum fun l ↦ Cardinal.lift.{u, v} (Cardinal.mk (L.Relations l))
instance FirstOrder.Language.isRelational_sum E0 #
∀ {L : FirstOrder.Language} {L' : FirstOrder.Language} [L.IsRelational] [L'.IsRelational], (L.sum L').IsRelational
instance FirstOrder.Language.isAlgebraic_sum E0 #
∀ {L : FirstOrder.Language} {L' : FirstOrder.Language} [L.IsAlgebraic] [L'.IsAlgebraic], (L.sum L').IsAlgebraic
theorem FirstOrder.Language.card_empty E0 #
FirstOrder.Language.empty.card = 0
instance FirstOrder.Language.Countable.countable_functions E0 #
∀ {L : FirstOrder.Language} [h : Countable L.Symbols], Countable ((l : ℕ) × L.Functions l)
theorem FirstOrder.Language.card_functions_sum E0 #
∀ {L : FirstOrder.Language} {L' : FirstOrder.Language} (i : ℕ),
Cardinal.mk ((L.sum L').Functions i) =
Cardinal.lift.{u', u} (Cardinal.mk (L.Functions i)) + Cardinal.lift.{u, u'} (Cardinal.mk (L'.Functions i))
theorem FirstOrder.Language.card_relations_sum E0 #
∀ {L : FirstOrder.Language} {L' : FirstOrder.Language} (i : ℕ),
Cardinal.mk ((L.sum L').Relations i) =
Cardinal.lift.{v', v} (Cardinal.mk (L.Relations i)) + Cardinal.lift.{v, v'} (Cardinal.mk (L'.Relations i))
theorem FirstOrder.Language.card_sum E1 #
∀ {L : FirstOrder.Language} {L' : FirstOrder.Language},
(L.sum L').card = Cardinal.lift.{max u' v', max u v} L.card + Cardinal.lift.{max u v, max u' v'} L'.card
instance FirstOrder.Language.instDecidableEqFunctions E0 #
{f : ℕ → Type u_1} →
{R : ℕ → Type u_2} → (n : ℕ) → [DecidableEq (f n)] → DecidableEq ({ Functions := f, Relations := R }.Functions n)
Passes a DecidableEq instance on a type of function symbols through the Language
constructor. Despite the fact that this is proven by inferInstance, it is still needed -
see the examples in ModelTheory/Ring/Basic.
instance FirstOrder.Language.instDecidableEqRelations E0 #
{f : ℕ → Type u_1} →
{R : ℕ → Type u_2} → (n : ℕ) → [DecidableEq (R n)] → DecidableEq ({ Functions := f, Relations := R }.Relations n)
Passes a DecidableEq instance on a type of relation symbols through the Language
constructor. Despite the fact that this is proven by inferInstance, it is still needed -
see the examples in ModelTheory/Ring/Basic.
class FirstOrder.Language.Structure E3 #
FirstOrder.Language → Type w → Type (max (max u v) w)
A first-order structure on a type M consists of interpretations of all the symbols in a given
language. Each function of arity n is interpreted as a function sending tuples of length n
(modeled as (Fin n → M)) to M, and a relation of arity n is a function from tuples of length
n to Prop.
theorem FirstOrder.Language.Structure.ext E1 #
∀ {L : FirstOrder.Language} {M : Type w} {x y : L.Structure M},
@FirstOrder.Language.Structure.funMap L M x = @FirstOrder.Language.Structure.funMap L M y →
@FirstOrder.Language.Structure.RelMap L M x = @FirstOrder.Language.Structure.RelMap L M y → x = y
theorem FirstOrder.Language.Structure.ext_iff E0 #
∀ {L : FirstOrder.Language} {M : Type w} {x y : L.Structure M},
x = y ↔
@FirstOrder.Language.Structure.funMap L M x = @FirstOrder.Language.Structure.funMap L M y ∧
@FirstOrder.Language.Structure.RelMap L M x = @FirstOrder.Language.Structure.RelMap L M y
ctor FirstOrder.Language.Structure.mk E0 #
{L : FirstOrder.Language} →
{M : Type w} →
autoParam ({n : ℕ} → L.Functions n → (Fin n → M) → M) FirstOrder.Language.Structure.funMap._autoParam →
autoParam ({n : ℕ} → L.Relations n → (Fin n → M) → Prop) FirstOrder.Language.Structure.RelMap._autoParam →
L.Structure M
abbrev FirstOrder.Language.Structure.funMap E1 #
{L : FirstOrder.Language} → {M : Type w} → [self : L.Structure M] → {n : ℕ} → L.Functions n → (Fin n → M) → M
Interpretation of the function symbols
abbrev FirstOrder.Language.Structure.RelMap E1 #
{L : FirstOrder.Language} → {M : Type w} → [self : L.Structure M] → {n : ℕ} → L.Relations n → (Fin n → M) → Prop
Interpretation of the relation symbols
def FirstOrder.Language.Inhabited.trivialStructure E1 #
(L : FirstOrder.Language) → {α : Type u_1} → [Inhabited α] → L.Structure α
Used for defining FirstOrder.Language.Theory.ModelType.instInhabited.
structure FirstOrder.Language.Hom E3 #
(L : FirstOrder.Language) → (M : Type w) → (N : Type w') → [L.Structure M] → [L.Structure N] → Type (max w w')
A homomorphism between first-order structures is a function that commutes with the interpretations of functions and maps tuples in one structure where a given relation is true to tuples in the second structure where that relation is still true.
ctor FirstOrder.Language.Hom.mk E0 #
{L : FirstOrder.Language} →
{M : Type w} →
{N : Type w'} →
[inst : L.Structure M] →
[inst_1 : L.Structure N] →
(toFun : M → N) →
autoParam
(∀ {n : ℕ} (f : L.Functions n) (x : Fin n → M),
toFun (FirstOrder.Language.Structure.funMap f x) = FirstOrder.Language.Structure.funMap f (toFun ∘ x))
FirstOrder.Language.Hom.map_fun'._autoParam →
autoParam
(∀ {n : ℕ} (r : L.Relations n) (x : Fin n → M),
FirstOrder.Language.Structure.RelMap r x → FirstOrder.Language.Structure.RelMap r (toFun ∘ x))
FirstOrder.Language.Hom.map_rel'._autoParam →
L.Hom M N
abbrev FirstOrder.Language.Hom.toFun E1 #
{L : FirstOrder.Language} →
{M : Type w} → {N : Type w'} → [inst : L.Structure M] → [inst_1 : L.Structure N] → L.Hom M N → M → N
The underlying function of a homomorphism of structures
theorem FirstOrder.Language.Hom.map_fun' E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N]
(self : L.Hom M N) {n : ℕ} (f : L.Functions n) (x : Fin n → M),
self.toFun (FirstOrder.Language.Structure.funMap f x) = FirstOrder.Language.Structure.funMap f (self.toFun ∘ x)
The homomorphism commutes with the interpretations of the function symbols
theorem FirstOrder.Language.Hom.map_rel' E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N]
(self : L.Hom M N) {n : ℕ} (r : L.Relations n) (x : Fin n → M),
FirstOrder.Language.Structure.RelMap r x → FirstOrder.Language.Structure.RelMap r (self.toFun ∘ x)
The homomorphism sends related elements to related elements
def FirstOrder.«term_→[_]_» E1 #
Lean.TrailingParserDescr
A homomorphism between first-order structures is a function that commutes with the interpretations of functions and maps tuples in one structure where a given relation is true to tuples in the second structure where that relation is still true.
structure FirstOrder.Language.Embedding E3 #
(L : FirstOrder.Language) → (M : Type w) → (N : Type w') → [L.Structure M] → [L.Structure N] → Type (max w w')
An embedding of first-order structures is an embedding that commutes with the interpretations of functions and relations.
ctor FirstOrder.Language.Embedding.mk E0 #
{L : FirstOrder.Language} →
{M : Type w} →
{N : Type w'} →
[inst : L.Structure M] →
[inst_1 : L.Structure N] →
(toEmbedding : M ↪ N) →
autoParam
(∀ {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))
FirstOrder.Language.Embedding.map_fun'._autoParam →
autoParam
(∀ {n : ℕ} (r : L.Relations n) (x : Fin n → M),
FirstOrder.Language.Structure.RelMap r (toEmbedding.toFun ∘ x) ↔
FirstOrder.Language.Structure.RelMap r x)
FirstOrder.Language.Embedding.map_rel'._autoParam →
L.Embedding M N
abbrev FirstOrder.Language.Embedding.toEmbedding E1 #
{L : FirstOrder.Language} →
{M : Type w} → {N : Type w'} → [inst : L.Structure M] → [inst_1 : L.Structure N] → L.Embedding M N → M ↪ N
theorem FirstOrder.Language.Embedding.map_fun' E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N]
(self : L.Embedding M N) {n : ℕ} (f : L.Functions n) (x : Fin n → M),
self.toFun (FirstOrder.Language.Structure.funMap f x) = FirstOrder.Language.Structure.funMap f (self.toFun ∘ x)
The homomorphism commutes with the interpretations of the function symbols
theorem FirstOrder.Language.Embedding.map_rel' E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N]
(self : L.Embedding M N) {n : ℕ} (r : L.Relations n) (x : Fin n → M),
FirstOrder.Language.Structure.RelMap r (self.toFun ∘ x) ↔ FirstOrder.Language.Structure.RelMap r x
The homomorphism sends related elements to related elements
def FirstOrder.«term_↪[_]_» E1 #
Lean.TrailingParserDescr
An embedding of first-order structures is an embedding that commutes with the interpretations of functions and relations.
structure FirstOrder.Language.Equiv E3 #
(L : FirstOrder.Language) → (M : Type w) → (N : Type w') → [L.Structure M] → [L.Structure N] → Type (max w w')
An equivalence of first-order structures is an equivalence that commutes with the interpretations of functions and relations.
ctor FirstOrder.Language.Equiv.mk E0 #
{L : FirstOrder.Language} →
{M : Type w} →
{N : Type w'} →
[inst : L.Structure M] →
[inst_1 : L.Structure N] →
(toEquiv : M ≃ N) →
autoParam
(∀ {n : ℕ} (f : L.Functions n) (x : Fin n → M),
toEquiv.toFun (FirstOrder.Language.Structure.funMap f x) =
FirstOrder.Language.Structure.funMap f (toEquiv.toFun ∘ x))
FirstOrder.Language.Equiv.map_fun'._autoParam →
autoParam
(∀ {n : ℕ} (r : L.Relations n) (x : Fin n → M),
FirstOrder.Language.Structure.RelMap r (toEquiv.toFun ∘ x) ↔
FirstOrder.Language.Structure.RelMap r x)
FirstOrder.Language.Equiv.map_rel'._autoParam →
L.Equiv M N
abbrev FirstOrder.Language.Equiv.toEquiv E1 #
{L : FirstOrder.Language} →
{M : Type w} → {N : Type w'} → [inst : L.Structure M] → [inst_1 : L.Structure N] → L.Equiv M N → M ≃ N
theorem FirstOrder.Language.Equiv.map_fun' E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N]
(self : L.Equiv M N) {n : ℕ} (f : L.Functions n) (x : Fin n → M),
self.toFun (FirstOrder.Language.Structure.funMap f x) = FirstOrder.Language.Structure.funMap f (self.toFun ∘ x)
The homomorphism commutes with the interpretations of the function symbols
theorem FirstOrder.Language.Equiv.map_rel' E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N]
(self : L.Equiv M N) {n : ℕ} (r : L.Relations n) (x : Fin n → M),
FirstOrder.Language.Structure.RelMap r (self.toFun ∘ x) ↔ FirstOrder.Language.Structure.RelMap r x
The homomorphism sends related elements to related elements
def FirstOrder.«term_≃[_]_» E1 #
Lean.TrailingParserDescr
An equivalence of first-order structures is an equivalence that commutes with the interpretations of functions and relations.
def FirstOrder.Language.constantMap E1 #
{L : FirstOrder.Language} → {M : Type w} → [L.Structure M] → L.Constants → M
Interpretation of a constant symbol
instance FirstOrder.Language.instCoeTCConstants E0 #
{L : FirstOrder.Language} → {M : Type w} → [L.Structure M] → CoeTC L.Constants M
theorem FirstOrder.Language.funMap_eq_coe_constants E1 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] {c : L.Constants} {x : Fin 0 → M},
FirstOrder.Language.Structure.funMap c x = ↑c
theorem FirstOrder.Language.nonempty_of_nonempty_constants E1 #
∀ (L : FirstOrder.Language) (M : Type w) [L.Structure M] [h : Nonempty L.Constants], Nonempty M
Given a language with a nonempty type of constants, any structure will be nonempty. This cannot
be a global instance, because L becomes a metavariable.
class FirstOrder.Language.HomClass E1 #
(L : outParam FirstOrder.Language) →
(F : Type u_3) →
(M : outParam (Type u_4)) → (N : outParam (Type u_5)) → [FunLike F M N] → [L.Structure M] → [L.Structure N] → Prop
HomClass L F M N states that F is a type of L-homomorphisms. You should extend this
typeclass when you extend FirstOrder.Language.Hom.
ctor FirstOrder.Language.HomClass.mk E0 #
∀ {L : outParam FirstOrder.Language} {F : Type u_3} {M : outParam (Type u_4)} {N : outParam (Type u_5)}
[inst : FunLike F M N] [inst_1 : L.Structure M] [inst_2 : L.Structure N],
(∀ (φ : F) {n : ℕ} (f : L.Functions n) (x : Fin n → M),
φ (FirstOrder.Language.Structure.funMap f x) = FirstOrder.Language.Structure.funMap f (⇑φ ∘ x)) →
(∀ (φ : F) {n : ℕ} (r : L.Relations n) (x : Fin n → M),
FirstOrder.Language.Structure.RelMap r x → FirstOrder.Language.Structure.RelMap r (⇑φ ∘ x)) →
L.HomClass F M N
theorem FirstOrder.Language.HomClass.map_fun E0 #
∀ {L : outParam FirstOrder.Language} {F : Type u_3} {M : outParam (Type u_4)} {N : outParam (Type u_5)}
{inst : FunLike F M N} {inst_1 : L.Structure M} {inst_2 : L.Structure N} [self : L.HomClass F M N] (φ : F) {n : ℕ}
(f : L.Functions n) (x : Fin n → M),
φ (FirstOrder.Language.Structure.funMap f x) = FirstOrder.Language.Structure.funMap f (⇑φ ∘ x)
The homomorphism commutes with the interpretations of the function symbols
theorem FirstOrder.Language.HomClass.map_rel E0 #
∀ {L : outParam FirstOrder.Language} {F : Type u_3} {M : outParam (Type u_4)} {N : outParam (Type u_5)}
{inst : FunLike F M N} {inst_1 : L.Structure M} {inst_2 : L.Structure N} [self : L.HomClass F M N] (φ : F) {n : ℕ}
(r : L.Relations n) (x : Fin n → M),
FirstOrder.Language.Structure.RelMap r x → FirstOrder.Language.Structure.RelMap r (⇑φ ∘ x)
The homomorphism sends related elements to related elements
class FirstOrder.Language.StrongHomClass E1 #
(L : outParam FirstOrder.Language) →
(F : Type u_3) →
(M : outParam (Type u_4)) → (N : outParam (Type u_5)) → [FunLike F M N] → [L.Structure M] → [L.Structure N] → Prop
StrongHomClass L F M N states that F is a type of L-homomorphisms which preserve
relations in both directions.
ctor FirstOrder.Language.StrongHomClass.mk E0 #
∀ {L : outParam FirstOrder.Language} {F : Type u_3} {M : outParam (Type u_4)} {N : outParam (Type u_5)}
[inst : FunLike F M N] [inst_1 : L.Structure M] [inst_2 : L.Structure N],
(∀ (φ : F) {n : ℕ} (f : L.Functions n) (x : Fin n → M),
φ (FirstOrder.Language.Structure.funMap f x) = FirstOrder.Language.Structure.funMap f (⇑φ ∘ x)) →
(∀ (φ : F) {n : ℕ} (r : L.Relations n) (x : Fin n → M),
FirstOrder.Language.Structure.RelMap r (⇑φ ∘ x) ↔ FirstOrder.Language.Structure.RelMap r x) →
L.StrongHomClass F M N
theorem FirstOrder.Language.StrongHomClass.map_fun E0 #
∀ {L : outParam FirstOrder.Language} {F : Type u_3} {M : outParam (Type u_4)} {N : outParam (Type u_5)}
{inst : FunLike F M N} {inst_1 : L.Structure M} {inst_2 : L.Structure N} [self : L.StrongHomClass F M N] (φ : F)
{n : ℕ} (f : L.Functions n) (x : Fin n → M),
φ (FirstOrder.Language.Structure.funMap f x) = FirstOrder.Language.Structure.funMap f (⇑φ ∘ x)
The homomorphism commutes with the interpretations of the function symbols
theorem FirstOrder.Language.StrongHomClass.map_rel E0 #
∀ {L : outParam FirstOrder.Language} {F : Type u_3} {M : outParam (Type u_4)} {N : outParam (Type u_5)}
{inst : FunLike F M N} {inst_1 : L.Structure M} {inst_2 : L.Structure N} [self : L.StrongHomClass F M N] (φ : F)
{n : ℕ} (r : L.Relations n) (x : Fin n → M),
FirstOrder.Language.Structure.RelMap r (⇑φ ∘ x) ↔ FirstOrder.Language.Structure.RelMap r x
The homomorphism sends related elements to related elements
instance FirstOrder.Language.StrongHomClass.homClass E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N] {F : Type u_3}
[inst_2 : FunLike F M N] [L.StrongHomClass F M N], L.HomClass F M N
theorem FirstOrder.Language.HomClass.strongHomClassOfIsAlgebraic E1 #
∀ {L : FirstOrder.Language} [L.IsAlgebraic] {F : Type u_3} {M : Type u_4} {N : Type u_5} [inst : L.Structure M]
[inst_1 : L.Structure N] [inst_2 : FunLike F M N] [L.HomClass F M N], L.StrongHomClass F M N
Not an instance to avoid a loop.
theorem FirstOrder.Language.HomClass.map_constants E0 #
∀ {L : FirstOrder.Language} {F : Type u_3} {M : Type u_4} {N : Type u_5} [inst : L.Structure M] [inst_1 : L.Structure N]
[inst_2 : FunLike F M N] [L.HomClass F M N] (φ : F) (c : L.Constants), φ ↑c = ↑c
instance FirstOrder.Language.Hom.instFunLike E0 #
{L : FirstOrder.Language} →
{M : Type w} → {N : Type w'} → [inst : L.Structure M] → [inst_1 : L.Structure N] → FunLike (L.Hom M N) M N
instance FirstOrder.Language.Hom.homClass E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N],
L.HomClass (L.Hom M N) M N
instance FirstOrder.Language.Hom.instStrongHomClassOfIsAlgebraic E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N] [L.IsAlgebraic],
L.StrongHomClass (L.Hom M N) M N
theorem FirstOrder.Language.Hom.toFun_eq_coe E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N] {f : L.Hom M N},
f.toFun = ⇑f
theorem FirstOrder.Language.Hom.ext_iff E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N]
{f g : L.Hom M N}, f = g ↔ ∀ (x : M), f x = g x
theorem FirstOrder.Language.Hom.ext E1 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N]
⦃f g : L.Hom M N⦄, (∀ (x : M), f x = g x) → f = g
theorem FirstOrder.Language.Hom.map_fun E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N] (φ : L.Hom M N)
{n : ℕ} (f : L.Functions n) (x : Fin n → M),
φ (FirstOrder.Language.Structure.funMap f x) = FirstOrder.Language.Structure.funMap f (⇑φ ∘ x)
theorem FirstOrder.Language.Hom.map_constants E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N] (φ : L.Hom M N)
(c : L.Constants), φ ↑c = ↑c
theorem FirstOrder.Language.Hom.map_rel E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N] (φ : L.Hom M N)
{n : ℕ} (r : L.Relations n) (x : Fin n → M),
FirstOrder.Language.Structure.RelMap r x → FirstOrder.Language.Structure.RelMap r (⇑φ ∘ x)
def FirstOrder.Language.Hom.id E1 #
(L : FirstOrder.Language) → (M : Type w) → [inst : L.Structure M] → L.Hom M M
The identity map from a structure to itself.
instance FirstOrder.Language.Hom.instInhabited E0 #
{L : FirstOrder.Language} → {M : Type w} → [inst : L.Structure M] → Inhabited (L.Hom M M)
theorem FirstOrder.Language.Hom.id_apply E0 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] (x : M), (FirstOrder.Language.Hom.id L M) x = x
def FirstOrder.Language.Hom.comp E1 #
{L : FirstOrder.Language} →
{M : Type w} →
{N : Type w'} →
[inst : L.Structure M] →
[inst_1 : L.Structure N] → {P : Type u_1} → [inst_2 : L.Structure P] → L.Hom N P → L.Hom M N → L.Hom M P
Composition of first-order homomorphisms.
theorem FirstOrder.Language.Hom.comp_apply E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N] {P : Type u_1}
[inst_2 : L.Structure P] (g : L.Hom N P) (f : L.Hom M N) (x : M), (g.comp f) x = g (f x)
theorem FirstOrder.Language.Hom.comp_assoc E1 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N] {P : Type u_1}
[inst_2 : L.Structure P] {Q : Type u_2} [inst_3 : L.Structure Q] (f : L.Hom M N) (g : L.Hom N P) (h : L.Hom P Q),
(h.comp g).comp f = h.comp (g.comp f)
Composition of first-order homomorphisms is associative.
theorem FirstOrder.Language.Hom.comp_id E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N] (f : L.Hom M N),
f.comp (FirstOrder.Language.Hom.id L M) = f
theorem FirstOrder.Language.Hom.id_comp E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N] (f : L.Hom M N),
(FirstOrder.Language.Hom.id L N).comp f = f
def FirstOrder.Language.HomClass.toHom E1 #
{L : FirstOrder.Language} →
{F : Type u_3} →
{M : Type u_4} →
{N : Type u_5} →
[inst : L.Structure M] →
[inst_1 : L.Structure N] → [inst_2 : FunLike F M N] → [L.HomClass F M N] → F → L.Hom M N
Any element of a HomClass can be realized as a first order homomorphism.
theorem FirstOrder.Language.HomClass.toHom_toFun E0 #
∀ {L : FirstOrder.Language} {F : Type u_3} {M : Type u_4} {N : Type u_5} [inst : L.Structure M] [inst_1 : L.Structure N]
[inst_2 : FunLike F M N] [inst_3 : L.HomClass F M N] (a : F) (a_1 : M),
(FirstOrder.Language.HomClass.toHom a) a_1 = a a_1
instance FirstOrder.Language.Embedding.funLike E0 #
{L : FirstOrder.Language} →
{M : Type w} → {N : Type w'} → [inst : L.Structure M] → [inst_1 : L.Structure N] → FunLike (L.Embedding M N) M N
instance FirstOrder.Language.Embedding.embeddingLike E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N],
EmbeddingLike (L.Embedding M N) M N
instance FirstOrder.Language.Embedding.strongHomClass E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N],
L.StrongHomClass (L.Embedding M N) M N
theorem FirstOrder.Language.Embedding.map_fun E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N]
(φ : L.Embedding M N) {n : ℕ} (f : L.Functions n) (x : Fin n → M),
φ (FirstOrder.Language.Structure.funMap f x) = FirstOrder.Language.Structure.funMap f (⇑φ ∘ x)
theorem FirstOrder.Language.Embedding.map_constants E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N]
(φ : L.Embedding M N) (c : L.Constants), φ ↑c = ↑c
theorem FirstOrder.Language.Embedding.map_rel E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N]
(φ : L.Embedding M N) {n : ℕ} (r : L.Relations n) (x : Fin n → M),
FirstOrder.Language.Structure.RelMap r (⇑φ ∘ x) ↔ FirstOrder.Language.Structure.RelMap r x
def FirstOrder.Language.Embedding.toHom E1 #
{L : FirstOrder.Language} →
{M : Type w} → {N : Type w'} → [inst : L.Structure M] → [inst_1 : L.Structure N] → L.Embedding M N → L.Hom M N
A first-order embedding is also a first-order homomorphism.
theorem FirstOrder.Language.Embedding.coe_toHom E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N]
{f : L.Embedding M N}, ⇑f.toHom = ⇑f
theorem FirstOrder.Language.Embedding.coe_injective E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N],
Function.Injective DFunLike.coe
theorem FirstOrder.Language.Embedding.ext_iff E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N]
{f g : L.Embedding M N}, f = g ↔ ∀ (x : M), f x = g x
theorem FirstOrder.Language.Embedding.ext E1 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N]
⦃f g : L.Embedding M N⦄, (∀ (x : M), f x = g x) → f = g
theorem FirstOrder.Language.Embedding.toHom_injective E1 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N],
Function.Injective fun x ↦ x.toHom
theorem FirstOrder.Language.Embedding.toHom_inj E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N]
{f g : L.Embedding M N}, f.toHom = g.toHom ↔ f = g
theorem FirstOrder.Language.Embedding.injective E1 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N]
(f : L.Embedding M N), Function.Injective ⇑f
def FirstOrder.Language.Embedding.ofInjective E1 #
{L : FirstOrder.Language} →
{M : Type w} →
{N : Type w'} →
[inst : L.Structure M] →
[inst_1 : L.Structure N] → [L.IsAlgebraic] → {f : L.Hom M N} → Function.Injective ⇑f → L.Embedding M N
In an algebraic language, any injective homomorphism is an embedding.
theorem FirstOrder.Language.Embedding.ofInjective_toFun E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N]
[inst_2 : L.IsAlgebraic] {f : L.Hom M N} (hf : Function.Injective ⇑f) (a : M),
(FirstOrder.Language.Embedding.ofInjective hf) a = f a
theorem FirstOrder.Language.Embedding.coeFn_ofInjective E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N]
[inst_2 : L.IsAlgebraic] {f : L.Hom M N} (hf : Function.Injective ⇑f),
⇑(FirstOrder.Language.Embedding.ofInjective hf) = ⇑f
theorem FirstOrder.Language.Embedding.ofInjective_toHom E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N]
[inst_2 : L.IsAlgebraic] {f : L.Hom M N} (hf : Function.Injective ⇑f),
(FirstOrder.Language.Embedding.ofInjective hf).toHom = f
def FirstOrder.Language.Embedding.refl E1 #
(L : FirstOrder.Language) → (M : Type w) → [inst : L.Structure M] → L.Embedding M M
The identity embedding from a structure to itself.
instance FirstOrder.Language.Embedding.instInhabited E0 #
{L : FirstOrder.Language} → {M : Type w} → [inst : L.Structure M] → Inhabited (L.Embedding M M)
theorem FirstOrder.Language.Embedding.refl_apply E0 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] (x : M), (FirstOrder.Language.Embedding.refl L M) x = x
def FirstOrder.Language.Embedding.comp E1 #
{L : FirstOrder.Language} →
{M : Type w} →
{N : Type w'} →
[inst : L.Structure M] →
[inst_1 : L.Structure N] →
{P : Type u_1} → [inst_2 : L.Structure P] → L.Embedding N P → L.Embedding M N → L.Embedding M P
Composition of first-order embeddings.
theorem FirstOrder.Language.Embedding.comp_apply E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N] {P : Type u_1}
[inst_2 : L.Structure P] (g : L.Embedding N P) (f : L.Embedding M N) (x : M), (g.comp f) x = g (f x)
theorem FirstOrder.Language.Embedding.comp_assoc E1 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N] {P : Type u_1}
[inst_2 : L.Structure P] {Q : Type u_2} [inst_3 : L.Structure Q] (f : L.Embedding M N) (g : L.Embedding N P)
(h : L.Embedding P Q), (h.comp g).comp f = h.comp (g.comp f)
Composition of first-order embeddings is associative.
theorem FirstOrder.Language.Embedding.comp_injective E1 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N] {P : Type u_1}
[inst_2 : L.Structure P] (h : L.Embedding N P), Function.Injective h.comp
theorem FirstOrder.Language.Embedding.comp_inj E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N] {P : Type u_1}
[inst_2 : L.Structure P] (h : L.Embedding N P) (f g : L.Embedding M N), h.comp f = h.comp g ↔ f = g
theorem FirstOrder.Language.Embedding.toHom_comp_injective E1 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N] {P : Type u_1}
[inst_2 : L.Structure P] (h : L.Embedding N P), Function.Injective h.toHom.comp
theorem FirstOrder.Language.Embedding.toHom_comp_inj E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N] {P : Type u_1}
[inst_2 : L.Structure P] (h : L.Embedding N P) (f g : L.Hom M N), h.toHom.comp f = h.toHom.comp g ↔ f = g
theorem FirstOrder.Language.Embedding.comp_toHom E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N] {P : Type u_1}
[inst_2 : L.Structure P] (hnp : L.Embedding N P) (hmn : L.Embedding M N),
(hnp.comp hmn).toHom = hnp.toHom.comp hmn.toHom
theorem FirstOrder.Language.Embedding.comp_refl E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N]
(f : L.Embedding M N), f.comp (FirstOrder.Language.Embedding.refl L M) = f
theorem FirstOrder.Language.Embedding.refl_comp 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.Embedding.refl L N).comp f = f
theorem FirstOrder.Language.Embedding.refl_toHom E0 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M],
(FirstOrder.Language.Embedding.refl L M).toHom = FirstOrder.Language.Hom.id L M
def FirstOrder.Language.StrongHomClass.toEmbedding E1 #
{L : FirstOrder.Language} →
{F : Type u_3} →
{M : Type u_4} →
{N : Type u_5} →
[inst : L.Structure M] →
[inst_1 : L.Structure N] →
[inst_2 : FunLike F M N] → [EmbeddingLike F M N] → [L.StrongHomClass F M N] → F → L.Embedding M N
Any element of an injective StrongHomClass can be realized as a first order embedding.
theorem FirstOrder.Language.StrongHomClass.toEmbedding_toFun E0 #
∀ {L : FirstOrder.Language} {F : Type u_3} {M : Type u_4} {N : Type u_5} [inst : L.Structure M] [inst_1 : L.Structure N]
[inst_2 : FunLike F M N] [inst_3 : EmbeddingLike F M N] [inst_4 : L.StrongHomClass F M N] (a : F) (a_1 : M),
(FirstOrder.Language.StrongHomClass.toEmbedding a) a_1 = a a_1
instance FirstOrder.Language.Equiv.instEquivLike E0 #
{L : FirstOrder.Language} →
{M : Type w} → {N : Type w'} → [inst : L.Structure M] → [inst_1 : L.Structure N] → EquivLike (L.Equiv M N) M N
instance FirstOrder.Language.Equiv.instStrongHomClass E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N],
L.StrongHomClass (L.Equiv M N) M N
def FirstOrder.Language.Equiv.symm E1 #
{L : FirstOrder.Language} →
{M : Type w} → {N : Type w'} → [inst : L.Structure M] → [inst_1 : L.Structure N] → L.Equiv M N → L.Equiv N M
The inverse of a first-order equivalence is a first-order equivalence.
theorem FirstOrder.Language.Equiv.symm_symm E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N]
(f : L.Equiv M N), f.symm.symm = f
theorem FirstOrder.Language.Equiv.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.Equiv.symm
theorem FirstOrder.Language.Equiv.apply_symm_apply E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N] (f : L.Equiv M N)
(a : N), f (f.symm a) = a
theorem FirstOrder.Language.Equiv.symm_apply_apply E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N] (f : L.Equiv M N)
(a : M), f.symm (f a) = a
theorem FirstOrder.Language.Equiv.map_fun E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N] (φ : L.Equiv M N)
{n : ℕ} (f : L.Functions n) (x : Fin n → M),
φ (FirstOrder.Language.Structure.funMap f x) = FirstOrder.Language.Structure.funMap f (⇑φ ∘ x)
theorem FirstOrder.Language.Equiv.map_constants E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N] (φ : L.Equiv M N)
(c : L.Constants), φ ↑c = ↑c
theorem FirstOrder.Language.Equiv.map_rel E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N] (φ : L.Equiv M N)
{n : ℕ} (r : L.Relations n) (x : Fin n → M),
FirstOrder.Language.Structure.RelMap r (⇑φ ∘ x) ↔ FirstOrder.Language.Structure.RelMap r x
def FirstOrder.Language.Equiv.toEmbedding E1 #
{L : FirstOrder.Language} →
{M : Type w} → {N : Type w'} → [inst : L.Structure M] → [inst_1 : L.Structure N] → L.Equiv M N → L.Embedding M N
A first-order equivalence is also a first-order embedding.
def FirstOrder.Language.Equiv.toHom E1 #
{L : FirstOrder.Language} →
{M : Type w} → {N : Type w'} → [inst : L.Structure M] → [inst_1 : L.Structure N] → L.Equiv M N → L.Hom M N
A first-order equivalence is also a first-order homomorphism.
theorem FirstOrder.Language.Equiv.toEmbedding_toHom E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N]
(f : L.Equiv M N), f.toEmbedding.toHom = f.toHom
theorem FirstOrder.Language.Equiv.coe_toHom E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N]
{f : L.Equiv M N}, ⇑f.toHom = ⇑f
theorem FirstOrder.Language.Equiv.coe_toEmbedding E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N]
(f : L.Equiv M N), ⇑f.toEmbedding = ⇑f
theorem FirstOrder.Language.Equiv.injective_toEmbedding E1 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N],
Function.Injective FirstOrder.Language.Equiv.toEmbedding
theorem FirstOrder.Language.Equiv.coe_injective E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N],
Function.Injective DFunLike.coe
theorem FirstOrder.Language.Equiv.ext E1 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N]
⦃f g : L.Equiv M N⦄, (∀ (x : M), f x = g x) → f = g
theorem FirstOrder.Language.Equiv.ext_iff E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N]
{f g : L.Equiv M N}, f = g ↔ ∀ (x : M), f x = g x
theorem FirstOrder.Language.Equiv.bijective E1 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N]
(f : L.Equiv M N), Function.Bijective ⇑f
theorem FirstOrder.Language.Equiv.injective E1 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N]
(f : L.Equiv M N), Function.Injective ⇑f
theorem FirstOrder.Language.Equiv.surjective E1 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N]
(f : L.Equiv M N), Function.Surjective ⇑f
def FirstOrder.Language.Equiv.refl E1 #
(L : FirstOrder.Language) → (M : Type w) → [inst : L.Structure M] → L.Equiv M M
The identity equivalence from a structure to itself.
instance FirstOrder.Language.Equiv.instInhabited E0 #
{L : FirstOrder.Language} → {M : Type w} → [inst : L.Structure M] → Inhabited (L.Equiv M M)
theorem FirstOrder.Language.Equiv.refl_apply E0 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] (x : M), (FirstOrder.Language.Equiv.refl L M) x = x
def FirstOrder.Language.Equiv.comp E1 #
{L : FirstOrder.Language} →
{M : Type w} →
{N : Type w'} →
[inst : L.Structure M] →
[inst_1 : L.Structure N] → {P : Type u_1} → [inst_2 : L.Structure P] → L.Equiv N P → L.Equiv M N → L.Equiv M P
Composition of first-order equivalences.
theorem FirstOrder.Language.Equiv.comp_apply E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N] {P : Type u_1}
[inst_2 : L.Structure P] (g : L.Equiv N P) (f : L.Equiv M N) (x : M), (g.comp f) x = g (f x)
theorem FirstOrder.Language.Equiv.comp_refl E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N]
(g : L.Equiv M N), g.comp (FirstOrder.Language.Equiv.refl L M) = g
theorem FirstOrder.Language.Equiv.refl_comp E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N]
(g : L.Equiv M N), (FirstOrder.Language.Equiv.refl L N).comp g = g
theorem FirstOrder.Language.Equiv.refl_toEmbedding E0 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M],
(FirstOrder.Language.Equiv.refl L M).toEmbedding = FirstOrder.Language.Embedding.refl L M
theorem FirstOrder.Language.Equiv.refl_toHom E0 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M],
(FirstOrder.Language.Equiv.refl L M).toHom = FirstOrder.Language.Hom.id L M
theorem FirstOrder.Language.Equiv.comp_assoc E1 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N] {P : Type u_1}
[inst_2 : L.Structure P] {Q : Type u_2} [inst_3 : L.Structure Q] (f : L.Equiv M N) (g : L.Equiv N P)
(h : L.Equiv P Q), (h.comp g).comp f = h.comp (g.comp f)
Composition of first-order homomorphisms is associative.
theorem FirstOrder.Language.Equiv.injective_comp E1 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N] {P : Type u_1}
[inst_2 : L.Structure P] (h : L.Equiv N P), Function.Injective h.comp
theorem FirstOrder.Language.Equiv.comp_toHom E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N] {P : Type u_1}
[inst_2 : L.Structure P] (hnp : L.Equiv N P) (hmn : L.Equiv M N), (hnp.comp hmn).toHom = hnp.toHom.comp hmn.toHom
theorem FirstOrder.Language.Equiv.comp_toEmbedding E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N] {P : Type u_1}
[inst_2 : L.Structure P] (hnp : L.Equiv N P) (hmn : L.Equiv M N),
(hnp.comp hmn).toEmbedding = hnp.toEmbedding.comp hmn.toEmbedding
theorem FirstOrder.Language.Equiv.self_comp_symm E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N]
(f : L.Equiv M N), f.comp f.symm = FirstOrder.Language.Equiv.refl L N
theorem FirstOrder.Language.Equiv.symm_comp_self E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N]
(f : L.Equiv M N), f.symm.comp f = FirstOrder.Language.Equiv.refl L M
theorem FirstOrder.Language.Equiv.symm_comp_self_toEmbedding E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N]
(f : L.Equiv M N), f.symm.toEmbedding.comp f.toEmbedding = FirstOrder.Language.Embedding.refl L M
theorem FirstOrder.Language.Equiv.self_comp_symm_toEmbedding E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N]
(f : L.Equiv M N), f.toEmbedding.comp f.symm.toEmbedding = FirstOrder.Language.Embedding.refl L N
theorem FirstOrder.Language.Equiv.symm_comp_self_toHom E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N]
(f : L.Equiv M N), f.symm.toHom.comp f.toHom = FirstOrder.Language.Hom.id L M
theorem FirstOrder.Language.Equiv.self_comp_symm_toHom E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N]
(f : L.Equiv M N), f.toHom.comp f.symm.toHom = FirstOrder.Language.Hom.id L N
theorem FirstOrder.Language.Equiv.comp_symm E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N] {P : Type u_1}
[inst_2 : L.Structure P] (f : L.Equiv M N) (g : L.Equiv N P), (g.comp f).symm = f.symm.comp g.symm
theorem FirstOrder.Language.Equiv.comp_right_injective E1 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N] {P : Type u_1}
[inst_2 : L.Structure P] (h : L.Equiv M N), Function.Injective fun f ↦ f.comp h
theorem FirstOrder.Language.Equiv.comp_right_inj E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type w'} [inst : L.Structure M] [inst_1 : L.Structure N] {P : Type u_1}
[inst_2 : L.Structure P] (h : L.Equiv M N) (f g : L.Equiv N P), f.comp h = g.comp h ↔ f = g
def FirstOrder.Language.StrongHomClass.toEquiv E1 #
{L : FirstOrder.Language} →
{F : Type u_3} →
{M : Type u_4} →
{N : Type u_5} →
[inst : L.Structure M] →
[inst_1 : L.Structure N] → [inst_2 : EquivLike F M N] → [L.StrongHomClass F M N] → F → L.Equiv M N
Any element of a bijective StrongHomClass can be realized as a first order isomorphism.
theorem FirstOrder.Language.StrongHomClass.toEquiv_invFun E0 #
∀ {L : FirstOrder.Language} {F : Type u_3} {M : Type u_4} {N : Type u_5} [inst : L.Structure M] [inst_1 : L.Structure N]
[inst_2 : EquivLike F M N] [inst_3 : L.StrongHomClass F M N] (a : F) (a_1 : N),
(FirstOrder.Language.StrongHomClass.toEquiv a).invFun a_1 = EquivLike.inv a a_1
theorem FirstOrder.Language.StrongHomClass.toEquiv_toFun E0 #
∀ {L : FirstOrder.Language} {F : Type u_3} {M : Type u_4} {N : Type u_5} [inst : L.Structure M] [inst_1 : L.Structure N]
[inst_2 : EquivLike F M N] [inst_3 : L.StrongHomClass F M N] (a : F) (a_1 : M),
(FirstOrder.Language.StrongHomClass.toEquiv a) a_1 = a a_1
instance FirstOrder.Language.sumStructure E0 #
(L₁ : FirstOrder.Language) →
(L₂ : FirstOrder.Language) → (S : Type u_3) → [L₁.Structure S] → [L₂.Structure S] → (L₁.sum L₂).Structure S
theorem FirstOrder.Language.funMap_sumInl E0 #
∀ {L₁ : FirstOrder.Language} {L₂ : FirstOrder.Language} {S : Type u_3} [inst : L₁.Structure S] [inst_1 : L₂.Structure S]
{n : ℕ} (f : L₁.Functions n),
FirstOrder.Language.Structure.funMap (Sum.inl f) = FirstOrder.Language.Structure.funMap f
theorem FirstOrder.Language.funMap_sumInr E0 #
∀ {L₁ : FirstOrder.Language} {L₂ : FirstOrder.Language} {S : Type u_3} [inst : L₁.Structure S] [inst_1 : L₂.Structure S]
{n : ℕ} (f : L₂.Functions n),
FirstOrder.Language.Structure.funMap (Sum.inr f) = FirstOrder.Language.Structure.funMap f
theorem FirstOrder.Language.relMap_sumInl E0 #
∀ {L₁ : FirstOrder.Language} {L₂ : FirstOrder.Language} {S : Type u_3} [inst : L₁.Structure S] [inst_1 : L₂.Structure S]
{n : ℕ} (R : L₁.Relations n),
FirstOrder.Language.Structure.RelMap (Sum.inl R) = FirstOrder.Language.Structure.RelMap R
theorem FirstOrder.Language.relMap_sumInr E0 #
∀ {L₁ : FirstOrder.Language} {L₂ : FirstOrder.Language} {S : Type u_3} [inst : L₁.Structure S] [inst_1 : L₂.Structure S]
{n : ℕ} (R : L₂.Relations n),
FirstOrder.Language.Structure.RelMap (Sum.inr R) = FirstOrder.Language.Structure.RelMap R
def FirstOrder.Language.emptyStructure E1 #
{M : Type w} → FirstOrder.Language.empty.Structure M
Any type can be made uniquely into a structure over the empty language.
instance FirstOrder.Language.instUniqueStructureEmpty E0 #
{M : Type w} → Unique (FirstOrder.Language.empty.Structure M)
instance FirstOrder.Language.strongHomClassEmpty E0 #
∀ {M : Type w} {N : Type w'} [inst : FirstOrder.Language.empty.Structure M]
[inst_1 : FirstOrder.Language.empty.Structure N] {F : Type u_3} [inst_2 : FunLike F M N],
FirstOrder.Language.empty.StrongHomClass F M N
theorem FirstOrder.Language.empty.nonempty_embedding_iff E0 #
∀ {M : Type w} {N : Type w'} [inst : FirstOrder.Language.empty.Structure M]
[inst_1 : FirstOrder.Language.empty.Structure N],
Nonempty (FirstOrder.Language.empty.Embedding M N) ↔
Cardinal.lift.{w', w} (Cardinal.mk M) ≤ Cardinal.lift.{w, w'} (Cardinal.mk N)
theorem FirstOrder.Language.empty.nonempty_equiv_iff E0 #
∀ {M : Type w} {N : Type w'} [inst : FirstOrder.Language.empty.Structure M]
[inst_1 : FirstOrder.Language.empty.Structure N],
Nonempty (FirstOrder.Language.empty.Equiv M N) ↔
Cardinal.lift.{w', w} (Cardinal.mk M) = Cardinal.lift.{w, w'} (Cardinal.mk N)
def Function.emptyHom E1 #
{M : Type w} →
{N : Type w'} →
[inst : FirstOrder.Language.empty.Structure M] →
[inst_1 : FirstOrder.Language.empty.Structure N] → (M → N) → FirstOrder.Language.empty.Hom M N
Makes a Language.empty.Hom out of any function.
This is only needed because there is no instance of FunLike (M → N) M N, and thus no instance of
Language.empty.HomClass M N.
theorem Function.emptyHom_toFun E0 #
∀ {M : Type w} {N : Type w'} [inst : FirstOrder.Language.empty.Structure M]
[inst_1 : FirstOrder.Language.empty.Structure N] (f : M → N) (a : M), (Function.emptyHom f) a = f a
def Equiv.inducedStructure E1 #
{L : FirstOrder.Language} → {M : Type u_1} → {N : Type u_2} → [L.Structure M] → M ≃ N → L.Structure N
A structure induced by a bijection.
theorem Equiv.inducedStructure_funMap E0 #
∀ {L : FirstOrder.Language} {M : Type u_1} {N : Type u_2} [inst : L.Structure M] (e : M ≃ N) {n : ℕ} (f : L.Functions n)
(x : Fin n → N), FirstOrder.Language.Structure.funMap f x = e (FirstOrder.Language.Structure.funMap f (⇑e.symm ∘ x))
theorem Equiv.inducedStructure_RelMap E0 #
∀ {L : FirstOrder.Language} {M : Type u_1} {N : Type u_2} [inst : L.Structure M] (e : M ≃ N) {n : ℕ} (r : L.Relations n)
(x : Fin n → N), FirstOrder.Language.Structure.RelMap r x = FirstOrder.Language.Structure.RelMap r (⇑e.symm ∘ x)
def Equiv.inducedStructureEquiv E1 #
{L : FirstOrder.Language} → {M : Type u_1} → {N : Type u_2} → [inst : L.Structure M] → (e : M ≃ N) → L.Equiv M N
A bijection as a first-order isomorphism with the induced structure on the codomain.
theorem Equiv.toEquiv_inducedStructureEquiv E0 #
∀ {L : FirstOrder.Language} {M : Type u_1} {N : Type u_2} [inst : L.Structure M] (e : M ≃ N),
e.inducedStructureEquiv.toEquiv = e
theorem Equiv.toFun_inducedStructureEquiv E0 #
∀ {L : FirstOrder.Language} {M : Type u_1} {N : Type u_2} [inst : L.Structure M] (e : M ≃ N),
⇑e.inducedStructureEquiv = ⇑e
theorem Equiv.toFun_inducedStructureEquiv_Symm E0 #
∀ {L : FirstOrder.Language} {M : Type u_1} {N : Type u_2} [inst : L.Structure M] (e : M ≃ N),
⇑e.inducedStructureEquiv.symm = ⇑e.symm