The areas / V32. Logic, model theory and computability
Mathlib.ModelTheory.Substructures
182 declarations. Mathlib docs · Source
First-Order Substructures
This file defines substructures of first-order structures in a similar manner to the various substructures appearing in the algebra library.
Main Definitions
- A
FirstOrder.Language.Substructureis defined so thatL.Substructure Mis the type of all substructures of theL-structureM. FirstOrder.Language.Substructure.closureis defined so that ifs : Set M,closure L sis the least substructure ofMcontainings.FirstOrder.Language.Substructure.comapis defined so thats.comap fis the preimage of the substructuresunder the homomorphismf, as a substructure.FirstOrder.Language.Substructure.mapis defined so thats.map fis the image of the substructuresunder the homomorphismf, as a substructure.FirstOrder.Language.Hom.rangeis defined so thatf.rangeis the range of the homomorphismf, as a substructure.FirstOrder.Language.Hom.domRestrictandFirstOrder.Language.Hom.codRestrictrestrict the domain and codomain respectively of first-order homomorphisms to substructures.FirstOrder.Language.Embedding.domRestrictandFirstOrder.Language.Embedding.codRestrictrestrict the domain and codomain respectively of first-order embeddings to substructures.FirstOrder.Language.Substructure.inclusionis the inclusion embedding between substructures.FirstOrder.Language.Substructure.PartialEquivis defined so thatPartialEquiv L M Nis the type of equivalences between substructures ofMandN.
Main Results
L.Substructure Mforms aCompleteLattice.
comap and map
theorem FirstOrder.Language.Embedding.codRestrict.congr_simp E1 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type u_1} [inst : L.Structure M] [inst_1 : L.Structure N]
(p : L.Substructure N) (f f_1 : L.Embedding M N) (e_f : f = f_1) (h : ∀ (c : M), f c ∈ p),
FirstOrder.Language.Embedding.codRestrict p f h = FirstOrder.Language.Embedding.codRestrict p f_1 ⋯
def FirstOrder.Language.Substructure.ctorIdx E1 #
{L : FirstOrder.Language} → {M : Type w} → {inst : L.Structure M} → L.Substructure M → ℕ
theorem FirstOrder.Language.Substructure.mk.injEq E0 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] (carrier : Set M)
(fun_mem : ∀ {n : ℕ} (f : L.Functions n), FirstOrder.Language.ClosedUnder f carrier) (carrier_1 : Set M)
(fun_mem_1 : ∀ {n : ℕ} (f : L.Functions n), FirstOrder.Language.ClosedUnder f carrier_1),
({ carrier := carrier, fun_mem := fun_mem } = { carrier := carrier_1, fun_mem := fun_mem_1 }) = (carrier = carrier_1)
theorem FirstOrder.Language.Substructure.mk.congr_simp E1 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] (carrier carrier_1 : Set M)
(e_carrier : carrier = carrier_1)
(fun_mem : ∀ {n : ℕ} (f : L.Functions n), FirstOrder.Language.ClosedUnder f carrier),
{ carrier := carrier, fun_mem := fun_mem } = { carrier := carrier_1, fun_mem := ⋯ }
theorem FirstOrder.Language.Substructure.withConstants.congr_simp E1 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] (S S_1 : L.Substructure M) (e_S : S = S_1) {A : Set M}
(h : A ⊆ ↑S), S.withConstants h = S_1.withConstants ⋯
theorem FirstOrder.Language.LHom.substructureReduct.congr_simp E1 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] {L' : FirstOrder.Language} [inst_1 : L'.Structure M]
(φ φ_1 : L →ᴸ L') (e_φ : φ = φ_1) [inst_2 : φ.IsExpansionOn M], φ.substructureReduct = φ_1.substructureReduct
theorem FirstOrder.Language.Substructure.mk.inj E1 #
∀ {L : FirstOrder.Language} {M : Type w} {inst : L.Structure M} {carrier : Set M}
{fun_mem : ∀ {n : ℕ} (f : L.Functions n), FirstOrder.Language.ClosedUnder f carrier} {carrier_1 : Set M}
{fun_mem_1 : ∀ {n : ℕ} (f : L.Functions n), FirstOrder.Language.ClosedUnder f carrier_1},
{ carrier := carrier, fun_mem := fun_mem } = { carrier := carrier_1, fun_mem := fun_mem_1 } → carrier = carrier_1
def FirstOrder.Language.ClosedUnder E1 #
{L : FirstOrder.Language} → {M : Type w} → [L.Structure M] → {n : ℕ} → L.Functions n → Set M → Prop
Indicates that a set in a given structure is a closed under a function symbol.
theorem FirstOrder.Language.closedUnder_univ E0 #
∀ (L : FirstOrder.Language) {M : Type w} [inst : L.Structure M] {n : ℕ} (f : L.Functions n),
FirstOrder.Language.ClosedUnder f Set.univ
theorem FirstOrder.Language.ClosedUnder.inter E1 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] {n : ℕ} {f : L.Functions n} {s t : Set M},
FirstOrder.Language.ClosedUnder f s → FirstOrder.Language.ClosedUnder f t → FirstOrder.Language.ClosedUnder f (s ∩ t)
theorem FirstOrder.Language.ClosedUnder.inf E1 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] {n : ℕ} {f : L.Functions n} {s t : Set M},
FirstOrder.Language.ClosedUnder f s → FirstOrder.Language.ClosedUnder f t → FirstOrder.Language.ClosedUnder f (s ∩ t)
theorem FirstOrder.Language.ClosedUnder.sInf E1 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] {n : ℕ} {f : L.Functions n} {S : Set (Set M)},
(∀ s ∈ S, FirstOrder.Language.ClosedUnder f s) → FirstOrder.Language.ClosedUnder f (sInf S)
structure FirstOrder.Language.Substructure E3 #
(L : FirstOrder.Language) → (M : Type w) → [L.Structure M] → Type w
A substructure of a structure M is a set closed under application of function symbols.
ctor FirstOrder.Language.Substructure.mk E0 #
{L : FirstOrder.Language} →
{M : Type w} →
[inst : L.Structure M] →
(carrier : Set M) → (∀ {n : ℕ} (f : L.Functions n), FirstOrder.Language.ClosedUnder f carrier) → L.Substructure M
abbrev FirstOrder.Language.Substructure.carrier E1 #
{L : FirstOrder.Language} → {M : Type w} → [inst : L.Structure M] → L.Substructure M → Set M
The underlying set of this substructure
theorem FirstOrder.Language.Substructure.fun_mem E1 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] (self : L.Substructure M) {n : ℕ} (f : L.Functions n),
FirstOrder.Language.ClosedUnder f ↑self
instance FirstOrder.Language.Substructure.instSetLike E0 #
{L : FirstOrder.Language} → {M : Type w} → [inst : L.Structure M] → SetLike (L.Substructure M) M
instance FirstOrder.Language.Substructure.instPartialOrder E0 #
{L : FirstOrder.Language} → {M : Type w} → [inst : L.Structure M] → PartialOrder (L.Substructure M)
def FirstOrder.Language.Substructure.Simps.coe E1 #
{L : FirstOrder.Language} → {M : Type w} → [inst : L.Structure M] → L.Substructure M → Set M
See Note [custom simps projection]
theorem FirstOrder.Language.Substructure.mem_carrier E0 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] {s : L.Substructure M} {x : M}, x ∈ ↑s ↔ x ∈ s
theorem FirstOrder.Language.Substructure.ext E1 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] {S T : L.Substructure M},
(∀ (x : M), x ∈ S ↔ x ∈ T) → S = T
Two substructures are equal if they have the same elements.
theorem FirstOrder.Language.Substructure.ext_iff E0 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] {S T : L.Substructure M},
S = T ↔ ∀ (x : M), x ∈ S ↔ x ∈ T
def FirstOrder.Language.Substructure.copy E1 #
{L : FirstOrder.Language} →
{M : Type w} → [inst : L.Structure M] → (S : L.Substructure M) → (s : Set M) → s = ↑S → L.Substructure M
Copy a substructure replacing carrier with a set that is equal to it.
theorem FirstOrder.Language.Term.realize_mem E1 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] {S : L.Substructure M} {α : Type u_3} (t : L.Term α)
(xs : α → M), (∀ (a : α), xs a ∈ S) → FirstOrder.Language.Term.realize xs t ∈ S
theorem FirstOrder.Language.Substructure.coe_copy E0 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] {S : L.Substructure M} {s : Set M} (hs : s = ↑S),
↑(S.copy s hs) = s
theorem FirstOrder.Language.Substructure.copy_eq E0 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] {S : L.Substructure M} {s : Set M} (hs : s = ↑S),
S.copy s hs = S
theorem FirstOrder.Language.Substructure.constants_mem E1 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] {S : L.Substructure M} (c : L.Constants), ↑c ∈ S
instance FirstOrder.Language.Substructure.instTop E0 #
{L : FirstOrder.Language} → {M : Type w} → [inst : L.Structure M] → Top (L.Substructure M)
The substructure M of the structure M.
instance FirstOrder.Language.Substructure.instInhabited E0 #
{L : FirstOrder.Language} → {M : Type w} → [inst : L.Structure M] → Inhabited (L.Substructure M)
theorem FirstOrder.Language.Substructure.mem_top E0 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] (x : M), x ∈ ⊤
theorem FirstOrder.Language.Substructure.coe_top E0 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M], ↑⊤ = Set.univ
instance FirstOrder.Language.Substructure.instInf E0 #
{L : FirstOrder.Language} → {M : Type w} → [inst : L.Structure M] → Min (L.Substructure M)
The inf of two substructures is their intersection.
theorem FirstOrder.Language.Substructure.coe_inf E0 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] (p p' : L.Substructure M), ↑(p ⊓ p') = ↑p ∩ ↑p'
theorem FirstOrder.Language.Substructure.mem_inf E0 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] {p p' : L.Substructure M} {x : M},
x ∈ p ⊓ p' ↔ x ∈ p ∧ x ∈ p'
instance FirstOrder.Language.Substructure.instInfSet E0 #
{L : FirstOrder.Language} → {M : Type w} → [inst : L.Structure M] → InfSet (L.Substructure M)
theorem FirstOrder.Language.Substructure.coe_sInf E0 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] (S : Set (L.Substructure M)), ↑(sInf S) = ⋂ s ∈ S, ↑s
theorem FirstOrder.Language.Substructure.mem_sInf E0 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] {S : Set (L.Substructure M)} {x : M},
x ∈ sInf S ↔ ∀ p ∈ S, x ∈ p
theorem FirstOrder.Language.Substructure.mem_iInf E0 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] {ι : Sort u_3} {S : ι → L.Substructure M} {x : M},
x ∈ ⨅ i, S i ↔ ∀ (i : ι), x ∈ S i
theorem FirstOrder.Language.Substructure.coe_iInf E0 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] {ι : Sort u_3} {S : ι → L.Substructure M},
↑(⨅ i, S i) = ⋂ i, ↑(S i)
instance FirstOrder.Language.Substructure.instCompleteLattice E0 #
{L : FirstOrder.Language} → {M : Type w} → [inst : L.Structure M] → CompleteLattice (L.Substructure M)
Substructures of a structure form a complete lattice.
def FirstOrder.Language.Substructure.closure E3 #
(L : FirstOrder.Language) → {M : Type w} → [inst : L.Structure M] → LowerAdjoint SetLike.coe
The L.Substructure generated by a set.
theorem FirstOrder.Language.Substructure.mem_closure E0 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] {s : Set M} {x : M},
x ∈ (FirstOrder.Language.Substructure.closure L).toFun s ↔ ∀ (S : L.Substructure M), s ⊆ ↑S → x ∈ S
theorem FirstOrder.Language.Substructure.subset_closure E0 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] {s : Set M},
s ⊆ ↑((FirstOrder.Language.Substructure.closure L).toFun s)
The substructure generated by a set includes the set.
theorem FirstOrder.Language.Substructure.notMem_of_notMem_closure E1 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] {s : Set M} {P : M},
P ∉ (FirstOrder.Language.Substructure.closure L).toFun s → P ∉ s
theorem FirstOrder.Language.Substructure.closed E0 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] (S : L.Substructure M),
↑S ∈ (FirstOrder.Language.Substructure.closure L).closed
theorem FirstOrder.Language.Substructure.closure_le E0 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] {S : L.Substructure M} {s : Set M},
(FirstOrder.Language.Substructure.closure L).toFun s ≤ S ↔ s ⊆ ↑S
A substructure S includes closure L s if and only if it includes s.
theorem FirstOrder.Language.Substructure.closure_mono E1 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] ⦃s t : Set M⦄,
s ⊆ t → (FirstOrder.Language.Substructure.closure L).toFun s ≤ (FirstOrder.Language.Substructure.closure L).toFun t
Substructure closure of a set is monotone in its argument: if s ⊆ t,
then closure L s ≤ closure L t.
theorem FirstOrder.Language.Substructure.closure_eq_of_le E1 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] {S : L.Substructure M} {s : Set M},
s ⊆ ↑S →
S ≤ (FirstOrder.Language.Substructure.closure L).toFun s → (FirstOrder.Language.Substructure.closure L).toFun s = S
theorem FirstOrder.Language.Substructure.coe_closure_eq_range_term_realize E0 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] {s : Set M},
↑((FirstOrder.Language.Substructure.closure L).toFun s) = Set.range (FirstOrder.Language.Term.realize Subtype.val)
instance FirstOrder.Language.Substructure.small_closure E0 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] {s : Set M} [Small.{u, w} ↑s],
Small.{u, w} ↥((FirstOrder.Language.Substructure.closure L).toFun s)
theorem FirstOrder.Language.Substructure.mem_closure_iff_exists_term E0 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] {s : Set M} {x : M},
x ∈ (FirstOrder.Language.Substructure.closure L).toFun s ↔ ∃ t, FirstOrder.Language.Term.realize Subtype.val t = x
theorem FirstOrder.Language.Substructure.lift_card_closure_le_card_term E1 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] {s : Set M},
Cardinal.lift.{max u w, w} (Cardinal.mk ↥((FirstOrder.Language.Substructure.closure L).toFun s)) ≤
Cardinal.mk (L.Term ↑s)
theorem FirstOrder.Language.Substructure.lift_card_closure_le E1 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] {s : Set M},
Cardinal.lift.{u, w} (Cardinal.mk ↥((FirstOrder.Language.Substructure.closure L).toFun s)) ≤
max Cardinal.aleph0
(Cardinal.lift.{u, w} (Cardinal.mk ↑s) + Cardinal.lift.{w, u} (Cardinal.mk ((i : ℕ) × L.Functions i)))
theorem FirstOrder.Language.Substructure.mem_closed_iff E0 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] (s : Set M),
s ∈ (FirstOrder.Language.Substructure.closure L).closed ↔
∀ {n : ℕ} (f : L.Functions n), FirstOrder.Language.ClosedUnder f s
theorem FirstOrder.Language.Substructure.mem_closed_of_isRelational E0 #
∀ (L : FirstOrder.Language) {M : Type w} [inst : L.Structure M] [L.IsRelational] (s : Set M),
s ∈ (FirstOrder.Language.Substructure.closure L).closed
theorem FirstOrder.Language.Substructure.closure_eq_of_isRelational E0 #
∀ (L : FirstOrder.Language) {M : Type w} [inst : L.Structure M] [L.IsRelational] (s : Set M),
↑((FirstOrder.Language.Substructure.closure L).toFun s) = s
theorem FirstOrder.Language.Substructure.mem_closure_iff_of_isRelational E0 #
∀ (L : FirstOrder.Language) {M : Type w} [inst : L.Structure M] [L.IsRelational] (s : Set M) (m : M),
m ∈ (FirstOrder.Language.Substructure.closure L).toFun s ↔ m ∈ s
theorem Set.Countable.substructure_closure E1 #
∀ (L : FirstOrder.Language) {M : Type w} [inst : L.Structure M] {s : Set M} [Countable ((l : ℕ) × L.Functions l)],
s.Countable → Countable ↥((FirstOrder.Language.Substructure.closure L).toFun s)
theorem FirstOrder.Language.Substructure.closure_induction E1 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] {s : Set M} {p : M → Prop} {x : M},
x ∈ (FirstOrder.Language.Substructure.closure L).toFun s →
(∀ x ∈ s, p x) → (∀ {n : ℕ} (f : L.Functions n), FirstOrder.Language.ClosedUnder f (Set.ofPred p)) → p x
An induction principle for closure membership. If p holds for all elements of s, and
is preserved under function symbols, then p holds for all elements of the closure of s.
theorem FirstOrder.Language.Substructure.dense_induction E1 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] {p : M → Prop} (x : M) {s : Set M},
(FirstOrder.Language.Substructure.closure L).toFun s = ⊤ →
(∀ x ∈ s, p x) → (∀ {n : ℕ} (f : L.Functions n), FirstOrder.Language.ClosedUnder f (Set.ofPred p)) → p x
If s is a dense set in a structure M, Substructure.closure L s = ⊤, then in order to prove
that some predicate p holds for all x : M it suffices to verify p x for x ∈ s, and verify
that p is preserved under function symbols.
def FirstOrder.Language.Substructure.gi E1 #
(L : FirstOrder.Language) →
(M : Type w) → [inst : L.Structure M] → GaloisInsertion (FirstOrder.Language.Substructure.closure L).toFun SetLike.coe
closure forms a Galois insertion with the coercion to set.
theorem FirstOrder.Language.Substructure.closure_eq E0 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] (S : L.Substructure M),
(FirstOrder.Language.Substructure.closure L).toFun ↑S = S
Closure of a substructure S equals S.
theorem FirstOrder.Language.Substructure.closure_empty E0 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M],
(FirstOrder.Language.Substructure.closure L).toFun ∅ = ⊥
theorem FirstOrder.Language.Substructure.closure_univ E0 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M],
(FirstOrder.Language.Substructure.closure L).toFun Set.univ = ⊤
theorem FirstOrder.Language.Substructure.closure_union E1 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] (s t : Set M),
(FirstOrder.Language.Substructure.closure L).toFun (s ∪ t) =
(FirstOrder.Language.Substructure.closure L).toFun s ⊔ (FirstOrder.Language.Substructure.closure L).toFun t
theorem FirstOrder.Language.Substructure.closure_iUnion E1 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] {ι : Sort u_3} (s : ι → Set M),
(FirstOrder.Language.Substructure.closure L).toFun (⋃ i, s i) =
⨆ i, (FirstOrder.Language.Substructure.closure L).toFun (s i)
theorem FirstOrder.Language.Substructure.closure_insert E1 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] (s : Set M) (m : M),
(FirstOrder.Language.Substructure.closure L).toFun (insert m s) =
(FirstOrder.Language.Substructure.closure L).toFun {m} ⊔ (FirstOrder.Language.Substructure.closure L).toFun s
instance FirstOrder.Language.Substructure.small_bot E0 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M], Small.{u, w} ↥⊥
theorem FirstOrder.Language.Substructure.iSup_eq_closure E1 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] {ι : Sort u_3} (S : ι → L.Substructure M),
⨆ i, S i = (FirstOrder.Language.Substructure.closure L).toFun (⋃ i, ↑(S i))
theorem FirstOrder.Language.Substructure.mem_iSup_of_directed E0 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] {ι : Type u_3} [hι : Nonempty ι]
{S : ι → L.Substructure M}, Directed (fun x1 x2 ↦ x1 ≤ x2) S → ∀ {x : M}, x ∈ ⨆ i, S i ↔ ∃ i, x ∈ S i
theorem FirstOrder.Language.Substructure.mem_sSup_of_directedOn E0 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] {S : Set (L.Substructure M)},
S.Nonempty → DirectedOn (fun x1 x2 ↦ x1 ≤ x2) S → ∀ {x : M}, x ∈ sSup S ↔ ∃ s ∈ S, x ∈ s
instance FirstOrder.Language.Substructure.instIsEmptySubtypeMemBotOfConstants E0 #
∀ (L : FirstOrder.Language) (M : Type w) [inst : L.Structure M] [IsEmpty L.Constants], IsEmpty ↥⊥
def FirstOrder.Language.Substructure.comap E3 #
{L : FirstOrder.Language} →
{M : Type w} →
{N : Type u_1} → [inst : L.Structure M] → [inst_1 : L.Structure N] → L.Hom M N → L.Substructure N → L.Substructure M
The preimage of a substructure along a homomorphism is a substructure.
theorem FirstOrder.Language.Substructure.coe_comap E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type u_1} [inst : L.Structure M] [inst_1 : L.Structure N] (φ : L.Hom M N)
(S : L.Substructure N), ↑(FirstOrder.Language.Substructure.comap φ S) = ⇑φ ⁻¹' ↑S
theorem FirstOrder.Language.Substructure.mem_comap E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type u_1} [inst : L.Structure M] [inst_1 : L.Structure N]
{S : L.Substructure N} {f : L.Hom M N} {x : M}, x ∈ FirstOrder.Language.Substructure.comap f S ↔ f x ∈ S
theorem FirstOrder.Language.Substructure.comap_comap E1 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type u_1} {P : Type u_2} [inst : L.Structure M] [inst_1 : L.Structure N]
[inst_2 : L.Structure P] (S : L.Substructure P) (g : L.Hom N P) (f : L.Hom M N),
FirstOrder.Language.Substructure.comap f (FirstOrder.Language.Substructure.comap g S) =
FirstOrder.Language.Substructure.comap (g.comp f) S
theorem FirstOrder.Language.Substructure.comap_id E0 #
∀ {L : FirstOrder.Language} {P : Type u_2} [inst : L.Structure P] (S : L.Substructure P),
FirstOrder.Language.Substructure.comap (FirstOrder.Language.Hom.id L P) S = S
def FirstOrder.Language.Substructure.map E3 #
{L : FirstOrder.Language} →
{M : Type w} →
{N : Type u_1} → [inst : L.Structure M] → [inst_1 : L.Structure N] → L.Hom M N → L.Substructure M → L.Substructure N
The image of a substructure along a homomorphism is a substructure.
theorem FirstOrder.Language.Substructure.coe_map E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type u_1} [inst : L.Structure M] [inst_1 : L.Structure N] (φ : L.Hom M N)
(S : L.Substructure M), ↑(FirstOrder.Language.Substructure.map φ S) = ⇑φ '' ↑S
theorem FirstOrder.Language.Substructure.mem_map E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type u_1} [inst : L.Structure M] [inst_1 : L.Structure N] {f : L.Hom M N}
{S : L.Substructure M} {y : N}, y ∈ FirstOrder.Language.Substructure.map f S ↔ ∃ x ∈ S, f x = y
theorem FirstOrder.Language.Substructure.mem_map_of_mem E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type u_1} [inst : L.Structure M] [inst_1 : L.Structure N] (f : L.Hom M N)
{S : L.Substructure M} {x : M}, x ∈ S → f x ∈ FirstOrder.Language.Substructure.map f S
theorem FirstOrder.Language.Substructure.apply_coe_mem_map E1 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type u_1} [inst : L.Structure M] [inst_1 : L.Structure N] (f : L.Hom M N)
(S : L.Substructure M) (x : ↥S), f ↑x ∈ FirstOrder.Language.Substructure.map f S
theorem FirstOrder.Language.Substructure.map_map E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type u_1} {P : Type u_2} [inst : L.Structure M] [inst_1 : L.Structure N]
[inst_2 : L.Structure P] (S : L.Substructure M) (g : L.Hom N P) (f : L.Hom M N),
FirstOrder.Language.Substructure.map g (FirstOrder.Language.Substructure.map f S) =
FirstOrder.Language.Substructure.map (g.comp f) S
theorem FirstOrder.Language.Substructure.map_le_iff_le_comap E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type u_1} [inst : L.Structure M] [inst_1 : L.Structure N] {f : L.Hom M N}
{S : L.Substructure M} {T : L.Substructure N},
FirstOrder.Language.Substructure.map f S ≤ T ↔ S ≤ FirstOrder.Language.Substructure.comap f T
theorem FirstOrder.Language.Substructure.gc_map_comap E1 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type u_1} [inst : L.Structure M] [inst_1 : L.Structure N] (f : L.Hom M N),
GaloisConnection (FirstOrder.Language.Substructure.map f) (FirstOrder.Language.Substructure.comap f)
theorem FirstOrder.Language.Substructure.map_le_of_le_comap E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type u_1} [inst : L.Structure M] [inst_1 : L.Structure N]
(S : L.Substructure M) {T : L.Substructure N} {f : L.Hom M N},
S ≤ FirstOrder.Language.Substructure.comap f T → FirstOrder.Language.Substructure.map f S ≤ T
theorem FirstOrder.Language.Substructure.le_comap_of_map_le E1 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type u_1} [inst : L.Structure M] [inst_1 : L.Structure N]
(S : L.Substructure M) {T : L.Substructure N} {f : L.Hom M N},
FirstOrder.Language.Substructure.map f S ≤ T → S ≤ FirstOrder.Language.Substructure.comap f T
theorem FirstOrder.Language.Substructure.le_comap_map E1 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type u_1} [inst : L.Structure M] [inst_1 : L.Structure N]
(S : L.Substructure M) {f : L.Hom M N},
S ≤ FirstOrder.Language.Substructure.comap f (FirstOrder.Language.Substructure.map f S)
theorem FirstOrder.Language.Substructure.map_comap_le E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type u_1} [inst : L.Structure M] [inst_1 : L.Structure N]
{S : L.Substructure N} {f : L.Hom M N},
FirstOrder.Language.Substructure.map f (FirstOrder.Language.Substructure.comap f S) ≤ S
theorem FirstOrder.Language.Substructure.monotone_map E1 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type u_1} [inst : L.Structure M] [inst_1 : L.Structure N] {f : L.Hom M N},
Monotone (FirstOrder.Language.Substructure.map f)
theorem FirstOrder.Language.Substructure.monotone_comap E1 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type u_1} [inst : L.Structure M] [inst_1 : L.Structure N] {f : L.Hom M N},
Monotone (FirstOrder.Language.Substructure.comap f)
theorem FirstOrder.Language.Substructure.map_comap_map E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type u_1} [inst : L.Structure M] [inst_1 : L.Structure N]
(S : L.Substructure M) {f : L.Hom M N},
FirstOrder.Language.Substructure.map f
(FirstOrder.Language.Substructure.comap f (FirstOrder.Language.Substructure.map f S)) =
FirstOrder.Language.Substructure.map f S
theorem FirstOrder.Language.Substructure.comap_map_comap E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type u_1} [inst : L.Structure M] [inst_1 : L.Structure N]
{S : L.Substructure N} {f : L.Hom M N},
FirstOrder.Language.Substructure.comap f
(FirstOrder.Language.Substructure.map f (FirstOrder.Language.Substructure.comap f S)) =
FirstOrder.Language.Substructure.comap f S
theorem FirstOrder.Language.Substructure.map_sup E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type u_1} [inst : L.Structure M] [inst_1 : L.Structure N]
(S T : L.Substructure M) (f : L.Hom M N),
FirstOrder.Language.Substructure.map f (S ⊔ T) =
FirstOrder.Language.Substructure.map f S ⊔ FirstOrder.Language.Substructure.map f T
theorem FirstOrder.Language.Substructure.map_iSup E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type u_1} [inst : L.Structure M] [inst_1 : L.Structure N] {ι : Sort u_3}
(f : L.Hom M N) (s : ι → L.Substructure M),
FirstOrder.Language.Substructure.map f (⨆ i, s i) = ⨆ i, FirstOrder.Language.Substructure.map f (s i)
theorem FirstOrder.Language.Substructure.comap_inf E1 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type u_1} [inst : L.Structure M] [inst_1 : L.Structure N]
(S T : L.Substructure N) (f : L.Hom M N),
FirstOrder.Language.Substructure.comap f (S ⊓ T) =
FirstOrder.Language.Substructure.comap f S ⊓ FirstOrder.Language.Substructure.comap f T
theorem FirstOrder.Language.Substructure.comap_iInf E1 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type u_1} [inst : L.Structure M] [inst_1 : L.Structure N] {ι : Sort u_3}
(f : L.Hom M N) (s : ι → L.Substructure N),
FirstOrder.Language.Substructure.comap f (⨅ i, s i) = ⨅ i, FirstOrder.Language.Substructure.comap f (s i)
theorem FirstOrder.Language.Substructure.map_bot E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type u_1} [inst : L.Structure M] [inst_1 : L.Structure N] (f : L.Hom M N),
FirstOrder.Language.Substructure.map f ⊥ = ⊥
theorem FirstOrder.Language.Substructure.comap_top E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type u_1} [inst : L.Structure M] [inst_1 : L.Structure N] (f : L.Hom M N),
FirstOrder.Language.Substructure.comap f ⊤ = ⊤
theorem FirstOrder.Language.Substructure.map_id E0 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] (S : L.Substructure M),
FirstOrder.Language.Substructure.map (FirstOrder.Language.Hom.id L M) S = S
theorem FirstOrder.Language.Substructure.map_closure E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type u_1} [inst : L.Structure M] [inst_1 : L.Structure N] (f : L.Hom M N)
(s : Set M),
FirstOrder.Language.Substructure.map f ((FirstOrder.Language.Substructure.closure L).toFun s) =
(FirstOrder.Language.Substructure.closure L).toFun (⇑f '' s)
theorem FirstOrder.Language.Substructure.closure_image E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type u_1} [inst : L.Structure M] [inst_1 : L.Structure N] {s : Set M}
(f : L.Hom M N),
(FirstOrder.Language.Substructure.closure L).toFun (⇑f '' s) =
FirstOrder.Language.Substructure.map f ((FirstOrder.Language.Substructure.closure L).toFun s)
def FirstOrder.Language.Substructure.gciMapComap E1 #
{L : FirstOrder.Language} →
{M : Type w} →
{N : Type u_1} →
[inst : L.Structure M] →
[inst_1 : L.Structure N] →
{f : L.Hom M N} →
Function.Injective ⇑f →
GaloisCoinsertion (FirstOrder.Language.Substructure.map f) (FirstOrder.Language.Substructure.comap f)
map f and comap f form a GaloisCoinsertion when f is injective.
theorem FirstOrder.Language.Substructure.comap_map_eq_of_injective E1 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type u_1} [inst : L.Structure M] [inst_1 : L.Structure N] {f : L.Hom M N},
Function.Injective ⇑f →
∀ (S : L.Substructure M), FirstOrder.Language.Substructure.comap f (FirstOrder.Language.Substructure.map f S) = S
theorem FirstOrder.Language.Substructure.comap_surjective_of_injective E1 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type u_1} [inst : L.Structure M] [inst_1 : L.Structure N] {f : L.Hom M N},
Function.Injective ⇑f → Function.Surjective (FirstOrder.Language.Substructure.comap f)
theorem FirstOrder.Language.Substructure.map_injective_of_injective E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type u_1} [inst : L.Structure M] [inst_1 : L.Structure N] {f : L.Hom M N},
Function.Injective ⇑f → Function.Injective (FirstOrder.Language.Substructure.map f)
theorem FirstOrder.Language.Substructure.comap_inf_map_of_injective E1 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type u_1} [inst : L.Structure M] [inst_1 : L.Structure N] {f : L.Hom M N},
Function.Injective ⇑f →
∀ (S T : L.Substructure M),
FirstOrder.Language.Substructure.comap f
(FirstOrder.Language.Substructure.map f S ⊓ FirstOrder.Language.Substructure.map f T) =
S ⊓ T
theorem FirstOrder.Language.Substructure.comap_iInf_map_of_injective E1 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type u_1} [inst : L.Structure M] [inst_1 : L.Structure N] {ι : Type u_3}
{f : L.Hom M N},
Function.Injective ⇑f →
∀ (S : ι → L.Substructure M),
FirstOrder.Language.Substructure.comap f (⨅ i, FirstOrder.Language.Substructure.map f (S i)) = ⨅ i, S i
theorem FirstOrder.Language.Substructure.comap_sup_map_of_injective E1 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type u_1} [inst : L.Structure M] [inst_1 : L.Structure N] {f : L.Hom M N},
Function.Injective ⇑f →
∀ (S T : L.Substructure M),
FirstOrder.Language.Substructure.comap f
(FirstOrder.Language.Substructure.map f S ⊔ FirstOrder.Language.Substructure.map f T) =
S ⊔ T
theorem FirstOrder.Language.Substructure.comap_iSup_map_of_injective E1 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type u_1} [inst : L.Structure M] [inst_1 : L.Structure N] {ι : Type u_3}
{f : L.Hom M N},
Function.Injective ⇑f →
∀ (S : ι → L.Substructure M),
FirstOrder.Language.Substructure.comap f (⨆ i, FirstOrder.Language.Substructure.map f (S i)) = ⨆ i, S i
theorem FirstOrder.Language.Substructure.map_le_map_iff_of_injective E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type u_1} [inst : L.Structure M] [inst_1 : L.Structure N] {f : L.Hom M N},
Function.Injective ⇑f →
∀ {S T : L.Substructure M},
FirstOrder.Language.Substructure.map f S ≤ FirstOrder.Language.Substructure.map f T ↔ S ≤ T
theorem FirstOrder.Language.Substructure.map_strictMono_of_injective E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type u_1} [inst : L.Structure M] [inst_1 : L.Structure N] {f : L.Hom M N},
Function.Injective ⇑f → StrictMono (FirstOrder.Language.Substructure.map f)
def FirstOrder.Language.Substructure.giMapComap E1 #
{L : FirstOrder.Language} →
{M : Type w} →
{N : Type u_1} →
[inst : L.Structure M] →
[inst_1 : L.Structure N] →
{f : L.Hom M N} →
Function.Surjective ⇑f →
GaloisInsertion (FirstOrder.Language.Substructure.map f) (FirstOrder.Language.Substructure.comap f)
map f and comap f form a GaloisInsertion when f is surjective.
theorem FirstOrder.Language.Substructure.map_comap_eq_of_surjective E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type u_1} [inst : L.Structure M] [inst_1 : L.Structure N] {f : L.Hom M N},
Function.Surjective ⇑f →
∀ (S : L.Substructure N), FirstOrder.Language.Substructure.map f (FirstOrder.Language.Substructure.comap f S) = S
theorem FirstOrder.Language.Substructure.map_surjective_of_surjective E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type u_1} [inst : L.Structure M] [inst_1 : L.Structure N] {f : L.Hom M N},
Function.Surjective ⇑f → Function.Surjective (FirstOrder.Language.Substructure.map f)
theorem FirstOrder.Language.Substructure.comap_injective_of_surjective E1 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type u_1} [inst : L.Structure M] [inst_1 : L.Structure N] {f : L.Hom M N},
Function.Surjective ⇑f → Function.Injective (FirstOrder.Language.Substructure.comap f)
theorem FirstOrder.Language.Substructure.map_inf_comap_of_surjective E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type u_1} [inst : L.Structure M] [inst_1 : L.Structure N] {f : L.Hom M N},
Function.Surjective ⇑f →
∀ (S T : L.Substructure N),
FirstOrder.Language.Substructure.map f
(FirstOrder.Language.Substructure.comap f S ⊓ FirstOrder.Language.Substructure.comap f T) =
S ⊓ T
theorem FirstOrder.Language.Substructure.map_iInf_comap_of_surjective E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type u_1} [inst : L.Structure M] [inst_1 : L.Structure N] {ι : Type u_3}
{f : L.Hom M N},
Function.Surjective ⇑f →
∀ (S : ι → L.Substructure N),
FirstOrder.Language.Substructure.map f (⨅ i, FirstOrder.Language.Substructure.comap f (S i)) = ⨅ i, S i
theorem FirstOrder.Language.Substructure.map_sup_comap_of_surjective E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type u_1} [inst : L.Structure M] [inst_1 : L.Structure N] {f : L.Hom M N},
Function.Surjective ⇑f →
∀ (S T : L.Substructure N),
FirstOrder.Language.Substructure.map f
(FirstOrder.Language.Substructure.comap f S ⊔ FirstOrder.Language.Substructure.comap f T) =
S ⊔ T
theorem FirstOrder.Language.Substructure.map_iSup_comap_of_surjective E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type u_1} [inst : L.Structure M] [inst_1 : L.Structure N] {ι : Type u_3}
{f : L.Hom M N},
Function.Surjective ⇑f →
∀ (S : ι → L.Substructure N),
FirstOrder.Language.Substructure.map f (⨆ i, FirstOrder.Language.Substructure.comap f (S i)) = ⨆ i, S i
theorem FirstOrder.Language.Substructure.comap_le_comap_iff_of_surjective E1 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type u_1} [inst : L.Structure M] [inst_1 : L.Structure N] {f : L.Hom M N},
Function.Surjective ⇑f →
∀ {S T : L.Substructure N},
FirstOrder.Language.Substructure.comap f S ≤ FirstOrder.Language.Substructure.comap f T ↔ S ≤ T
theorem FirstOrder.Language.Substructure.comap_strictMono_of_surjective E1 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type u_1} [inst : L.Structure M] [inst_1 : L.Structure N] {f : L.Hom M N},
Function.Surjective ⇑f → StrictMono (FirstOrder.Language.Substructure.comap f)
instance FirstOrder.Language.Substructure.inducedStructure E0 #
{L : FirstOrder.Language} → {M : Type w} → [inst : L.Structure M] → {S : L.Substructure M} → L.Structure ↥S
def FirstOrder.Language.Substructure.subtype E1 #
{L : FirstOrder.Language} → {M : Type w} → [inst : L.Structure M] → (S : L.Substructure M) → L.Embedding (↥S) M
The natural embedding of an L.Substructure of M into M.
theorem FirstOrder.Language.Substructure.subtype_apply E0 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] {S : L.Substructure M} {x : ↥S}, S.subtype x = ↑x
theorem FirstOrder.Language.Substructure.subtype_injective E1 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] (S : L.Substructure M), Function.Injective ⇑S.subtype
theorem FirstOrder.Language.Substructure.coe_subtype E0 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] (S : L.Substructure M), ⇑S.subtype = Subtype.val
def FirstOrder.Language.Substructure.topEquiv E1 #
{L : FirstOrder.Language} → {M : Type w} → [inst : L.Structure M] → L.Equiv (↥⊤) M
The equivalence between the maximal substructure of a structure and the structure itself.
theorem FirstOrder.Language.Substructure.coe_topEquiv E0 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M],
⇑FirstOrder.Language.Substructure.topEquiv = Subtype.val
theorem FirstOrder.Language.Substructure.realize_boundedFormula_top E0 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] {α : Type u_3} {n : ℕ} {φ : L.BoundedFormula α n}
{v : α → ↥⊤} {xs : Fin n → ↥⊤}, φ.Realize v xs ↔ φ.Realize (Subtype.val ∘ v) (Subtype.val ∘ xs)
theorem FirstOrder.Language.Substructure.realize_formula_top E0 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] {α : Type u_3} {φ : L.Formula α} {v : α → ↥⊤},
φ.Realize v ↔ φ.Realize (Subtype.val ∘ v)
theorem FirstOrder.Language.Substructure.closure_induction' E1 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] (s : Set M)
{p : (x : M) → x ∈ (FirstOrder.Language.Substructure.closure L).toFun s → Prop},
(∀ (x : M) (h : x ∈ s), p x ⋯) →
(∀ {n : ℕ} (f : L.Functions n),
FirstOrder.Language.ClosedUnder f
{x | ∃ (hx : x ∈ (FirstOrder.Language.Substructure.closure L).toFun s), p x hx}) →
∀ {x : M} (hx : x ∈ (FirstOrder.Language.Substructure.closure L).toFun s), p x hx
A dependent version of Substructure.closure_induction.
def FirstOrder.Language.LHom.substructureReduct E1 #
{L : FirstOrder.Language} →
{M : Type w} →
[inst : L.Structure M] →
{L' : FirstOrder.Language} →
[inst_1 : L'.Structure M] → (φ : L →ᴸ L') → [φ.IsExpansionOn M] → L'.Substructure M ↪o L.Substructure M
Reduces the language of a substructure along a language hom.
theorem FirstOrder.Language.LHom.mem_substructureReduct E0 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] {L' : FirstOrder.Language} [inst_1 : L'.Structure M]
(φ : L →ᴸ L') [inst_2 : φ.IsExpansionOn M] {x : M} {S : L'.Substructure M}, x ∈ φ.substructureReduct S ↔ x ∈ S
theorem FirstOrder.Language.LHom.coe_substructureReduct E0 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] {L' : FirstOrder.Language} [inst_1 : L'.Structure M]
(φ : L →ᴸ L') [inst_2 : φ.IsExpansionOn M] {S : L'.Substructure M}, ↑(φ.substructureReduct S) = ↑S
def FirstOrder.Language.Substructure.withConstants E1 #
{L : FirstOrder.Language} →
{M : Type w} →
[inst : L.Structure M] → (S : L.Substructure M) → {A : Set M} → A ⊆ ↑S → (L.withConstants ↑A).Substructure M
Turns any substructure containing a constant set A into a L[[A]]-substructure.
theorem FirstOrder.Language.Substructure.mem_withConstants E0 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] {S : L.Substructure M} {A : Set M} (h : A ⊆ ↑S) {x : M},
x ∈ S.withConstants h ↔ x ∈ S
theorem FirstOrder.Language.Substructure.coe_withConstants E0 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] {S : L.Substructure M} {A : Set M} (h : A ⊆ ↑S),
↑(S.withConstants h) = ↑S
theorem FirstOrder.Language.Substructure.reduct_withConstants E0 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] {S : L.Substructure M} {A : Set M} (h : A ⊆ ↑S),
(L.lhomWithConstants ↑A).substructureReduct (S.withConstants h) = S
theorem FirstOrder.Language.Substructure.subset_closure_withConstants E1 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] {A s : Set M},
A ⊆ ↑((FirstOrder.Language.Substructure.closure (L.withConstants ↑A)).toFun s)
theorem FirstOrder.Language.Substructure.closure_withConstants_eq E0 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] {A s : Set M},
(FirstOrder.Language.Substructure.closure (L.withConstants ↑A)).toFun s =
((FirstOrder.Language.Substructure.closure L).toFun (A ∪ s)).withConstants ⋯
def FirstOrder.Language.Hom.domRestrict E3 #
{L : FirstOrder.Language} →
{M : Type w} →
{N : Type u_1} →
[inst : L.Structure M] → [inst_1 : L.Structure N] → L.Hom M N → (p : L.Substructure M) → L.Hom (↥p) N
The restriction of a first-order hom to a substructure s ⊆ M gives a hom s → N.
theorem FirstOrder.Language.Hom.domRestrict_toFun E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type u_1} [inst : L.Structure M] [inst_1 : L.Structure N] (f : L.Hom M N)
(p : L.Substructure M) (a : ↥p), (f.domRestrict p) a = f ↑a
def FirstOrder.Language.Hom.codRestrict E3 #
{L : FirstOrder.Language} →
{M : Type w} →
{N : Type u_1} →
[inst : L.Structure M] →
[inst_1 : L.Structure N] → (p : L.Substructure N) → (f : L.Hom M N) → (∀ (c : M), f c ∈ p) → L.Hom M ↥p
A first-order hom f : M → N whose values lie in a substructure p ⊆ N can be restricted to a
hom M → p.
theorem FirstOrder.Language.Hom.codRestrict_toFun_coe E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type u_1} [inst : L.Structure M] [inst_1 : L.Structure N]
(p : L.Substructure N) (f : L.Hom M N) (h : ∀ (c : M), f c ∈ p) (c : M),
↑((FirstOrder.Language.Hom.codRestrict p f h) c) = f c
theorem FirstOrder.Language.Hom.comp_codRestrict E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type u_1} {P : Type u_2} [inst : L.Structure M] [inst_1 : L.Structure N]
[inst_2 : L.Structure P] (f : L.Hom M N) (g : L.Hom N P) (p : L.Substructure P) (h : ∀ (b : N), g b ∈ p),
(FirstOrder.Language.Hom.codRestrict p g h).comp f = FirstOrder.Language.Hom.codRestrict p (g.comp f) ⋯
theorem FirstOrder.Language.Hom.subtype_comp_codRestrict E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type u_1} [inst : L.Structure M] [inst_1 : L.Structure N] (f : L.Hom M N)
(p : L.Substructure N) (h : ∀ (b : M), f b ∈ p), p.subtype.toHom.comp (FirstOrder.Language.Hom.codRestrict p f h) = f
theorem FirstOrder.Language.Hom.domRestrict_comp_codRestrict E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type u_1} {P : Type u_2} [inst : L.Structure M] [inst_1 : L.Structure N]
[inst_2 : L.Structure P] (g : L.Hom N P) (f : L.Hom M N) (p : L.Substructure N) (h : ∀ (b : M), f b ∈ p),
(g.domRestrict p).comp (FirstOrder.Language.Hom.codRestrict p f h) = g.comp f
def FirstOrder.Language.Hom.range E3 #
{L : FirstOrder.Language} →
{M : Type w} → {N : Type u_1} → [inst : L.Structure M] → [inst_1 : L.Structure N] → L.Hom M N → L.Substructure N
The range of a first-order hom f : M → N is a submodule of N.
See Note [range copy pattern].
theorem FirstOrder.Language.Hom.range_coe E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type u_1} [inst : L.Structure M] [inst_1 : L.Structure N] (f : L.Hom M N),
↑f.range = Set.range ⇑f
theorem FirstOrder.Language.Hom.mem_range E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type u_1} [inst : L.Structure M] [inst_1 : L.Structure N] {f : L.Hom M N}
{x : N}, x ∈ f.range ↔ ∃ y, f y = x
theorem FirstOrder.Language.Hom.range_eq_map E1 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type u_1} [inst : L.Structure M] [inst_1 : L.Structure N] (f : L.Hom M N),
f.range = FirstOrder.Language.Substructure.map f ⊤
theorem FirstOrder.Language.Hom.mem_range_self E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type u_1} [inst : L.Structure M] [inst_1 : L.Structure N] (f : L.Hom M N)
(x : M), f x ∈ f.range
theorem FirstOrder.Language.Hom.range_id E0 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M], (FirstOrder.Language.Hom.id L M).range = ⊤
theorem FirstOrder.Language.Hom.range_comp E1 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type u_1} {P : Type u_2} [inst : L.Structure M] [inst_1 : L.Structure N]
[inst_2 : L.Structure P] (f : L.Hom M N) (g : L.Hom N P),
(g.comp f).range = FirstOrder.Language.Substructure.map g f.range
theorem FirstOrder.Language.Hom.range_comp_le_range E1 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type u_1} {P : Type u_2} [inst : L.Structure M] [inst_1 : L.Structure N]
[inst_2 : L.Structure P] (f : L.Hom M N) (g : L.Hom N P), (g.comp f).range ≤ g.range
theorem FirstOrder.Language.Hom.range_eq_top E1 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type u_1} [inst : L.Structure M] [inst_1 : L.Structure N] {f : L.Hom M N},
f.range = ⊤ ↔ Function.Surjective ⇑f
theorem FirstOrder.Language.Hom.range_le_iff_comap E1 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type u_1} [inst : L.Structure M] [inst_1 : L.Structure N] {f : L.Hom M N}
{p : L.Substructure N}, f.range ≤ p ↔ FirstOrder.Language.Substructure.comap f p = ⊤
theorem FirstOrder.Language.Hom.map_le_range E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type u_1} [inst : L.Structure M] [inst_1 : L.Structure N] {f : L.Hom M N}
{p : L.Substructure M}, FirstOrder.Language.Substructure.map f p ≤ f.range
def FirstOrder.Language.Hom.eqLocus E1 #
{L : FirstOrder.Language} →
{M : Type w} →
{N : Type u_1} → [inst : L.Structure M] → [inst_1 : L.Structure N] → L.Hom M N → L.Hom M N → L.Substructure M
The substructure of elements x : M such that f x = g x
theorem FirstOrder.Language.Hom.mem_eqLocus E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type u_1} [inst : L.Structure M] [inst_1 : L.Structure N]
{f g : L.Hom M N} {x : M}, x ∈ f.eqLocus g ↔ f x = g x
theorem FirstOrder.Language.Hom.eqOn_closure E1 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type u_1} [inst : L.Structure M] [inst_1 : L.Structure N]
{f g : L.Hom M N} {s : Set M},
Set.EqOn (⇑f) (⇑g) s → Set.EqOn ⇑f ⇑g ↑((FirstOrder.Language.Substructure.closure L).toFun s)
If two L.Homs are equal on a set, then they are equal on its substructure closure.
def FirstOrder.Language.Embedding.domRestrict E3 #
{L : FirstOrder.Language} →
{M : Type w} →
{N : Type u_1} →
[inst : L.Structure M] → [inst_1 : L.Structure N] → L.Embedding M N → (p : L.Substructure M) → L.Embedding (↥p) N
The restriction of a first-order embedding to a substructure s ⊆ M gives an embedding s → N.
theorem FirstOrder.Language.Embedding.domRestrict_apply E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type u_1} [inst : L.Structure M] [inst_1 : L.Structure N]
(f : L.Embedding M N) (p : L.Substructure M) (x : ↥p), (f.domRestrict p) x = f ↑x
def FirstOrder.Language.Embedding.codRestrict E3 #
{L : FirstOrder.Language} →
{M : Type w} →
{N : Type u_1} →
[inst : L.Structure M] →
[inst_1 : L.Structure N] →
(p : L.Substructure N) → (f : L.Embedding M N) → (∀ (c : M), f c ∈ p) → L.Embedding M ↥p
A first-order embedding f : M → N whose values lie in a substructure p ⊆ N can be restricted
to an embedding M → p.
theorem FirstOrder.Language.Embedding.codRestrict_apply E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type u_1} [inst : L.Structure M] [inst_1 : L.Structure N]
(p : L.Substructure N) (f : L.Embedding M N) {h : ∀ (c : M), f c ∈ p} (x : M),
↑((FirstOrder.Language.Embedding.codRestrict p f h) x) = f x
theorem FirstOrder.Language.Embedding.codRestrict_apply' E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type u_1} [inst : L.Structure M] [inst_1 : L.Structure N]
(p : L.Substructure N) (f : L.Embedding M N) {h : ∀ (c : M), f c ∈ p} (x : M),
(FirstOrder.Language.Embedding.codRestrict p f h) x = ⟨f x, ⋯⟩
theorem FirstOrder.Language.Embedding.comp_codRestrict E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type u_1} {P : Type u_2} [inst : L.Structure M] [inst_1 : L.Structure N]
[inst_2 : L.Structure P] (f : L.Embedding M N) (g : L.Embedding N P) (p : L.Substructure P) (h : ∀ (b : N), g b ∈ p),
(FirstOrder.Language.Embedding.codRestrict p g h).comp f = FirstOrder.Language.Embedding.codRestrict p (g.comp f) ⋯
theorem FirstOrder.Language.Embedding.subtype_comp_codRestrict E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type u_1} [inst : L.Structure M] [inst_1 : L.Structure N]
(f : L.Embedding M N) (p : L.Substructure N) (h : ∀ (b : M), f b ∈ p),
p.subtype.comp (FirstOrder.Language.Embedding.codRestrict p f h) = f
def FirstOrder.Language.Embedding.substructureEquivMap E1 #
{L : FirstOrder.Language} →
{M : Type w} →
{N : Type u_1} →
[inst : L.Structure M] →
[inst_1 : L.Structure N] →
(f : L.Embedding M N) → (s : L.Substructure M) → L.Equiv ↥s ↥(FirstOrder.Language.Substructure.map f.toHom s)
The equivalence between a substructure s and its image s.map f.toHom, where f is an
embedding.
theorem FirstOrder.Language.Embedding.substructureEquivMap_apply E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type u_1} [inst : L.Structure M] [inst_1 : L.Structure N]
(f : L.Embedding M N) (p : L.Substructure M) (x : ↥p), ↑((f.substructureEquivMap p) x) = f ↑x
theorem FirstOrder.Language.Embedding.subtype_substructureEquivMap E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type u_1} [inst : L.Structure M] [inst_1 : L.Structure N]
(f : L.Embedding M N) (s : L.Substructure M),
(FirstOrder.Language.Substructure.map f.toHom s).subtype.comp (f.substructureEquivMap s).toEmbedding =
f.comp s.subtype
def FirstOrder.Language.Embedding.equivRange E1 #
{L : FirstOrder.Language} →
{M : Type w} →
{N : Type u_1} →
[inst : L.Structure M] → [inst_1 : L.Structure N] → (f : L.Embedding M N) → L.Equiv M ↥f.toHom.range
The equivalence between the domain and the range of an embedding f.
theorem FirstOrder.Language.Embedding.equivRange_toEquiv_apply E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type u_1} [inst : L.Structure M] [inst_1 : L.Structure N]
(f : L.Embedding M N) (a : M),
f.equivRange.toEquiv a = (FirstOrder.Language.Embedding.codRestrict f.toHom.range f ⋯) a
theorem FirstOrder.Language.Embedding.equivRange_apply E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type u_1} [inst : L.Structure M] [inst_1 : L.Structure N]
(f : L.Embedding M N) (x : M), ↑(f.equivRange x) = f x
theorem FirstOrder.Language.Embedding.subtype_equivRange E0 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type u_1} [inst : L.Structure M] [inst_1 : L.Structure N]
(f : L.Embedding M N), f.toHom.range.subtype.comp f.equivRange.toEmbedding = f
theorem FirstOrder.Language.Equiv.toHom_range E1 #
∀ {L : FirstOrder.Language} {M : Type w} {N : Type u_1} [inst : L.Structure M] [inst_1 : L.Structure N]
(f : L.Equiv M N), f.toHom.range = ⊤
def FirstOrder.Language.Substructure.inclusion E3 #
{L : FirstOrder.Language} → {M : Type w} → [inst : L.Structure M] → {S T : L.Substructure M} → S ≤ T → L.Embedding ↥S ↥T
The embedding associated to an inclusion of substructures.
theorem FirstOrder.Language.Substructure.inclusion_self E0 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] (S : L.Substructure M),
FirstOrder.Language.Substructure.inclusion ⋯ = FirstOrder.Language.Embedding.refl L ↥S
theorem FirstOrder.Language.Substructure.coe_inclusion E0 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] {S T : L.Substructure M} (h : S ≤ T),
⇑(FirstOrder.Language.Substructure.inclusion h) = Set.inclusion h
theorem FirstOrder.Language.Substructure.range_subtype E1 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] (S : L.Substructure M), S.subtype.toHom.range = S
theorem FirstOrder.Language.Substructure.subtype_comp_inclusion E0 #
∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] {S T : L.Substructure M} (h : S ≤ T),
T.subtype.comp (FirstOrder.Language.Substructure.inclusion h) = S.subtype