The Mathlib Handbook

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

The areas / V32. Logic, model theory and computability

Mathlib.ModelTheory.Definability

94 declarations and 2 deprecated aliases. Mathlib docs · Source

Definable Sets

This file defines what it means for a set over a first-order structure to be definable.

Main Definitions

  • Set.Definable is defined so that A.Definable L s indicates that the set s of a finite Cartesian power of M is definable with parameters in A.
  • Set.Definable₁ is defined so that A.Definable₁ L s indicates that (s : Set M) is definable with parameters in A.
  • Set.Definable₂ is defined so that A.Definable₂ L s indicates that (s : Set (M × M)) is definable with parameters in A.
  • A FirstOrder.Language.DefinableSet is defined so that L.DefinableSet A α is the Boolean algebra of subsets of α → M defined by formulas with parameters in A.
  • Set.TermDefinable functions are those equivalent to some term expressible in the language.
  • Set.TermDefinable₁ specialize this to case of unary functions.

Main Results

  • L.DefinableSet A α forms a BooleanAlgebra
  • Set.Definable.image_comp shows that definability is closed under projections in finite dimensions.
  • The Set.TermDefinable property is transitive, and TermDefinable functions are closed under composition.

theorem FirstOrder.Language.LEquiv.addEmptyConstants.congr_simp E1 #

∀ (L : FirstOrder.Language) (α : Type w') [ie : IsEmpty α],
  FirstOrder.Language.LEquiv.addEmptyConstants L α = FirstOrder.Language.LEquiv.addEmptyConstants L α

def Set.Definable E3 #

{M : Type w} → Set M → (L : FirstOrder.Language) → [L.Structure M] → {α : Type u₁} → Set (α → M) → Prop

A subset of a finite Cartesian product of a structure is definable over a set A when membership in the set is given by a first-order formula with parameters from A.

theorem Set.Definable.map_expansion E0 #

∀ {M : Type w} {A : Set M} {L : FirstOrder.Language} [inst : L.Structure M] {α : Type u₁} {s : Set (α → M)}
  {L' : FirstOrder.Language} [inst_1 : L'.Structure M],
  A.Definable L s → ∀ (φ : L →ᴸ L') [φ.IsExpansionOn M], A.Definable L' s

theorem Set.definable_iff_exists_formula_sum E1 #

∀ {M : Type w} {A : Set M} {L : FirstOrder.Language} [inst : L.Structure M] {α : Type u₁} {s : Set (α → M)},
  A.Definable L s ↔ ∃ φ, s = {v | φ.Realize (Sum.elim Subtype.val v)}

theorem Set.empty_definable_iff E0 #

∀ {M : Type w} {L : FirstOrder.Language} [inst : L.Structure M] {α : Type u₁} {s : Set (α → M)},
  ∅.Definable L s ↔ ∃ φ, s = Set.ofPred φ.Realize

theorem Set.definable_iff_empty_definable_with_params E1 #

∀ {M : Type w} {A : Set M} {L : FirstOrder.Language} [inst : L.Structure M] {α : Type u₁} {s : Set (α → M)},
  A.Definable L s ↔ ∅.Definable (L.withConstants ↑A) s

theorem Set.Definable.mono E1 #

∀ {M : Type w} {A : Set M} {L : FirstOrder.Language} [inst : L.Structure M] {α : Type u₁} {B : Set M} {s : Set (α → M)},
  A.Definable L s → A ⊆ B → B.Definable L s

theorem Set.definable_empty E0 #

∀ {M : Type w} {A : Set M} {L : FirstOrder.Language} [inst : L.Structure M] {α : Type u₁}, A.Definable L ∅

theorem Set.definable_univ E0 #

∀ {M : Type w} {A : Set M} {L : FirstOrder.Language} [inst : L.Structure M] {α : Type u₁}, A.Definable L Set.univ

theorem Set.Definable.inter E0 #

∀ {M : Type w} {A : Set M} {L : FirstOrder.Language} [inst : L.Structure M] {α : Type u₁} {f g : Set (α → M)},
  A.Definable L f → A.Definable L g → A.Definable L (f ∩ g)

theorem Set.Definable.union E0 #

∀ {M : Type w} {A : Set M} {L : FirstOrder.Language} [inst : L.Structure M] {α : Type u₁} {f g : Set (α → M)},
  A.Definable L f → A.Definable L g → A.Definable L (f ∪ g)

theorem Set.definable_finset_inf E1 #

∀ {M : Type w} {A : Set M} {L : FirstOrder.Language} [inst : L.Structure M] {α : Type u₁} {ι : Type u_2}
  {f : ι → Set (α → M)}, (∀ (i : ι), A.Definable L (f i)) → ∀ (s : Finset ι), A.Definable L (s.inf f)

theorem Set.definable_finset_sup E1 #

∀ {M : Type w} {A : Set M} {L : FirstOrder.Language} [inst : L.Structure M] {α : Type u₁} {ι : Type u_2}
  {f : ι → Set (α → M)}, (∀ (i : ι), A.Definable L (f i)) → ∀ (s : Finset ι), A.Definable L (s.sup f)

theorem Set.definable_biInter_finset E1 #

∀ {M : Type w} {A : Set M} {L : FirstOrder.Language} [inst : L.Structure M] {α : Type u₁} {ι : Type u_2}
  {f : ι → Set (α → M)}, (∀ (i : ι), A.Definable L (f i)) → ∀ (s : Finset ι), A.Definable L (⋂ i ∈ s, f i)

theorem Set.definable_biUnion_finset E1 #

∀ {M : Type w} {A : Set M} {L : FirstOrder.Language} [inst : L.Structure M] {α : Type u₁} {ι : Type u_2}
  {f : ι → Set (α → M)}, (∀ (i : ι), A.Definable L (f i)) → ∀ (s : Finset ι), A.Definable L (⋃ i ∈ s, f i)

theorem Set.definable_iInter_of_finite E1 #

∀ {M : Type w} {A : Set M} {L : FirstOrder.Language} [inst : L.Structure M] {α : Type u₁} {ι : Type u_2} [Finite ι]
  {f : ι → Set (α → M)}, (∀ (i : ι), A.Definable L (f i)) → A.Definable L (⋂ i, f i)

theorem Set.definable_iUnion_of_finite E1 #

∀ {M : Type w} {A : Set M} {L : FirstOrder.Language} [inst : L.Structure M] {α : Type u₁} {ι : Type u_2} [Finite ι]
  {f : ι → Set (α → M)}, (∀ (i : ι), A.Definable L (f i)) → A.Definable L (⋃ i, f i)

theorem Set.Definable.compl E0 #

∀ {M : Type w} {A : Set M} {L : FirstOrder.Language} [inst : L.Structure M] {α : Type u₁} {s : Set (α → M)},
  A.Definable L s → A.Definable L sᶜ

theorem Set.Definable.sdiff E0 #

∀ {M : Type w} {A : Set M} {L : FirstOrder.Language} [inst : L.Structure M] {α : Type u₁} {s t : Set (α → M)},
  A.Definable L s → A.Definable L t → A.Definable L (s \ t)

theorem Set.Definable.himp E0 #

∀ {M : Type w} {A : Set M} {L : FirstOrder.Language} [inst : L.Structure M] {α : Type u₁} {s t : Set (α → M)},
  A.Definable L s → A.Definable L t → A.Definable L (s ⇨ t)

theorem Set.Definable.preimage_comp E1 #

∀ {M : Type w} {A : Set M} {L : FirstOrder.Language} [inst : L.Structure M] {α : Type u₁} {β : Type u_1} (f : α → β)
  {s : Set (α → M)}, A.Definable L s → A.Definable L ((fun g ↦ g ∘ f) ⁻¹' s)

theorem Set.Definable.image_comp_equiv E1 #

∀ {M : Type w} {A : Set M} {L : FirstOrder.Language} [inst : L.Structure M] {α : Type u₁} {β : Type u_1}
  {s : Set (β → M)}, A.Definable L s → ∀ (f : α ≃ β), A.Definable L ((fun g ↦ g ∘ ⇑f) '' s)

theorem Set.definable_iff_finitely_definable E1 #

∀ {M : Type w} {A : Set M} {L : FirstOrder.Language} [inst : L.Structure M] {α : Type u₁} {s : Set (α → M)},
  A.Definable L s ↔ ∃ A0, ↑A0 ⊆ A ∧ (↑A0).Definable L s

theorem Set.Definable.image_comp_sumInl_fin E2 #

∀ {M : Type w} {A : Set M} {L : FirstOrder.Language} [inst : L.Structure M] {α : Type u₁} (m : ℕ)
  {s : Set (α ⊕ Fin m → M)}, A.Definable L s → A.Definable L ((fun g ↦ g ∘ Sum.inl) '' s)

This lemma is only intended as a helper for Definable.image_comp.

theorem Set.Definable.image_comp_embedding E1 #

∀ {M : Type w} {A : Set M} {L : FirstOrder.Language} [inst : L.Structure M] {α : Type u₁} {β : Type u_1}
  {s : Set (β → M)}, A.Definable L s → ∀ (f : α ↪ β) [Finite β], A.Definable L ((fun g ↦ g ∘ ⇑f) '' s)

Shows that definability is closed under finite projections.

theorem Set.Definable.image_comp E3 #

∀ {M : Type w} {A : Set M} {L : FirstOrder.Language} [inst : L.Structure M] {α : Type u₁} {β : Type u_1}
  {s : Set (β → M)}, A.Definable L s → ∀ (f : α → β) [Finite α] [Finite β], A.Definable L ((fun g ↦ g ∘ f) '' s)

Shows that definability is closed under finite projections.

theorem Set.Definable.exists_of_finite E1 #

∀ {M : Type w} {A : Set M} {L : FirstOrder.Language} [inst : L.Structure M] {α : Type u₁} {β : Type u_1} [Finite β]
  {S : Set (α ⊕ β → M)}, A.Definable L S → A.Definable L {v | ∃ u, Sum.elim v u ∈ S}

Finite existential quantifiers preserve definablity.

theorem Set.Definable.forall_of_finite E1 #

∀ {M : Type w} {A : Set M} {L : FirstOrder.Language} [inst : L.Structure M] {α : Type u₁} {β : Type u_1} [Finite β]
  {S : Set (α ⊕ β → M)}, A.Definable L S → A.Definable L {v | ∀ (u : β → M), Sum.elim v u ∈ S}

Finite universal quantifiers preserve definablity.

def Set.Definable₁ E3 #

{M : Type w} → Set M → (L : FirstOrder.Language) → [L.Structure M] → Set M → Prop

A 1-dimensional version of Definable, for Set M.

def Set.Definable₂ E3 #

{M : Type w} → Set M → (L : FirstOrder.Language) → [L.Structure M] → Set (M × M) → Prop

A 2-dimensional version of Definable, for Set (M × M).

theorem Set.Definable.singleton E1 #

∀ {M : Type w} (L : FirstOrder.Language) [inst : L.Structure M] (a : M), {a}.Definable₁ L {a}

A singleton is definable by parameter as itself.

theorem Set.Definable.singleton_of_mem E1 #

∀ {M : Type w} (L : FirstOrder.Language) [inst : L.Structure M] {a : M} {A : Set M}, a ∈ A → A.Definable₁ L {a}

A singleton {a} is definable over any set A that contains a.

theorem Set.Definable.diagonal E1 #

∀ {M : Type w} (L : FirstOrder.Language) [inst : L.Structure M] (A : Set M), A.Definable₂ L (Set.diagonal M)

The 2-dimensional diagonal is definable independent from parameters.

def FirstOrder.Language.DefinableSet E3 #

(L : FirstOrder.Language) → {M : Type w} → [L.Structure M] → Set M → Type u₁ → Type (max 0 u₁ w)

Definable sets are subsets of finite Cartesian products of a structure such that membership is given by a first-order formula.

instance FirstOrder.Language.DefinableSet.instSetLike E0 #

{L : FirstOrder.Language} →
  {M : Type w} → [inst : L.Structure M] → {A : Set M} → {α : Type u₁} → SetLike (L.DefinableSet A α) (α → M)

instance FirstOrder.Language.DefinableSet.instPartialOrder E0 #

{L : FirstOrder.Language} →
  {M : Type w} → [inst : L.Structure M] → {A : Set M} → {α : Type u₁} → PartialOrder (L.DefinableSet A α)

instance FirstOrder.Language.DefinableSet.instTop E0 #

{L : FirstOrder.Language} →
  {M : Type w} → [inst : L.Structure M] → {A : Set M} → {α : Type u₁} → Top (L.DefinableSet A α)

instance FirstOrder.Language.DefinableSet.instBot E0 #

{L : FirstOrder.Language} →
  {M : Type w} → [inst : L.Structure M] → {A : Set M} → {α : Type u₁} → Bot (L.DefinableSet A α)

instance FirstOrder.Language.DefinableSet.instSup E0 #

{L : FirstOrder.Language} →
  {M : Type w} → [inst : L.Structure M] → {A : Set M} → {α : Type u₁} → Max (L.DefinableSet A α)

instance FirstOrder.Language.DefinableSet.instInf E0 #

{L : FirstOrder.Language} →
  {M : Type w} → [inst : L.Structure M] → {A : Set M} → {α : Type u₁} → Min (L.DefinableSet A α)

instance FirstOrder.Language.DefinableSet.instCompl E0 #

{L : FirstOrder.Language} →
  {M : Type w} → [inst : L.Structure M] → {A : Set M} → {α : Type u₁} → Compl (L.DefinableSet A α)

instance FirstOrder.Language.DefinableSet.instSDiff E0 #

{L : FirstOrder.Language} →
  {M : Type w} → [inst : L.Structure M] → {A : Set M} → {α : Type u₁} → SDiff (L.DefinableSet A α)

instance FirstOrder.Language.DefinableSet.instHImp E0 #

{L : FirstOrder.Language} →
  {M : Type w} → [inst : L.Structure M] → {A : Set M} → {α : Type u₁} → HImp (L.DefinableSet A α)

instance FirstOrder.Language.DefinableSet.instInhabited E0 #

{L : FirstOrder.Language} →
  {M : Type w} → [inst : L.Structure M] → {A : Set M} → {α : Type u₁} → Inhabited (L.DefinableSet A α)

theorem FirstOrder.Language.DefinableSet.le_iff E0 #

∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] {A : Set M} {α : Type u₁} {s t : L.DefinableSet A α},
  s ≤ t ↔ ↑s ⊆ ↑t

theorem FirstOrder.Language.DefinableSet.mem_top E0 #

∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] {A : Set M} {α : Type u₁} {x : α → M}, x ∈ ⊤

theorem FirstOrder.Language.DefinableSet.notMem_bot E0 #

∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] {A : Set M} {α : Type u₁} {x : α → M}, x ∉ ⊥

theorem FirstOrder.Language.DefinableSet.mem_sup E0 #

∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] {A : Set M} {α : Type u₁} {s t : L.DefinableSet A α}
  {x : α → M}, x ∈ s ⊔ t ↔ x ∈ s ∨ x ∈ t

theorem FirstOrder.Language.DefinableSet.mem_inf E0 #

∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] {A : Set M} {α : Type u₁} {s t : L.DefinableSet A α}
  {x : α → M}, x ∈ s ⊓ t ↔ x ∈ s ∧ x ∈ t

theorem FirstOrder.Language.DefinableSet.mem_compl E0 #

∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] {A : Set M} {α : Type u₁} {s : L.DefinableSet A α}
  {x : α → M}, x ∈ sᶜ ↔ x ∉ s

theorem FirstOrder.Language.DefinableSet.mem_sdiff E0 #

∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] {A : Set M} {α : Type u₁} {s t : L.DefinableSet A α}
  {x : α → M}, x ∈ s \ t ↔ x ∈ s ∧ x ∉ t

theorem FirstOrder.Language.DefinableSet.coe_top E0 #

∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] {A : Set M} {α : Type u₁}, ↑⊤ = Set.univ

theorem FirstOrder.Language.DefinableSet.coe_bot E0 #

∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] {A : Set M} {α : Type u₁}, ↑⊥ = ∅

theorem FirstOrder.Language.DefinableSet.coe_sup E0 #

∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] {A : Set M} {α : Type u₁} (s t : L.DefinableSet A α),
  ↑(s ⊔ t) = ↑s ∪ ↑t

theorem FirstOrder.Language.DefinableSet.coe_inf E0 #

∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] {A : Set M} {α : Type u₁} (s t : L.DefinableSet A α),
  ↑(s ⊓ t) = ↑s ∩ ↑t

theorem FirstOrder.Language.DefinableSet.coe_compl E0 #

∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] {A : Set M} {α : Type u₁} (s : L.DefinableSet A α),
  ↑sᶜ = (↑s)ᶜ

theorem FirstOrder.Language.DefinableSet.coe_sdiff E0 #

∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] {A : Set M} {α : Type u₁} (s t : L.DefinableSet A α),
  ↑(s \ t) = ↑s \ ↑t

theorem FirstOrder.Language.DefinableSet.coe_himp E0 #

∀ {L : FirstOrder.Language} {M : Type w} [inst : L.Structure M] {A : Set M} {α : Type u₁} (s t : L.DefinableSet A α),
  ↑(s ⇨ t) = ↑s ⇨ ↑t

instance FirstOrder.Language.DefinableSet.instBooleanAlgebra E0 #

{L : FirstOrder.Language} →
  {M : Type w} → [inst : L.Structure M] → {A : Set M} → {α : Type u₁} → BooleanAlgebra (L.DefinableSet A α)

def Set.DefinableFun E1 #

{M : Type u_1} → (L : FirstOrder.Language) → [L.Structure M] → {α : Type u_2} → Set M → ((α → M) → M) → Prop

A function from tuples of elements of M to M is definable if its graph is definable.

def Set.DefinableMap E1 #

{M : Type u_1} →
  (L : FirstOrder.Language) → [L.Structure M] → {α : Type u_2} → {β : Type u_3} → Set M → ((α → M) → β → M) → Prop

A family of functions is definable when each coordinate is definable.

theorem Set.DefinableFun.mono E1 #

∀ {M : Type u_1} {L : FirstOrder.Language} [inst : L.Structure M] {α : Type u_2} {A : Set M} {f : (α → M) → M}
  {B : Set M}, Set.DefinableFun L A f → A ⊆ B → Set.DefinableFun L B f

theorem Set.DefinableFun.of_empty E1 #

∀ {M : Type u_1} {L : FirstOrder.Language} [inst : L.Structure M] {α : Type u_2} {A : Set M} {f : (α → M) → M},
  Set.DefinableFun L ∅ f → Set.DefinableFun L A f

theorem Set.empty_definableFun_iff E0 #

∀ {M : Type u_1} {L : FirstOrder.Language} [inst : L.Structure M] {α : Type u_2} {f : (α → M) → M},
  Set.DefinableFun L ∅ f ↔ ∃ φ, Function.tupleGraph f = Set.ofPred φ.Realize

theorem Set.definableFun_iff_empty_definableFun_with_params E1 #

∀ {M : Type u_1} {L : FirstOrder.Language} [inst : L.Structure M] {α : Type u_2} {A : Set M} {f : (α → M) → M},
  Set.DefinableFun L A f ↔ Set.DefinableFun (L.withConstants ↑A) ∅ f

theorem FirstOrder.Language.Term.definableFun_realize E1 #

∀ {M : Type u_1} {L : FirstOrder.Language} [inst : L.Structure M] {α : Type u_2} (t : L.Term α),
  Set.DefinableFun L ∅ fun v ↦ FirstOrder.Language.Term.realize v t

A term is a definable function.

theorem Set.DefinableFun.fun_symbol E1 #

∀ {M : Type u_1} {L : FirstOrder.Language} [inst : L.Structure M] {n : ℕ} (f : L.Functions n),
  Set.DefinableFun L ∅ (FirstOrder.Language.Structure.funMap f)

A function symbol is a definable function.

theorem FirstOrder.Language.definableFun_var E1 #

∀ {M : Type u_1} (L : FirstOrder.Language) [inst : L.Structure M] {α : Type u_2} (i : α),
  Set.DefinableFun L ∅ fun v ↦ v i

A coordinate projection is a definable function.

theorem Set.DefinableFun.proj E1 #

∀ {M : Type u_1} (L : FirstOrder.Language) [inst : L.Structure M] {α : Type u_2} {A : Set M} {i : α},
  Set.DefinableFun L A fun v ↦ v i

theorem FirstOrder.Language.definableFun_const E1 #

∀ {M : Type u_1} (L : FirstOrder.Language) [inst : L.Structure M] {A : Set M} {a : M} (γ : Type u_4),
  a ∈ A → Set.DefinableFun L A fun x ↦ a

A constant function is a definable function.

theorem Set.Definable.preimage_map E1 #

∀ {M : Type u_1} {L : FirstOrder.Language} [inst : L.Structure M] {A : Set M} {α : Type u_4} {β : Type u_5} [Finite β]
  {F : (α → M) → β → M}, Set.DefinableMap L A F → ∀ {S : Set (β → M)}, A.Definable L S → A.Definable L (F ⁻¹' S)

The preimage of a definable set under a definable map is definable.

theorem Set.DefinableFun.comp E1 #

∀ {M : Type u_1} {L : FirstOrder.Language} [inst : L.Structure M] {α : Type u_2} {β : Type u_3} {A : Set M}
  {f : (α → M) → M} [Finite α] {g : (β → M) → α → M},
  Set.DefinableMap L A g → Set.DefinableFun L A f → Set.DefinableFun L A fun v ↦ f (g v)

theorem Set.DefinableFun.ite E1 #

∀ {M : Type u_1} {L : FirstOrder.Language} [inst : L.Structure M] {α : Type u_2} {A : Set M} {f : (α → M) → M}
  {p : (α → M) → Prop} {g : (α → M) → M} [inst_1 : DecidablePred p],
  A.Definable L (Set.ofPred p) →
    Set.DefinableFun L A f → Set.DefinableFun L A g → Set.DefinableFun L A fun v ↦ if p v then f v else g v

theorem Set.DefinableFun.ofPred_eq E0 #

∀ {M : Type u_1} {L : FirstOrder.Language} [inst : L.Structure M] {α : Type u_2} {A : Set M} {f g : (α → M) → M},
  Set.DefinableFun L A f → Set.DefinableFun L A g → A.Definable L {v | f v = g v}

The set where two definable functions agree is definable.

theorem Set.DefinableFun.ofPred_eq_const E1 #

∀ {M : Type u_1} {L : FirstOrder.Language} [inst : L.Structure M] {α : Type u_2} {A : Set M} {f : (α → M) → M},
  Set.DefinableFun L A f → ∀ {a : M}, a ∈ A → A.Definable L {v | f v = a}

The preimage of a constant under a definable function is definable.

def Set.TermDefinable E3 #

{M : Type w} → Set M → (L : FirstOrder.Language) → [L.Structure M] → {α : Type u₁} → ((α → M) → M) → Prop

A function from a Cartesian power of a structure to that structure is term-definable over a set A when the value of the function is given by a term with constants A.

theorem Set.TermDefinable.definable_tupleGraph E1 #

∀ {M : Type w} (A : Set M) (L : FirstOrder.Language) [inst : L.Structure M] {α : Type u₁} {f : (α → M) → M},
  A.TermDefinable L f → A.Definable L (Function.tupleGraph f)

Every TermDefinable function has a tupleGraph that is definable.

theorem Set.TermDefinable.map_expansion E0 #

∀ {M : Type w} {A : Set M} {L : FirstOrder.Language} {L' : FirstOrder.Language} [inst : L.Structure M]
  [inst_1 : L'.Structure M] {α : Type u₁} {f : (α → M) → M},
  A.TermDefinable L f → ∀ (φ : L →ᴸ L') [φ.IsExpansionOn M], A.TermDefinable L' f

theorem Set.termDefinable_empty_iff E0 #

∀ {M : Type w} {L : FirstOrder.Language} [inst : L.Structure M] {α : Type u₁} {f : (α → M) → M},
  ∅.TermDefinable L f ↔ ∃ φ, f = fun v ↦ FirstOrder.Language.Term.realize v φ

theorem Set.termDefinable_empty_withConstants_iff E0 #

∀ {M : Type w} {A : Set M} {L : FirstOrder.Language} [inst : L.Structure M] {α : Type u₁} {f : (α → M) → M},
  ∅.TermDefinable (L.withConstants ↑A) f ↔ A.TermDefinable L f

theorem Set.TermDefinable.mono E1 #

∀ {M : Type w} {A : Set M} {L : FirstOrder.Language} [inst : L.Structure M] {α : Type u₁} {B : Set M} {f : (α → M) → M},
  A.TermDefinable L f → A ⊆ B → B.TermDefinable L f

theorem Set.TermDefinable.trans E1 #

∀ {M : Type w} {A : Set M} {L : FirstOrder.Language} {L' : FirstOrder.Language} [inst : L.Structure M]
  [inst_1 : L'.Structure M] {β : Type u_1} {f : (β → M) → M},
  A.TermDefinable L f →
    (∀ {n : ℕ} (g : (L.withConstants ↑A).Functions n),
        A.TermDefinable L' fun v ↦ FirstOrder.Language.Term.realize v g.term) →
      A.TermDefinable L' f

TermDefinable is transitive. If f is TermDefinable in a structure S on L, and all of the functions' realizations on S are TermDefinable on a structure T on L', then f is TermDefinable on T in L'.

def Set.TermDefinable₁ E3 #

{M : Type w} → {A : Set M} → (L : FirstOrder.Language) → [L.Structure M] → (M → M) → Prop

A function from a structure to itself is term-definable over a set A when the value of the function is given by a term with constants A. Like TermDefinable but specialized for unary functions in order to write M → M instead of (Unit → M) → M.

theorem Set.termDefinable₁_iff_termDefinable E1 #

∀ {M : Type w} {A : Set M} {L : FirstOrder.Language} [inst : L.Structure M] (f : M → M),
  Set.TermDefinable₁ L f ↔ A.TermDefinable L fun v ↦ f (v ())

TermDefinable₁ is defined as TermDefinable on the Unit index type.

theorem Set.TermDefinable₁.termDefinable E1 #

∀ {M : Type w} {A : Set M} {L : FirstOrder.Language} [inst : L.Structure M] (f : M → M),
  Set.TermDefinable₁ L f → A.TermDefinable L fun v ↦ f (v ())

Alias of the forward direction of Set.termDefinable₁_iff_termDefinable.


TermDefinable₁ is defined as TermDefinable on the Unit index type.

theorem Set.TermDefinable.termDefinable₁ E1 #

∀ {M : Type w} {A : Set M} {L : FirstOrder.Language} [inst : L.Structure M] (f : M → M),
  (A.TermDefinable L fun v ↦ f (v ())) → Set.TermDefinable₁ L f

Alias of the reverse direction of Set.termDefinable₁_iff_termDefinable.


TermDefinable₁ is defined as TermDefinable on the Unit index type.

theorem Set.termDefinable₁_iff_exists_term E1 #

∀ {M : Type w} {A : Set M} {L : FirstOrder.Language} [inst : L.Structure M] {f : M → M},
  Set.TermDefinable₁ L f ↔ ∃ φ, f = (fun v ↦ FirstOrder.Language.Term.realize v φ) ∘ Function.const Unit

theorem Set.TermDefinable₁.definable₂_graph E1 #

∀ {M : Type w} {A : Set M} {L : FirstOrder.Language} [inst : L.Structure M] {f : M → M},
  Set.TermDefinable₁ L f → A.Definable₂ L (Function.graph f)

A TermDefinable₁ function has a graph that's Definable₂.

theorem Set.TermDefinable₁.id E2 #

∀ {M : Type w} {A : Set M} {L : FirstOrder.Language} [inst : L.Structure M], Set.TermDefinable₁ L id

The identity function is TermDefinable₁

theorem Set.TermDefinable.const E1 #

∀ {M : Type w} {A : Set M} {L : FirstOrder.Language} [inst : L.Structure M] {α : Type u₁}
  (C : (L.withConstants ↑A).Constants), A.TermDefinable L (Function.const (α → M) ↑C)

Constant functions are TermDefinable, assuming the constant value is a language constant.

theorem Set.TermDefinable₁.const E1 #

∀ {M : Type w} {A : Set M} {L : FirstOrder.Language} [inst : L.Structure M] (C : (L.withConstants ↑A).Constants),
  Set.TermDefinable₁ L (Function.const M ↑C)

Constant functions are TermDefinable₁, assuming the constant value is a language constant.

theorem Set.TermDefinable.comp E1 #

∀ {M : Type w} {A : Set M} {L : FirstOrder.Language} [inst : L.Structure M] {α : Type u₁} {β : Type u_1}
  {f : (α → M) → M} {g : α → (β → M) → M},
  A.TermDefinable L f → (∀ (i : α), A.TermDefinable L (g i)) → A.TermDefinable L fun b ↦ f fun x ↦ g x b

A k-ary TermDefinable function composed with k TermDefinable others is TermDefinable.

theorem Set.TermDefinable₁.comp E1 #

∀ {M : Type w} {A : Set M} {L : FirstOrder.Language} [inst : L.Structure M] {f g : M → M},
  Set.TermDefinable₁ L f → Set.TermDefinable₁ L g → Set.TermDefinable₁ L (f ∘ g)

TermDefinable₁ functions are closed under composition.

theorem Set.TermDefinable₁.comp_termDefinable E1 #

∀ {M : Type w} {A : Set M} {L : FirstOrder.Language} [inst : L.Structure M] {α : Type u₁} {f : M → M} {g : (α → M) → M},
  Set.TermDefinable₁ L f → A.TermDefinable L g → A.TermDefinable L (f ∘ g)

A TermDefinable function postcomposed with TermDefinable₁ is TermDefinable.

Deprecated aliases

NameNew nameSince
Set.DefinableFun.setOf_eqSet.DefinableFun.ofPred_eq2026-07-09
Set.DefinableFun.setOf_eq_constSet.DefinableFun.ofPred_eq_const2026-07-09