Model-internal safe reachability and omega-induction scan-loop bundle for the 207-state TM
Definitionpalomar_zf207_tm_gadgetscomputabilitylogicset-theoryturing-machines
Defines the model-internal safe reachability relation and the scan-loop interface for the 207-state Turing machine inside an arbitrary model of . The bundle packages:
- Existence, uniqueness, recursion equations, additivity, and positivity of the internal exponentiation and trailing-garbage encoding .
- Reflexivity and single-step lifting of .
- All six arbitrary-length tape-scanning loops (scanning right across keeping or erasing, scanning right across filling or keeping, scanning left across or ) and the combined nonstandard trailing-garbage shift-right/scan-left loop (
shift_right_1_81_and_back_tail), all parameterized over arbitrary (possibly nonstandard) .
Definition code
import Definitions.Def_palomar_zf207_history
import Definitions.Def_palomar_zf207_internal_tm
import Definitions.Def_palomar_zf207_tm_check
namespace PalomarZF207TMGadgets
open PalomarZF207History
open PalomarZF207InternalTM
open PalomarZF207TMCheck
/-- Model-internal safe reachability between `(q, l, r)` and `(q', l', r')`. -/
def SafeReachV {V : Type} (E : V → V → Prop)
(q : Nat) (l r : V) (q' : Nat) (l' r' : V) : Prop :=
NatObject E l → NatObject E r →
∀ qv c, Numeral E q qv → NumericConfCode E ⟨qv, l, r⟩ c →
∃ q'v c', Numeral E q' q'v ∧ NumericConfCode E ⟨q'v, l', r'⟩ c' ∧ InternalReach E c c'
/-- Bundled internal `Pow2`/`TailBitsV` algebra, basic `InternalReach` steps, and all 7 `ω`-induction scan loops. -/
def InternalScanBundle {V : Type} (E : V → V → Prop) : Prop :=
(∀ n, NatObject E n → ∃ p, Pow2 E n p) ∧
(∀ n p₁ p₂, Pow2 E n p₁ → Pow2 E n p₂ → p₁ = p₂) ∧
(∀ z one, Empty E z → Numeral E 1 one → Pow2 E z one) ∧
(∀ n p ns two p2, Pow2 E n p → Succ E n ns → Numeral E 2 two → Mul E two p p2 → Pow2 E ns p2) ∧
(∀ a b ab pa pb pab, Pow2 E a pa → Pow2 E b pb → Add E a b ab → Mul E pa pb pab → Pow2 E ab pab) ∧
(∀ n p, Pow2 E n p → ¬ Empty E p) ∧
(∀ t, NatObject E t → ∃ r, TailBitsV E t r) ∧
(∀ t r₁ r₂, TailBitsV E t r₁ → TailBitsV E t r₂ → r₁ = r₂) ∧
(∀ z, Empty E z → TailBitsV E z z) ∧
(∀ t r ts six eight prod res, TailBitsV E t r → Succ E t ts → Numeral E 6 six → Numeral E 8 eight →
Mul E eight r prod → Add E six prod res → TailBitsV E ts res) ∧
(∀ c, NatObject E c → InternalReach E c c) ∧
(∀ c1 c2, NumericStep E c1 c2 → InternalReach E c1 c2) ∧
(∀ q, q < 207 → (fastRow q).2 = some (true, true, q) →
∀ n o p left suf ps rs pl rl, Ones E n o → Pow2 E n p → NatObject E left → NatObject E suf →
Mul E p suf ps → Add E o ps rs → Mul E p left pl → Add E o pl rl →
SafeReachV E q left rs q rl suf) ∧
(∀ q, q < 207 → (fastRow q).2 = some (false, true, q) →
∀ n o p left suf ps rs pl, Ones E n o → Pow2 E n p → NatObject E left → NatObject E suf →
Mul E p suf ps → Add E o ps rs → Mul E p left pl →
SafeReachV E q left rs q pl suf) ∧
(∀ q, q < 207 → (fastRow q).1 = some (true, true, q) →
∀ n o p left suf ps pl rl, Ones E n o → Pow2 E n p → NatObject E left → NatObject E suf →
Mul E p suf ps → Mul E p left pl → Add E o pl rl →
SafeReachV E q left ps q rl suf) ∧
(∀ q, q < 207 → (fastRow q).1 = some (false, true, q) →
∀ n p left suf ps pl, Pow2 E n p → NatObject E left → NatObject E suf →
Mul E p suf ps → Mul E p left pl →
SafeReachV E q left ps q pl suf) ∧
(∀ q, q < 207 → (fastRow q).2 = some (true, false, q) →
∀ n o p left suf pl rl s1 ps1 rs1, Ones E n o → Pow2 E n p → NatObject E left → NatObject E suf →
Mul E p left pl → Add E o pl rl → BitCons E true suf s1 → Mul E p s1 ps1 → Add E o ps1 rs1 →
SafeReachV E q rl s1 q left rs1) ∧
(∀ q, q < 207 → (fastRow q).1 = some (false, false, q) →
∀ n sn p psn left suf pl s0 psns, Pow2 E n p → Succ E n sn → Pow2 E sn psn →
NatObject E left → NatObject E suf → Mul E p left pl → BitCons E false suf s0 → Mul E psn suf psns →
SafeReachV E q pl s0 q left psns) ∧
(∀ t st a sa L oa pa pL X osa psa psL Y tb stb,
TailBitsV E t tb → Succ E t st → TailBitsV E st stb →
Ones E a oa → Pow2 E a pa → NatObject E L → Mul E pa L pL → Add E oa pL X →
Succ E a sa → Ones E sa osa → Pow2 E sa psa → Mul E psa L psL → Add E osa psL Y →
SafeReachV E 1 X tb 50 Y stb)
end PalomarZF207TMGadgets
Source
James Chang, Nonhalting and ZF-independence for a 207-state Turing machine, Sections 2 and 6 (internalized tape-scanning loops over models of ZF)