cfahlgren1/math / lean /OAI /Computability /DegreeRigidity /Syntax /VariableTruthSyntax.lean
cfahlgren1's picture
download
raw
5.6 kB
import OAI.Computability.DegreeRigidity.SetModels.InternalDefinablePower
namespace OAI
namespace TuringRigidity.RelativeConstructible
open ElementaryModel BoundedSetTheory TransitiveNameModel SentenceCoding
open BoundedDefinability SetModelFunctions SetModelReals
universe u
variable {M : ZFSet.{u}}
theorem tupleLookup_variable (C : Context M) (G t i x : ℕ) :
Definable M (fun e => TupleLookup (e G) (e t) (e i) (e x)) :=
(((defOrderedPair C (t+2) 1 0).and (defPairMem C (i+2) (x+2) 0)).existsMem (G+1)).existsParam C.omega_mem
theorem tupleAdequate_variable (C : Context M) {Q B : ZFSet.{u}}
(hQ : Q ∈ M) (hB : B ∈ M) (G c t : ℕ) :
Definable M (fun e => TupleAdequate Q B (e G) (e c) (e t)) :=
((((defOrderedPair C (t+3) 2 1).and ((boundWitness_definable C hQ hB (c+3) 0).and
(defSubset C 0 2))).existsParam C.omega_mem).existsMem (G+1)).existsParam C.omega_mem
theorem tuplePrefix_variable (C : Context M) (a G t x s : ℕ) :
Definable M (fun e => TuplePrefix (e a) (e G) (e t) (e x) (e s)) := by
let d := cons ZFSet.omega (fun _ => natSet 0)
let r : ℕ → ℕ := fun i => match i with
| 0 => 2*a | 1 => 1 | 2 => 2*G | 3 => 2*t | 4 => 2*x | 5 => 2*s | _ => 3
refine ⟨(tuplePrefixFormula 0 1 2 3 4 5 6).rename r,d,?_,?_⟩
· intro i; cases i
· exact C.omega_mem
· exact C.nat_mem 0
· intro e
rw [Formula.eval_rename_comp]
have he : mix e d ∘ r = cons (e a) (cons ZFSet.omega (cons (e G)
(cons (e t) (cons (e x) (cons (e s) (fun _ => natSet 0)))))) := by
funext i
rcases i with _|_|_|_|_|_|i <;> simp only [r,d,Function.comp_apply,mix_even,cons_zero,cons_succ] <;> rfl
rw [he]
rfl
theorem setTruthStep_variable (C : Context M) (a G T S c t : ℕ) :
Definable M (fun e => SetTruthStep (e a) (e G) (e T) (e S) (e c) (e t)) := by
have ha (tag : ℕ) (hr : Definable M (fun e => e 1 = e 0)) :=
(((((binaryGraph_definable C _ (atomic_primrec tag) 3 2 (c+4)).and
((tupleLookup_variable C (G+4) (t+4) 3 1).and
((tupleLookup_variable C (G+4) (t+4) 2 0).and hr))).existsMem (a+3)).existsMem (a+2)).existsParam
C.omega_mem).existsParam C.omega_mem
have he := ha 0 (equal_definable C 1 0)
have hm := (((((binaryGraph_definable C _ (atomic_primrec 1) 3 2 (c+4)).and
((tupleLookup_variable C (G+4) (t+4) 3 1).and
((tupleLookup_variable C (G+4) (t+4) 2 0).and (member_definable C 1 0)))).existsMem (a+3)).existsMem
(a+2)).existsParam C.omega_mem).existsParam C.omega_mem
have hc := (((binaryGraph_definable C _ (binary_primrec 2) 1 0 (c+2)).and
((defPairMem C 1 (t+2) (S+2)).and (defPairMem C 0 (t+2) (S+2)))).existsParam
C.omega_mem).existsParam C.omega_mem
have hn := ((unaryGraph_definable C _ (unary_primrec 3) 0 (c+1)).and
(defPairMem C 0 (t+1) (S+1)).neg).existsParam C.omega_mem
have hbody := (((tuplePrefix_variable C (a+3) (G+3) (t+3) 1 0).and
(defPairMem C 2 0 (S+3))).existsMem (T+2)).existsMem (a+1)
have hx := ((unaryGraph_definable C _ (unary_primrec 4) 0 (c+1)).and hbody).existsParam C.omega_mem
exact defOr he (defOr hm (defOr hc (defOr hn hx)))
theorem setTruthRecursion_variable (C : Context M) {Q B : ZFSet.{u}}
(hQ : Q ∈ M) (hB : B ∈ M) (a G T f s : ℕ) :
Definable M (fun e => SetTruthRecursion Q B (e G) (e a) (e T) (e f) (e s)) := by
have hn := defAllMem ((((tupleAdequate_variable C hQ hB (G+3) 1 0).and
(defOrderedPair C 2 1 0)).existsMem (T+2)).existsMem (f+1)) s
have hr := defAllMem (defAllMem (defImp (tupleAdequate_variable C hQ hB (G+2) 1 0)
(defIff (defPairMem C 1 0 (s+2))
(setTruthStep_variable C (a+2) (G+2) (T+2) (s+2) 1 0))) (T+1)) f
exact hn.and hr
theorem truthWitness_variable (C : Context M) {Q B : ZFSet.{u}}
(hQ : Q ∈ M) (hB : B ∈ M) (a G T c s : ℕ) :
Definable M (fun e => TruthWitness Q B (e G) (e a) (e T) (e c) (e s)) :=
((leastFamily_param C hQ (c+1) 0).and
(setTruthRecursion_variable C hQ hB (a+1) (G+1) (T+1) 0 (s+1))).existsParam hQ
theorem satisfactionWitness_variable (C : Context M) {Q B : ZFSet.{u}}
(hQ : Q ∈ M) (hB : B ∈ M) (a G H T z : ℕ) :
Definable M (fun e => SatisfactionWitness Q B (e G) (e H) (e a) (e T) (e z)) :=
((((truthWitness_variable C hQ hB (a+3) (G+3) (T+3) 2 0).and
((defPairMem C 2 1 0).and (defOrderedPair C (z+3) 2 1))).existsMem (H+2)).existsMem
(T+1)).existsParam C.omega_mem
theorem parameterAdequate_variable (C : Context M) {Q B : ZFSet.{u}}
(hQ : Q ∈ M) (hB : B ∈ M) (G c t : ℕ) :
Definable M (fun e => ParameterAdequate Q B (e G) (e c) (e t)) :=
((((defOrderedPair C (t+3) 2 1).and ((boundWitness_definable C hQ hB (c+3) 0).and
(defAllMem (defOr (member_definable C 0 3) (equal_definable C 0 3)) 0))).existsParam
C.omega_mem).existsMem (G+1)).existsParam C.omega_mem
theorem definesSubset_variable (C : Context M) (a G T Z c t S : ℕ) :
Definable M (fun e => DefinesSubset (e a) (e G) (e T) (e Z) (e c) (e t) (e S)) :=
(defSubset C S a).and (defAllMem (defIff (member_definable C 0 (S+1))
(((tuplePrefix_variable C (a+2) (G+2) (t+2) 1 0).and
(defPairMem C (c+2) 0 (Z+2))).existsMem (T+1))) a)
theorem definitionWitness_variable (C : Context M) {Q B : ZFSet.{u}}
(hQ : Q ∈ M) (hB : B ∈ M) (a G T Z S : ℕ) :
Definable M (fun e => DefinitionWitness Q B (e G) (e a) (e T) (e Z) (e S)) :=
(((parameterAdequate_variable C hQ hB (G+2) 1 0).and
(definesSubset_variable C (a+2) (G+2) (T+2) (Z+2) 1 0 (S+2))).existsMem (T+1)).existsParam C.omega_mem
end TuringRigidity.RelativeConstructible
end OAI

Xet Storage Details

Size:
5.6 kB
·
Xet hash:
3a132b2c4bc9b6a5ec4303068c224428bddd90cc3bebe925df460be88f0f0cea

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