cfahlgren1/math / lean /OAI /Computability /DegreeRigidity /Syntax /SigmaParameterizedClosure.lean
cfahlgren1's picture
download
raw
3.66 kB
import OAI.Computability.DegreeRigidity.Syntax.SigmaParameterized
import OAI.Computability.DegreeRigidity.Representation.SourceTheory
namespace OAI
namespace TuringRigidity.BoundedDefinability
open BoundedSetTheory TransitiveNameModel SetModelFunctions
universe u
variable {M : ZFSet.{u}} {P Q : (ℕ → ZFSet.{u}) → Prop}
theorem SigmaDefinable.subst (h : SigmaDefinable M P) (r : ℕ → ℕ) :
SigmaDefinable M (fun e => P (e ∘ r)) := by
obtain ⟨p,d,hd,hp⟩ := h
refine ⟨p.rename (slotMap r id),d,hd,?_⟩
intro e he
rw [SigmaFormula.realize_rename]
change p.Realize M (mix e d ∘ slotMap r id) ↔ _
simpa only [mix_slotMap,Function.comp_id] using hp (e ∘ r) (fun i => he (r i))
theorem SigmaDefinable.and (hP : SigmaDefinable M P) (hQ : SigmaDefinable M Q) :
SigmaDefinable M (fun e => P e ∧ Q e) := by
obtain ⟨p,d,hd,hp⟩ := hP
obtain ⟨q,c,hc,hq⟩ := hQ
refine ⟨.conj (p.rename (slotMap id (fun i => 2*i)))
(q.rename (slotMap id (fun i => 2*i+1))),mix d c,?_,?_⟩
· intro i; unfold mix; split <;> first | exact hd _ | exact hc _
· intro e he
rw [SigmaFormula.realize_conj,SigmaFormula.realize_rename,SigmaFormula.realize_rename]
have hd' : mix d c ∘ (fun i => 2*i) = d := by funext i; simp
have hc' : mix d c ∘ (fun i => 2*i+1) = c := by funext i; simp
change p.Realize M (mix e (mix d c) ∘ slotMap id (fun i => 2*i)) ∧
q.Realize M (mix e (mix d c) ∘ slotMap id (fun i => 2*i+1)) ↔ _
rw [mix_slotMap,mix_slotMap,Function.comp_id,hd',hc',hp e he,hq e he]
theorem SigmaDefinable.or (h0 : (∅ : ZFSet.{u}) ∈ M)
(hP : SigmaDefinable M P) (hQ : SigmaDefinable M Q) :
SigmaDefinable M (fun e => P e ∨ Q e) := by
obtain ⟨p,d,hd,hp⟩ := hP
obtain ⟨q,c,hc,hq⟩ := hQ
refine ⟨.disj (p.rename (slotMap id (fun i => 2*i)))
(q.rename (slotMap id (fun i => 2*i+1))),mix d c,?_,?_⟩
· intro i; unfold mix; split <;> first | exact hd _ | exact hc _
· intro e he
rw [SigmaFormula.realize_disj M h0,SigmaFormula.realize_rename,SigmaFormula.realize_rename]
have hd' : mix d c ∘ (fun i => 2*i) = d := by funext i; simp
have hc' : mix d c ∘ (fun i => 2*i+1) = c := by funext i; simp
change p.Realize M (mix e (mix d c) ∘ slotMap id (fun i => 2*i)) ∨
q.Realize M (mix e (mix d c) ∘ slotMap id (fun i => 2*i+1)) ↔ _
rw [mix_slotMap,mix_slotMap,Function.comp_id,hd',hc',hp e he,hq e he]
theorem SigmaDefinable.impBounded (C : Context M)
(hP : Definable M P) (hQ : SigmaDefinable M Q) :
SigmaDefinable M (fun e => P e → Q e) := by
apply ((hP.neg.toSigma C.transitive).or (C.nat_mem 0) hQ).congr
intro e _
classical
tauto
theorem SigmaDefinable.allMem (hM : Transitive M) (hT : SourceT M)
(h : SigmaDefinable M P) (a : ℕ) :
SigmaDefinable M (fun e => ∀ x ∈ e a, P (cons x e)) := by
obtain ⟨p,d,hd,hp⟩ := h
have hC := sigma_collection M hM hT.pairing hT.union hT.powerSet
hT.separation.finitePrefix hT.replacement.finitePrefix hT.infinity hT.choice
refine ⟨.allMem (2*a) (p.rename bindSlots),d,hd,?_⟩
intro e he
rw [SigmaFormula.realize_allMem M hM hT.pairing hT.union hT.separation.finitePrefix.bounded
hT.replacement.finitePrefix hT.infinity hC _ _ _ (by
intro i; unfold mix; split <;> first | exact he _ | exact hd _),mix_even]
apply forall_congr'; intro x
apply forall_congr'; intro hx
rw [SigmaFormula.realize_rename]
change p.Realize M (cons x (mix e d) ∘ bindSlots) ↔ _
rw [bind_mix]
exact hp (cons x e) (by intro i; cases i; exact hM _ (he a) x hx; exact he _)
end TuringRigidity.BoundedDefinability
end OAI

Xet Storage Details

Size:
3.66 kB
·
Xet hash:
b6c40fae2ac27f572e6e0a09cd8b5e0467b7e9ea38081058112b69f3cdfc1537

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.