Download data/lean/OAI/Computability/DegreeRigidity/Syntax/BoundedRelations.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 3.56 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Computability/DegreeRigidity/Syntax/BoundedRelations.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Computability/DegreeRigidity/Syntax/BoundedRelations.lean
-
curl -L -o BoundedRelations.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Computability/DegreeRigidity/Syntax/BoundedRelations.lean
3.56 kB
| import OAI.Computability.DegreeRigidity.SetModels.ModelProducts | |
| namespace OAI | |
| namespace TuringRigidity.BoundedSetTheory | |
| open TransitiveNameModel | |
| universe u | |
| namespace Formula | |
| def imp (Ο Ο : Formula) : Formula := disj (.neg Ο) Ο | |
| def iff (Ο Ο : Formula) : Formula := .conj (imp Ο Ο) (imp Ο Ο) | |
| @[simp] theorem eval_imp (Ο Ο : Formula) (e : β β ZFSet.{u}) : | |
| (imp Ο Ο).Eval e β (Ο.Eval e β Ο.Eval e) := by | |
| classical | |
| simp only [imp, eval_disj, Eval] | |
| constructor | |
| Β· intro h hp; exact h.elim (fun hn => False.elim (hn hp)) id | |
| Β· intro h; by_cases hp : Ο.Eval e | |
| Β· exact Or.inr (h hp) | |
| Β· exact Or.inl hp | |
| @[simp] theorem eval_iff (Ο Ο : Formula) (e : β β ZFSet.{u}) : | |
| (iff Ο Ο).Eval e β (Ο.Eval e β Ο.Eval e) := by | |
| simp only [iff, Eval, eval_imp, iff_def] | |
| def subset (a b : β) : Formula := allMem a (.member 0 (b+1)) | |
| def transitive (a : β) : Formula := allMem a (subset 0 (a+1)) | |
| @[simp] theorem eval_subset (a b : β) (e : β β ZFSet.{u}) : | |
| (subset a b).Eval e β e a β e b := by | |
| simp only [subset, eval_allMem, Eval, cons_zero, cons_succ] | |
| rfl | |
| @[simp] theorem eval_transitive (a : β) (e : β β ZFSet.{u}) : | |
| (transitive a).Eval e β Transitive (e a) := by | |
| simp only [transitive, eval_allMem, eval_subset, cons_zero, cons_succ] | |
| rfl | |
| def functionGraph (f d v : β) : Formula := | |
| .conj (allMem f (.existsMem (d+1) (.existsMem (v+2) (orderedPair 2 1 0)))) | |
| (allMem d (.existsMem (v+1) | |
| (.conj (pairMem 1 0 (f+2)) | |
| (allMem (v+2) (imp (pairMem 2 0 (f+3)) (.equal 0 1)))))) | |
| @[simp] theorem eval_functionGraph (f d v : β) (e : β β ZFSet.{u}) : | |
| (functionGraph f d v).Eval e β | |
| (β z β e f, β x β e d, β y β e v, z = ZFSet.pair x y) β§ | |
| (β x β e d, β y β e v, ZFSet.pair x y β e f β§ | |
| β z β e v, ZFSet.pair x z β e f β z = y) := by | |
| simp only [functionGraph, Eval, eval_allMem, eval_orderedPair, | |
| eval_pairMem, eval_imp, cons_zero, cons_succ] | |
| end Formula | |
| inductive SigmaFormula where | |
| | bounded (Ο : Formula) | |
| | existsSet (Ο : SigmaFormula) | |
| def SigmaFormula.Realize (M : ZFSet.{u}) (e : β β ZFSet.{u}) : SigmaFormula β Prop | |
| | .bounded Ο => Ο.Realize M e | |
| | .existsSet Ο => β x β M, Ο.Realize M (cons x e) | |
| def SigmaReplacement (M : ZFSet.{u}) : Prop := | |
| β (Ο : SigmaFormula) (e : β β ZFSet.{u}), (β i, e i β M) β | |
| β a β M, | |
| (β x β a, β y β M, Ο.Realize M (cons y (cons x e)) β§ | |
| β z β M, Ο.Realize M (cons z (cons x e)) β z = y) β | |
| β b β M, β y β M, y β b β β x β a, Ο.Realize M (cons y (cons x e)) | |
| theorem replacement_image (M : ZFSet.{u}) (hM : Transitive M) | |
| (hR : SigmaReplacement M) (Ο : SigmaFormula) (e : β β ZFSet.{u}) | |
| (he : β i, e i β M) {a : ZFSet.{u}} (ha : a β M) | |
| (F : ZFSet.{u} β ZFSet.{u}) (hF : β x β a, F x β M) | |
| (hΟ : β x β a, β y β M, Ο.Realize M (cons y (cons x e)) β y = F x) : | |
| β b β M, β y, y β b β β x β a, F x = y := by | |
| obtain β¨b,hb,hbdefβ© := hR Ο e he a ha (fun x hx => | |
| β¨F x,hF x hx,(hΟ x hx _ (hF x hx)).mpr rfl, | |
| fun z hz h => (hΟ x hx z hz).mp hβ©) | |
| refine β¨b,hb,fun y => ?_β© | |
| constructor | |
| Β· intro hy | |
| have hyM := hM b hb y hy | |
| obtain β¨x,hx,hxyβ© := (hbdef y hyM).mp hy | |
| exact β¨x,hx,((hΟ x hx y hyM).mp hxy).symmβ© | |
| Β· rintro β¨x,hx,rflβ© | |
| exact (hbdef _ (hF x hx)).mpr β¨x,hx,(hΟ x hx _ (hF x hx)).mpr rflβ© | |
| end TuringRigidity.BoundedSetTheory | |
| end OAI | |