Buckets:
cfahlgren1/math / lean /OAI /Computability /DegreeRigidity /OrdinalCodes /SelectorOrdinalEnumeration.lean
| import OAI.Computability.DegreeRigidity.SetModels.InternalMinimalSelector | |
| namespace OAI | |
| namespace TuringRigidity.BoundedSetTheory | |
| open TransitiveNameModel RelationCollapse | |
| universe u | |
| namespace InternalWellOrder | |
| theorem internal_enumeration_from_selector (M : ZFSet.{u}) (hM : Transitive M) | |
| (hP : Pairing M) (hU : BoundedSetTheory.Union M) (hPow : PowerSet M) | |
| (hS : SigmaSeparation M) (hR : SigmaReplacement M) (hI : Infinity M) | |
| {a q s : ZFSet.{u}} (ha : a ∈ M) (hq : q ∈ M) (hsM : s ∈ M) | |
| (hs : ChoiceGraph q s) (hqdef : ∀ x, x ∈ q ↔ x ∈ M ∧ x ⊆ a ∧ ∃ y, y ∈ x) : | |
| ∃ δ ∈ M, δ.IsOrdinal ∧ ∃ F ∈ M, TransitiveNameModel.FunctionGraph δ a F ∧ | |
| (∀ x ∈ a, ∃ i ∈ δ, ZFSet.pair i x ∈ F) ∧ | |
| (∀ i ∈ δ, ∀ j ∈ δ, ∀ x, ZFSet.pair i x ∈ F → ZFSet.pair j x ∈ F → i = j) ∧ | |
| (∀ i ∈ δ, ∀ x ∈ a, ZFSet.pair i x ∈ F → | |
| ∃ b ∈ q, Remaining a F i b ∧ ZFSet.pair b x ∈ s) := by | |
| classical | |
| obtain ⟨α,hαM,hα,hHartogs⟩ := internal_hartogs M a hM hP hU hPow hS hR hI ha | |
| have hαT : Transitive α := fun i hi j hj => hα.subset_of_mem hi hj | |
| obtain ⟨F,hF,htrace,hmax⟩ := internal_maximal_trace M hM hP hU hPow hS.bounded hαM ha hq hsM hαT hs | |
| have hfun := htrace.functional hαT hs | |
| have hmissing : ∃ i ∈ α, ¬ ∃ x ∈ a, ZFSet.pair i x ∈ F := by | |
| by_contra hn | |
| have htotal : ∀ i ∈ α, ∃ x ∈ a, ZFSet.pair i x ∈ F := by | |
| intro i hi; exact Classical.byContradiction (fun h => hn ⟨i,hi,h⟩) | |
| have hfg : TransitiveNameModel.FunctionGraph α a F := by | |
| refine ⟨htrace.shape,?_⟩ | |
| intro i hi | |
| obtain ⟨x,hx,hix⟩ := htotal i hi | |
| exact ⟨x,hx,hix,fun y _ hiy => hfun i y x hiy hix⟩ | |
| obtain ⟨v,hv,hva⟩ := FunctionGraph.exists_presentation hfg | |
| apply hHartogs F hF v hv hva | |
| intro i hi j hj he | |
| have hip := (hv.pair_iff i (v i)).mpr ⟨hi,rfl⟩ | |
| have hjp := (hv.pair_iff j (v j)).mpr ⟨hj,rfl⟩ | |
| rw [← he] at hjp | |
| exact htrace.injective hα hs i j (v i) hip hjp | |
| have minimal (i : ZFSet.{u}) : i ∈ α → (¬ ∃ x ∈ a, ZFSet.pair i x ∈ F) → | |
| ∃ j ∈ α, (¬ ∃ x ∈ a, ZFSet.pair j x ∈ F) ∧ | |
| ∀ k ∈ j, ∃ x ∈ a, ZFSet.pair k x ∈ F := by | |
| induction i using ZFSet.inductionOn with | |
| | h i ih => | |
| intro hi hmiss | |
| by_cases hex : ∃ j ∈ i, ¬ ∃ x ∈ a, ZFSet.pair j x ∈ F | |
| · obtain ⟨j,hji,hjmiss⟩ := hex | |
| exact ih j hji (hα.subset_of_mem hi hji) hjmiss | |
| · refine ⟨i,hi,hmiss,?_⟩ | |
| intro j hji | |
| exact Classical.byContradiction (fun h => hex ⟨j,hji,h⟩) | |
| obtain ⟨i,hi,hmiss⟩ := hmissing | |
| obtain ⟨i,hi,hmiss,hprev⟩ := minimal i hi hmiss | |
| have hiM := hM α hαM i hi | |
| have hiT : Transitive i := fun j hj k hk => (hα.mem hi).subset_of_mem hj hk | |
| have hdom : ∀ j y, ZFSet.pair j y ∈ F → j ∈ i := htrace.domain_before hα hi hmiss | |
| have hres := residual_mem M hM hS.bounded ha hF hiM | |
| have hrem := residual_remaining a F i | |
| have hempty : ¬ ∃ x, x ∈ residual a F i := by | |
| intro hex | |
| have hrq : residual a F i ∈ q := (hqdef _).mpr ⟨hres,hrem.1,hex⟩ | |
| obtain ⟨x,hxr,hrx,_⟩ := hs.2 _ hrq | |
| have hxa := hrem.1 hxr | |
| have hpair := orderedPair_mem M hM hP hiM (hM a ha x hxa) | |
| have hnew := binary_union_mem M hM hP hU hF (singleton_mem M hM hP hpair) | |
| have hnewtrace := htrace.adjoin hi hiT hxa hrq hrem hrx hprev hdom | |
| have hnewsub := hmax _ hnew hnewtrace | |
| exact hmiss ⟨x,hxa,hnewsub (ZFSet.mem_union.mpr (Or.inr (ZFSet.mem_singleton.mpr rfl)))⟩ | |
| refine ⟨i,hiM,hα.mem hi,F,hF,?_,?_,?_,?_⟩ | |
| · refine ⟨?_,?_⟩ | |
| · intro z hz | |
| obtain ⟨j,_,x,hx,rfl⟩ := htrace.shape z hz | |
| exact ⟨j,hdom j x hz,x,hx,rfl⟩ | |
| · intro j hj | |
| obtain ⟨x,hx,hjx⟩ := hprev j hj | |
| exact ⟨x,hx,hjx,fun y _ hjy => hfun j y x hjy hjx⟩ | |
| · intro x hx | |
| exact Classical.byContradiction (fun hn => hempty ⟨x,(hrem.2 x hx).mpr hn⟩) | |
| · intro j _ k _ x hjx hkx | |
| exact htrace.injective hα hs j k x hjx hkx | |
| · intro j hj x hx hjx | |
| exact htrace.choice j (hα.subset_of_mem hi hj) x hx hjx | |
| end InternalWellOrder | |
| end TuringRigidity.BoundedSetTheory | |
| end OAI | |
Xet Storage Details
- Size:
- 4.26 kB
- Xet hash:
- 0c491b555f30209cc2bde21175a23a4042624db89072b48fe879f46eed31326f
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.