cfahlgren1/math / lean /OAI /Computability /DegreeRigidity /Representation /NativePersistenceSyntax.lean
cfahlgren1's picture
download
raw
3.04 kB
import OAI.Computability.DegreeRigidity.Representation.SourceTNativeComparison
namespace OAI
namespace TuringRigidity.SetModelSatisfaction
open BoundedSetTheory TransitiveNameModel SetModelReals SetModelFunctions SetModelSyntax
open SetDegreeDecoding PersistentRestrictions SetModelCountability ArithmeticTree
universe u
noncomputable section
def InternalFormula.rename : InternalFormula → (ℕ → ℕ) → InternalFormula
| .bounded p, v => .bounded (p.rename v)
| .conj p q, v => .conj (p.rename v) (q.rename v)
| .neg p, v => .neg (p.rename v)
| .existsSet p, v => .existsSet (p.rename (liftMap v))
theorem InternalFormula.realize_rename (p : InternalFormula) (M : ZFSet.{u})
(v : ℕ → ℕ) (e : ℕ → ZFSet.{u}) :
(p.rename v).Realize M e ↔ p.Realize M (e ∘ v) := by
induction p generalizing v e with
| bounded p => exact p.realize_rename M v e
| conj p q hp hq => exact and_congr (hp v e) (hq v e)
| neg p hp => exact not_congr (hp v e)
| existsSet p hp =>
change (∃ x ∈ M, (p.rename (liftMap v)).Realize M (cons x e)) ↔ _
apply exists_congr
intro x
apply and_congr_right
intro _
have he : cons x e ∘ liftMap v = cons x (e ∘ v) := by funext i; cases i <;> rfl
exact (hp (liftMap v) (cons x e)).trans (he ▸ Iff.rfl)
def setMovedFormula (f i : ℕ) : Formula :=
.existsMem i (.existsMem (i+1) (.conj (.pairMem 1 0 (f+2)) (.neg (.equal 1 0))))
@[simp] theorem eval_setMovedFormula (f i : ℕ) (e : ℕ → ZFSet.{u}) :
(setMovedFormula f i).Eval e ↔ SetMoved (e f) (e i) := by
simp only [setMovedFormula,Formula.Eval,Formula.eval_pairMem,cons_zero,cons_succ,SetMoved]
private def nativeSlots : ℕ → ℕ
| 0 => 1 | 1 => 2 | 2 => 3 | 3 => 0 | _+4 => 4
def nonidentityFormula : InternalFormula :=
.existsSet (.conj (.bounded (actionFormula 0 3 2))
(.conj (.bounded (setMovedFormula 0 3)) (persistenceFormula.rename nativeSlots)))
theorem realize_nonidentityFormula (M : ZFSet.{u}) (hM : Transitive M)
(D L i : ZFSet.{u}) (hD : D ∈ M) (hL : L ∈ M) (hi : i ∈ M) (hω : ZFSet.omega.{u} ∈ M) :
nonidentityFormula.Realize M (cons D (cons L (cons i (fun _ => ZFSet.omega)))) ↔
NativeNonidentity M D L i := by
change (∃ f ∈ M, _) ↔ ∃ f ∈ M, _
apply exists_congr
intro f
apply and_congr_right
intro hf
let e := cons f (cons D (cons L (cons i (fun _ => ZFSet.omega))))
have he : ∀ j, e j ∈ M := by
intro j
rcases j with _|_|_|_|j <;> simp [e,hf,hD,hL,hi,hω]
have hr : e ∘ nativeSlots = cons D (cons L (cons i (cons f (fun _ => ZFSet.omega)))) := by
funext j
rcases j with _|_|_|_|j <;> rfl
change ((actionFormula 0 3 2).Realize M e ∧
(setMovedFormula 0 3).Realize M e ∧ (persistenceFormula.rename nativeSlots).Realize M e) ↔ _
rw [(actionFormula 0 3 2).absolute M hM e he,eval_actionFormula,
(setMovedFormula 0 3).absolute M hM e he,eval_setMovedFormula,
InternalFormula.realize_rename,hr]
rfl
end
end TuringRigidity.SetModelSatisfaction
end OAI

Xet Storage Details

Size:
3.04 kB
·
Xet hash:
50eae6859d2389cd94dc954a75ace74740fc8c595234f990f99043e299cd717b

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