Download data/lean/OAI/SetTheory/PartitionPrinciple/Geometry/GroundBatchHeightGraphs.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 6.01 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/SetTheory/PartitionPrinciple/Geometry/GroundBatchHeightGraphs.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/SetTheory/PartitionPrinciple/Geometry/GroundBatchHeightGraphs.lean
-
curl -L -o GroundBatchHeightGraphs.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/SetTheory/PartitionPrinciple/Geometry/GroundBatchHeightGraphs.lean
6.01 kB
| import OAI.SetTheory.PartitionPrinciple.Definability.BatchAttachmentRealization | |
| namespace OAI | |
| open scoped ZFSet | |
| section | |
| namespace PartitionPilot.Forcing | |
| universe u | |
| namespace BoundedFormula | |
| open SetFormula | |
| def componentHeightEntryFormula {n} | |
| (w I Qs B Hs Cs E C D boundQs boundHs boundE : Fin n) : BoundedFormula n := | |
| let lift (i : Fin n) : Fin (n + 8) := i.succ.succ.succ.succ.succ.succ.succ.succ | |
| let body : BoundedFormula (n + 8) := | |
| .conj (pairOfPairsFormula (lift w) 7 3 1 0) | |
| (.conj (pairMembershipFormula 7 6 (lift Qs)) | |
| (.conj (pairMembershipFormula 7 5 (lift Hs)) | |
| (.conj (pairMembershipFormula 7 4 (lift E)) | |
| (.conj (pairMembershipFormula 7 1 (lift Cs)) | |
| (.conj (pairMembershipFormula 3 2 5) (pairMembershipFormula 2 0 4)))))) | |
| exMem I (exMem boundQs.succ (exMem boundHs.succ.succ | |
| (exMem boundE.succ.succ.succ (exMem 2 | |
| (exMem B.succ.succ.succ.succ.succ | |
| (exMem C.succ.succ.succ.succ.succ.succ | |
| (exMem D.succ.succ.succ.succ.succ.succ.succ body))))))) | |
| theorem truth_componentHeightEntryFormula {n} | |
| (w I Qs B Hs Cs E C D boundQs boundHs boundE : Fin n) (env : Fin n β ZFSet.{u}) : | |
| Truth (componentHeightEntryFormula w I Qs B Hs Cs E C D boundQs boundHs boundE) env β | |
| β i β env I, β Q β env boundQs, β g β env boundHs, β f β env boundE, | |
| β q β Q, β a β env B, β c β env C, β z β env D, | |
| env w = ZFSet.pair (ZFSet.pair i q) (ZFSet.pair c z) β§ | |
| ZFSet.pair i Q β env Qs β§ ZFSet.pair i g β env Hs β§ ZFSet.pair i f β env E β§ | |
| ZFSet.pair i c β env Cs β§ ZFSet.pair q a β g β§ ZFSet.pair a z β f := by | |
| simp only [componentHeightEntryFormula, truth_exMem, Truth, | |
| truth_pairOfPairsFormula, truth_pairMembershipFormula] | |
| rfl | |
| def taggedHeightEntryFormula {n} (w P N H fresh : Fin n) : BoundedFormula n := | |
| exMem N (exMem H.succ | |
| (.conj (orderedTripleFormula w.succ.succ P.succ.succ 1 0) | |
| (pairMembershipFormula 1 0 fresh.succ.succ))) | |
| theorem truth_taggedHeightEntryFormula {n} (w P N H fresh : Fin n) | |
| (env : Fin n β ZFSet.{u}) : | |
| Truth (taggedHeightEntryFormula w P N H fresh) env β | |
| β x β env N, β h β env H, | |
| env w = ZFSet.pair (ZFSet.pair (env P) x) h β§ ZFSet.pair x h β env fresh := by | |
| simp only [taggedHeightEntryFormula, truth_exMem, Truth, | |
| truth_orderedTripleFormula, truth_pairMembershipFormula] | |
| rfl | |
| end BoundedFormula | |
| namespace TransitiveGround | |
| open SetFormula | |
| variable (M : TransitiveGround.{u}) | |
| theorem componentHeightGraph_mem | |
| (pairing : Realize M.sets SetFormula.pairing Fin.elim0) | |
| (unions : Realize M.sets SetFormula.union Fin.elim0) | |
| (powers : Realize M.sets powerSet Fin.elim0) (separation : SeparationSchema M.sets) | |
| {I Qs B Hs Cs E C D : ZFSet.{u}} | |
| (hI : I β M.sets) (hQs : Qs β M.sets) (hB : B β M.sets) (hHs : Hs β M.sets) | |
| (hCs : Cs β M.sets) (hE : E β M.sets) (hC : C β M.sets) (hD : D β M.sets) : | |
| componentHeightGraph I Qs B Hs Cs E C D β M.sets := by | |
| have qBound := M.union_mem unions (M.union_mem unions hQs) | |
| have hBound := M.union_mem unions (M.union_mem unions hHs) | |
| have eBound := M.union_mem unions (M.union_mem unions hE) | |
| let params := extend I (extend Qs (extend B (extend Hs (extend Cs (extend E | |
| (extend C (extend D (extend (ββ ββ Qs) (extend (ββ ββ Hs) | |
| (extend (ββ ββ E) Fin.elim0)))))))))) | |
| have selected := M.bounded_separation_mem separation | |
| (BoundedFormula.componentHeightEntryFormula 0 1 2 3 4 5 6 7 8 9 10 11) params | |
| (Fin.cases hI (Fin.cases hQs (Fin.cases hB (Fin.cases hHs (Fin.cases hCs | |
| (Fin.cases hE (Fin.cases hC (Fin.cases hD (Fin.cases qBound | |
| (Fin.cases hBound (Fin.cases eBound (fun i => Fin.elim0 i)))))))))))) | |
| (M.prod_mem pairing unions powers separation | |
| (M.indexedAttachmentDomain_mem pairing unions powers separation hI hQs) | |
| (M.prod_mem pairing unions powers separation hC hD)) | |
| have equal : ZFSet.sep (fun z => BoundedFormula.Truth | |
| (BoundedFormula.componentHeightEntryFormula 0 1 2 3 4 5 6 7 8 9 10 11) (extend z params)) | |
| (ZFSet.prod (indexedAttachmentDomain I Qs) (ZFSet.prod C D)) = | |
| componentHeightGraph I Qs B Hs Cs E C D := by | |
| apply ZFSet.ext | |
| intro z | |
| rw [componentHeightGraph, ZFSet.mem_sep, ZFSet.mem_sep] | |
| exact and_congr Iff.rfl | |
| (BoundedFormula.truth_componentHeightEntryFormula 0 1 2 3 4 5 6 7 8 9 10 11 _) | |
| exact equal βΈ selected | |
| theorem taggedHeightGraph_mem | |
| (pairing : Realize M.sets SetFormula.pairing Fin.elim0) | |
| (unions : Realize M.sets SetFormula.union Fin.elim0) | |
| (powers : Realize M.sets powerSet Fin.elim0) (separation : SeparationSchema M.sets) | |
| {P N H old fresh : ZFSet.{u}} | |
| (hP : P β M.sets) (hN : N β M.sets) (hH : H β M.sets) | |
| (hold : old β M.sets) (hfresh : fresh β M.sets) : | |
| taggedHeightGraph P N H old fresh β M.sets := by | |
| let params := extend P (extend N (extend H (extend fresh Fin.elim0))) | |
| have selected := M.bounded_separation_mem separation | |
| (BoundedFormula.taggedHeightEntryFormula 0 1 2 3 4) params | |
| (Fin.cases hP (Fin.cases hN (Fin.cases hH (Fin.cases hfresh (fun i => Fin.elim0 i))))) | |
| (M.prod_mem pairing unions powers separation | |
| (M.taggedExtension_mem pairing unions powers separation hP hN) hH) | |
| have equal : ZFSet.sep (fun z => BoundedFormula.Truth | |
| (BoundedFormula.taggedHeightEntryFormula 0 1 2 3 4) (extend z params)) | |
| (ZFSet.prod (taggedExtension P N) H) = | |
| ZFSet.sep (fun w => β x β N, β h β H, | |
| w = ZFSet.pair (ZFSet.pair P x) h β§ ZFSet.pair x h β fresh) | |
| (ZFSet.prod (taggedExtension P N) H) := by | |
| apply ZFSet.ext | |
| intro z | |
| rw [ZFSet.mem_sep, ZFSet.mem_sep] | |
| exact and_congr Iff.rfl (BoundedFormula.truth_taggedHeightEntryFormula 0 1 2 3 4 _) | |
| exact M.binary_union_mem pairing unions hold (equal βΈ selected) | |
| end TransitiveGround | |
| end PartitionPilot.Forcing | |
| end | |
| end OAI | |