@@ -230,19 +230,14 @@ theorem partialType_completeTheory_iff_finitelyRealizable
230230 have hψN : ψ.Realize v := by
231231 simp only [Formula.realize_iInf, Subtype.forall, ψ]
232232 aesop
233- have hψexN : ψ.exClosure.Realize N := by
234- letI : (constantsOn α).Structure N := constantsOn.structure v
235- exact Formula.realize_exClosure_of_realize_equivSentence
236- ((Formula.realize_equivSentence N ψ).2 hψN)
233+ have hψexN : ψ.exClosure.Realize N :=
234+ (Formula.realize_exClosure_iff'.2 ⟨v, hψN⟩)
237235 have hψexM : ψ.exClosure.Realize M :=
238236 ((L.realize_iff_of_model_completeTheory M N ψ.exClosure).1 hψexN)
239- obtain ⟨vM, hvM⟩ :=
240- (Formula.exists_realize_equivSentence_iff_realize_exClosure.mpr hψexM)
241- have hψM : ψ.Realize vM := by
242- simpa [Equiv.symm_apply_apply] using
243- (Formula.realize_equivSentence_symm M (Formula.equivSentence ψ) vM).mpr hvM
244- exists vM
245- aesop
237+ obtain ⟨vM, hψM⟩ := Formula.realize_exClosure_iff'.1 hψexM
238+ refine ⟨vM, fun φ hφ => ?_⟩
239+ simp only [Formula.realize_iInf, Subtype.forall, ψ] at hψM
240+ exact hψM φ hφ
246241 · intro h
247242 rw [partialType_iff_finitelyRealizable S]
248243 intro s hs
@@ -366,15 +361,14 @@ theorem partialTypeOver_iff_realizedIn_elementaryExtension
366361 ∀ φ ∈ S,
367362 ((L.lhomWithConstantsMap ((↑) : A → M)).onFormula φ).Realize v := by
368363 classical
364+ haveI : (LHom.constantsOnMap ((↑) : A → M)).IsExpansionOn M :=
365+ constantsOnMap_isExpansionOn rfl
366+ haveI : (L.lhomWithConstantsMap ((↑) : A → M)).IsExpansionOn M :=
367+ LHom.sumMap_isExpansionOn _ _ _
369368 constructor
370369 · intro hS
371370 let S' : Set (L[[M]].Formula α) := mapSet ((↑) : A → M) S
372- haveI : (LHom.constantsOnMap ((↑) : A → M)).IsExpansionOn M :=
373- constantsOnMap_isExpansionOn rfl
374- haveI : (L.lhomWithConstantsMap ((↑) : A → M)).IsExpansionOn M :=
375- LHom.sumMap_isExpansionOn _ _ _
376371 have hS' : ((L.elementaryDiagram M).IsConsistentWith S') := by
377- change ((L[[M]].completeTheory M).IsConsistentWith S')
378372 simpa [S'] using
379373 (partialType_completeTheory_map ((↑) : A → M) hS)
380374 let p : (L.elementaryDiagram M).PartialType α := ofSet S' hS'
@@ -396,30 +390,17 @@ theorem partialTypeOver_iff_realizedIn_elementaryExtension
396390 have : ψ'.Realize v := by
397391 simp only [LHom.realize_onFormula, Formula.realize_iInf, Subtype.forall, ψ', ψ]
398392 intro φ hφ
399- specialize h φ (mem_of_subset_of_mem hs hφ)
400- simpa [ψ', ψ] using h
393+ simpa [ψ', ψ] using h φ (mem_of_subset_of_mem hs hφ)
401394 let ψ'' : L[[M]].Sentence := ψ'.exClosure
402395 have hψ'' : ψ''.Realize N := by
403- simp only [Formula.realize_exClosure, ψ'']
404- exists v ∘ (↑)
405- exact (BoundedFormula.realize_restrictFreeVar'
406- (s := (ψ'.freeVarFinset : Set α)) Set.Subset.rfl (v := v)).2 this
396+ rw [Formula.realize_exClosure_iff']
397+ exists v
407398 haveI : (L.lhomWithConstants M).IsExpansionOn ↑N :=
408399 LHom.isExpansionOn_reduct (L.lhomWithConstants M) N
409- rw [realize_iff_of_model_completeTheory M N] at hψ''
410- rw [Formula.realize_exClosure] at hψ''
400+ rw [realize_iff_of_model_completeTheory M N, Formula.realize_exClosure_iff'] at hψ''
411401 obtain ⟨w, hw⟩ := hψ''
412- let vM : α → M := fun a =>
413- if hmem : a ∈ ψ'.freeVarFinset then w ⟨a, hmem⟩ else Classical.choice inferInstance
414- have hwEq : vM ∘ (↑) = w := by aesop
415- haveI : (LHom.constantsOnMap ((↑) : A → M)).IsExpansionOn M :=
416- constantsOnMap_isExpansionOn rfl
417- haveI : (L.lhomWithConstantsMap ((↑) : A → M)).IsExpansionOn M :=
418- LHom.sumMap_isExpansionOn _ _ _
419- exists vM
420- suffices hψ' : ψ'.Realize vM by
421- simpa [ψ', ψ] using hψ'
422- exact (BoundedFormula.realize_restrictFreeVar vM (congrFun (id (Eq.symm hwEq)))).mp hw
402+ exists w
403+ simpa [ψ', ψ] using hw
423404
424405end PartialType
425406
0 commit comments