Skip to content

Commit

Permalink
feat(ModelTheory): models_of_models_theory (#6566)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisHughes24 committed Sep 8, 2023
1 parent 4257c45 commit a58dc4f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Mathlib/ModelTheory/Satisfiability.lean
Expand Up @@ -353,6 +353,15 @@ theorem ModelsBoundedFormula.realize_sentence {φ : L.Sentence} (h : T ⊨ᵇ φ
exact Model.isSatisfiable M
#align first_order.language.Theory.models_bounded_formula.realize_sentence FirstOrder.Language.Theory.ModelsBoundedFormula.realize_sentence

theorem models_of_models_theory {T' : L.Theory}
(h : ∀ φ : L.Sentence, φ ∈ T' → T ⊨ᵇ φ)
{φ : L.Formula α} (hφ : T' ⊨ᵇ φ) : T ⊨ᵇ φ := by
simp only [models_sentence_iff] at h
intro M
have hM : M ⊨ T' := T'.model_iff.2 (fun ψ hψ => h ψ hψ M)
let M' : ModelType T' := ⟨M⟩
exact hφ M'

/-- An alternative statement of the Compactness Theorem. A formula `φ` is modeled by a
theory iff there is a finite subset `T0` of the theory such that `φ` is modeled by `T0` -/
theorem models_iff_finset_models {φ : L.Sentence} :
Expand Down

0 comments on commit a58dc4f

Please sign in to comment.