Download data/lean/OAI/Computability/DegreeRigidity/SetModels/ElementaryCollapsePoset.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 6.3 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Computability/DegreeRigidity/SetModels/ElementaryCollapsePoset.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Computability/DegreeRigidity/SetModels/ElementaryCollapsePoset.lean
-
curl -L -o ElementaryCollapsePoset.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Computability/DegreeRigidity/SetModels/ElementaryCollapsePoset.lean
6.3 kB
| import OAI.Computability.DegreeRigidity.SetModels.ElementaryDefinableSets | |
| import OAI.Computability.DegreeRigidity.Representation.AmbientDegreeSyntax | |
| import OAI.Computability.DegreeRigidity.SetModels.InternalCollapseConditions | |
| namespace OAI | |
| namespace TuringRigidity.ElementaryModel | |
| open BoundedSetTheory TransitiveNameModel RelationCollapse SentenceForm | |
| open FullSetForcing InternalCollapse | |
| universe u | |
| theorem definedSet_univ (s : β) (p : Formula) (e : β β ZFSet.{u}) : | |
| (definedSet s p).Sat Set.univ e β β x, x β e s β p.Eval (cons x e) := by | |
| simp only [definedSet,sat_all,sat_iff,Sat,bounded_univ,cons_zero,cons_succ, | |
| Set.mem_univ,forall_const] | |
| theorem collapse_bounded_eval (a : β β ZFSet.{u}) (p : Formula) | |
| (e : β β ZFSet.{u}) (he : β i, e i β hullSet a) : | |
| p.Eval (fun i => structureMap (hullSet a) (e i)) β p.Eval e := by | |
| have h := collapsed_hull_elementary a (fromBounded p) e he | |
| rw [bounded_sat,Formula.absolute _ _ (collapsed_transitive _) _ | |
| (fun i => (mem_collapsed _ _).mpr β¨e i,he i,rflβ©),bounded_univ] at h | |
| exact h | |
| noncomputable def ambientConditions (A : ZFSet.{u}) : ZFSet.{u} := | |
| ZFSet.sep (Prefix A) (ZFSet.powerset (ZFSet.prod ZFSet.omega A)) | |
| theorem mem_ambientConditions (A p : ZFSet.{u}) : p β ambientConditions A β Prefix A p := by | |
| rw [ambientConditions,ZFSet.mem_sep] | |
| exact β¨And.right,fun h => β¨ZFSet.mem_powerset.mpr (prefix_subset h),hβ©β© | |
| theorem ambientConditions_def (A c : ZFSet.{u}) : | |
| (definedSet 0 (prefixFormula 3 2 0)).Sat Set.univ | |
| (cons c (cons A (fun _ => ZFSet.omega))) β c = ambientConditions A := by | |
| rw [definedSet_univ] | |
| have hs (p : ZFSet.{u}) := eval_prefixFormula 3 2 0 | |
| (cons p (cons c (cons A (fun _ => ZFSet.omega)))) rfl | |
| simp only [hs,cons_zero,cons_succ] | |
| exact β¨fun h => ZFSet.ext (fun p => (h p).trans (mem_ambientConditions A p).symm), | |
| fun h p => h βΈ mem_ambientConditions A pβ© | |
| theorem ambientConditions_mem_hull (a : β β ZFSet.{u}) | |
| (hΟ : ZFSet.omega β hullSet a) {A : ZFSet.{u}} (hA : A β hullSet a) : | |
| ambientConditions A β hullSet a := by | |
| exact unique_definable_mem a (definedSet 0 (prefixFormula 3 2 0)) | |
| (cons A (fun _ => ZFSet.omega)) (by intro i; cases i <;> assumption) | |
| _ ((ambientConditions_def A _).mpr rfl) (fun c hc => (ambientConditions_def A c).mp hc) | |
| theorem collapse_ambientConditions (a : β β ZFSet.{u}) | |
| (hn : β n, natSet.{u} n β hullSet a) (hΟ : ZFSet.omega β hullSet a) | |
| {A : ZFSet.{u}} (hA : A β hullSet a) : | |
| β p, p β structureMap (hullSet a) (ambientConditions A) β | |
| p β collapsed (hullSet a) β§ Prefix (structureMap (hullSet a) A) p := by | |
| let e := cons (ambientConditions A) (cons A (fun _ => ZFSet.omega)) | |
| have hc := ambientConditions_mem_hull a hΟ hA | |
| have he : β i, e i β hullSet a := by | |
| intro i; rcases i with _|_|i | |
| exact hc | |
| exact hA | |
| exact hΟ | |
| have ht := (collapsed_hull_elementary a (definedSet 0 (prefixFormula 3 2 0)) e he).mpr | |
| ((ambientConditions_def A _).mpr rfl) | |
| have hm := collapsed_transitive (hullSet a) | |
| have hei : β i, structureMap (hullSet a) (e i) β collapsed (hullSet a) := | |
| fun i => (mem_collapsed _ _).mpr β¨e i,he i,rflβ© | |
| have h := (definedSet_spec _ hm 0 _ _ hei).mp ht | |
| have hΟ' := hull_omega_fixed a hn hΟ | |
| have hs (p : ZFSet.{u}) (hp : p β collapsed (hullSet a)) : | |
| p β structureMap (hullSet a) (ambientConditions A) β | |
| Prefix (structureMap (hullSet a) A) p := | |
| (h p hp).trans (eval_prefixFormula 3 2 0 | |
| (cons p (fun i => structureMap (hullSet a) (e i))) hΟ') | |
| intro p | |
| exact β¨fun hp => β¨hm _ (hei 0) _ hp,(hs p (hm _ (hei 0) _ hp)).mp hpβ©, | |
| fun hp => (hs p hp.1).mpr hp.2β© | |
| def orderMember (c z : β) : Formula := | |
| .existsMem c (.existsMem (c+1) (.conj (.orderedPair (z+2) 1 0) (.subset 0 1))) | |
| theorem eval_orderMember (c z : β) (e : β β ZFSet.{u}) : | |
| (orderMember c z).Eval e β e z β orderSet (e c) := by | |
| simp only [orderMember,Formula.Eval,Formula.eval_orderedPair,Formula.eval_subset, | |
| cons_zero,cons_succ,orderSet,ZFSet.mem_sep] | |
| exact β¨fun β¨p,hp,q,hq,hz,hpqβ© => | |
| β¨hz βΈ ZFSet.mem_prod.mpr β¨p,hp,q,hq,rflβ©,p,hp,q,hq,hz,hpqβ©,And.rightβ© | |
| theorem orderSet_mem_hull (a : β β ZFSet.{u}) {c : ZFSet.{u}} (hc : c β hullSet a) : | |
| orderSet c β hullSet a := by | |
| have hs (x : ZFSet.{u}) : (definedSet 0 (orderMember 2 0)).Sat Set.univ | |
| (cons x (fun _ => c)) β x = orderSet c := by | |
| rw [definedSet_univ] | |
| simp only [eval_orderMember,cons_zero,cons_succ] | |
| exact ZFSet.ext_iff.symm | |
| exact unique_definable_mem a (definedSet 0 (orderMember 2 0)) | |
| (fun _ => c) (fun _ => hc) _ ((hs _).mpr rfl) (fun x hx => (hs x).mp hx) | |
| theorem collapse_orderSet (a : β β ZFSet.{u}) {c : ZFSet.{u}} (hc : c β hullSet a) : | |
| structureMap (hullSet a) (orderSet c) = orderSet (structureMap (hullSet a) c) := by | |
| let e := cons (orderSet c) (fun _ => c) | |
| have he : β i, e i β hullSet a := by | |
| intro i; cases i | |
| exact orderSet_mem_hull a hc | |
| exact hc | |
| have hi : β i, structureMap (hullSet a) (e i) β collapsed (hullSet a) := | |
| fun i => (mem_collapsed _ _).mpr β¨e i,he i,rflβ© | |
| have hs : (definedSet 0 (orderMember 2 0)).Sat Set.univ e := by | |
| rw [definedSet_univ] | |
| intro x | |
| exact (eval_orderMember 2 0 (cons x e)).symm | |
| have ht := (collapsed_hull_elementary a _ e he).mpr hs | |
| exact (definedSet_unique _ (collapsed_transitive _) 0 _ _ hi | |
| (orderSet (structureMap (hullSet a) c)) | |
| (orderSet_mem _ (collapsed_transitive _) (collapsed_hull_sourceT a) (hi 1)) | |
| (fun x _ => eval_orderMember 2 0 _)).mp ht | |
| theorem collapse_selected_condition (a : β β ZFSet.{u}) | |
| (hn : β n, natSet.{u} n β hullSet a) (hΟ : ZFSet.omega β hullSet a) | |
| {A p : ZFSet.{u}} (hA : A β hullSet a) (hp : p β hullSet a) | |
| (hpc : p β ambientConditions A) : | |
| structureMap (hullSet a) p β structureMap (hullSet a) (ambientConditions A) β§ | |
| Prefix (structureMap (hullSet a) A) (structureMap (hullSet a) p) := by | |
| have h := (collapse_membership _ (hullSet_extensional a) _ hp _ | |
| (ambientConditions_mem_hull a hΟ hA)).mpr hpc | |
| exact β¨h,((collapse_ambientConditions a hn hΟ hA _).mp h).2β© | |
| end TuringRigidity.ElementaryModel | |
| end OAI | |