OAI/Computability/UniqueGames/Machines/MachineRegularInternalRow.lean
145 declarations, 0 contain sorry, 0 declared as axioms
Physical construction of an internal regularization row
The input values belong on unary tapes. The cloud degree and the queried port are the only arithmetic parameters fixed in finite control. The stored cloud rotation supplies both the destination's local index and the return port. The final row contains the full fixed equality predicate.
- abbrev
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.Alphabetline 31 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.equalityBitsline 34Source documentation
This literal is independent of the graph input.
def equalityBits : List Bool := …
- theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.equalityBits_length_leline 37 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.emittedBitsline 40 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.emittedBits_lengthline 43 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.emittedBits_eq_rowline 48 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.selected_rotationline 63Source documentation
The address supplied to the physical lookup is the actual port-table row.
theorem selected_rotation {n q : Nat} (table : ExpanderTables.Table n q) (i : Fin n) (p : Fin q) : (ExpanderTableWords.rotationWords table)[q * i.val + p.val]? = some (q * (ExpanderTables.lookup table (i, p)).1.val + (ExpanderTables.lookup table (i, p)).2.val) := by … - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.selected_rotation_divline 70 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.selected_rotation_modline 78 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.rotationLookupTraceline 87Source documentation
A direct instantiation of the real affine getter on the actual rotor words.
theorem rotationLookupTrace {n q : Nat} (table : ExpanderTables.Table n q) (i : Fin n) (p : Fin q) (source : K) (tape : Fin 5 → K) (distinct : Function.Injective tape) (outside : ∀ a, source ≠ tape a) (labels : MachineAffineLookup.Label → Λ) (exit : Option Λ) (program : Λ → TM2.Stmt (Alphabet (K := K)) Λ (σ × Option Bool)) …Mentions: OAI.UniqueGamesTheorem.Foundations.Complexity.MachineAffineLookup.Label, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.Alphabet
- inductive
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.FinishLabelline 110 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.finishFieldsline 118Source documentation
Tail, selected global target, returned port, scratch, reverse field, equality field, row buffer, accumulated output.
def finishFields (tape : Fin 8 → K) : Fin 3 → K := fun i => …
- theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.finishFields_zeroline 122 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.finishFields_oneline 124 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.finishFields_twoline 126 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.finishInstructionline 130Source documentation
The return port is copied from its physical unary tape before fixed-slope arithmetic adds the actual selected global target.
def finishInstruction (q : Nat) (tape : Fin 8 → K) (labels : FinishLabel → Λ) (exit : Option Λ) : FinishLabel → TM2.Stmt (Alphabet (K := K)) Λ (σ × Option Bool) …Mentions: OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.FinishLabel, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.Alphabet
- def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.finishStepsline 149 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.finishSteps_leline 154 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.joinTraceline 161 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.finishTraceline 168Source documentation
Actual final arithmetic, full relation emission, row append and cleanup. The only changed tape is the accumulated output; both physical target fields and all metadata are preserved. No execution hypothesis is supplied.
theorem finishTrace (q : Nat) (tape : Fin 8 → K) (distinct : Function.Injective tape) (labels : FinishLabel → Λ) (exit : Option Λ) (program : Λ → TM2.Stmt (Alphabet (K := K)) Λ (σ × Option Bool)) …Mentions: OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.FinishLabel, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.Alphabet
- inductive
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.RotorLabelline 283 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.rotorLookupTapesline 288 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.rotorLookupTapes_injectiveline 292 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.rotorLookupTapes_outsideline 300 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.rotorInstructionline 307 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.rotorFinalTapesline 318 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.rotorStepsline 328 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.rotorTraceline 335Source documentation
The actual stored reverse row is read and physically divided by the fixed degree. Both output fields equal the coordinates of the actual table lookup.
theorem rotorTrace {n q : Nat} (positive : 0 < q) (table : ExpanderTables.Table n q) (i : Fin n) (p : Fin q) (tape : Fin 8 → K) (distinct : Function.Injective tape) (labels : RotorLabel q → Λ) (exit : Option Λ) (program : Λ → TM2.Stmt (Alphabet (K := K)) Λ (MachineFixedDivMod.State σ q)) …Mentions: OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.RotorLabel, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.Alphabet, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineFixedDivMod.State
- theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.rotorSteps_leline 414 - inductive
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.SelectExtraTapeline 424 - abbrev
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.SelectExtraTape.enumListline 429 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.SelectExtraTape.enumList_getElem?_ctorIdx_eqline 432 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.SelectExtraTape.enumList_nodupline 436 - instance
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.(instance at line 438)line 438 - abbrev
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.SelectTapeline 442 - abbrev
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.RawSelectAlphabetline 443 - abbrev
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.SelectAlphabetline 445 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.selectAlphabet_eqline 447 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.selectToBoolWordline 453 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.selectToBoolTapesline 458 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.alphabet_tapes_applyline 461 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.selectToBoolTapes_eqline 468 - abbrev
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.SelectStateline 476 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.selectStateEquivline 478 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.selectScratchline 484 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.selectQueryline 485 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.selectOutputline 486 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.compareSlotsline 488 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.subtractSlotsline 492 - inductive
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.SelectCopyline 496 - abbrev
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.SelectCopy.enumListline 500 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.SelectCopy.enumList_getElem?_ctorIdx_eqline 503 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.SelectCopy.enumList_nodupline 507 - instance
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.(instance at line 509)line 509 - inductive
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.SelectAddline 513 - abbrev
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.SelectAdd.enumListline 517 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.SelectAdd.enumList_getElem?_ctorIdx_eqline 519 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.SelectAdd.enumList_nodupline 523 - instance
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.(instance at line 525)line 525 - inductive
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.SelectAddStageline 529 - abbrev
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.SelectAddStage.enumListline 533 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.SelectAddStage.enumList_getElem?_ctorIdx_eqline 535 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.SelectAddStage.enumList_nodupline 539 - instance
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.(instance at line 541)line 541 - inductive
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.SelectControlline 545 - abbrev
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.SelectLabelline 554 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.copySourceline 556 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.copyDestinationline 562 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.afterCopyline 568 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.addSourceline 575 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.afterAddline 579 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.cleanupTapeline 583 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.afterCleanupline 586 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.selectControlline 589 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.rawSelectProgramline 613Source documentation
All arithmetic is on extra tapes. The old-dart branch literally contains the shared selector program, with only static tape, label and state transport.
def rawSelectProgram : SelectLabel → TM2.Stmt RawSelectAlphabet SelectLabel (SelectState σ) := …
Mentions: OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.SelectLabel, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.RawSelectAlphabet, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.SelectState
- def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.selectProgramline 619 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.selectProgram_controlline 622 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.selectCleanStateline 634 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.selectComparisonTraceline 639Source documentation
One physical strict comparison decides the branch and preserves both input indices. In particular equality belongs to the dummy branch.
theorem selectComparisonTrace (base : SelectTape → List Bool) (j k : Nat) (hj : base (.inr .localIndex) = encodeWord j) (hk : base (.inr .cloudSize) = encodeWord k) (hl : base (.inr .savedLeft) = []) (hr : base (.inr .savedRight) = []) (ambient : σ) (register : Option Bool) : (advance (TM2.step selectProgram))^[MachineUnaryLessAt.steps j k + 1] (some ⟨some (.inr (.compare .scan)), selectCleanState ambient register, base⟩) = some ⟨some (.inr (.copy (if j < k then .oldLocal else .dummyLocal) .seed)), selectCleanState ambient none, base⟩ := by …Mentions: OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.SelectTape, OAI.UniqueGamesTheorem.Foundations.Complexity.encodeWord, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.selectProgram, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineUnaryLessAt.steps, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.selectCleanState
- theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.selectCopyTraceline 662Source documentation
Actual preserving unary copy used to construct both the selector query and the dummy-index operands.
theorem selectCopyTrace (kind : SelectCopy) (base : SelectTape → List Bool) (a : Nat) (hword : base (copySource kind) = encodeWord a) (hscratch : base selectScratch = []) (ambient : σ) (register : Option Bool) : (advance (TM2.step selectProgram))^[2 * (a + 1) + 1] (some ⟨some (.inr (.copy kind .seed)), selectCleanState ambient register, base⟩) = some ⟨some (afterCopy kind), selectCleanState ambient none, Function.update base (copyDestination kind) (encodeWord a ++ base (copyDestination kind))⟩ := by …Mentions: OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.SelectCopy, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.SelectTape, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.copySource, OAI.UniqueGamesTheorem.Foundations.Complexity.encodeWord, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.selectScratch, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.selectProgram, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.selectCleanState, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.afterCopy, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.copyDestination
- theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.selectAddTraceline 683Source documentation
The two runtime addends are read physically; no input-dependent offset is captured by a single finite instruction.
theorem selectAddTrace (kind : SelectAdd) (base : SelectTape → List Bool) (a b : Nat) (hword : base (addSource kind) = encodeWord a) (houtput : base selectOutput = encodeWord b) (hscratch : base selectScratch = []) (ambient : σ) : (advance (TM2.step selectProgram))^[2 * (a + 1)] (some ⟨some (.inr (.add kind .scan)), selectCleanState ambient none, base⟩) = some ⟨some (afterAdd kind), selectCleanState ambient none, Function.update base selectOutput (encodeWord (a + b))⟩ := by …Mentions: OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.SelectAdd, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.SelectTape, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.addSource, OAI.UniqueGamesTheorem.Foundations.Complexity.encodeWord, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.selectOutput, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.selectScratch, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.selectProgram, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.selectCleanState, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.afterAdd
- abbrev
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.CoreTapeline 709 - abbrev
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.CoreStateline 710 - inductive
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.CoreLabelline 714 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.coreEntryline 721 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.selectCloudTraceline 725Source documentation
The shared cloud-selector trace is preserved exactly by static tape, register and alphabet transport. These transports add no transition.
theorem selectCloudTrace (t : GraphTables.Table) (v : Fin t.vertices) (i : Fin (PreprocessingCloudIndex.cloudSize t v)) (extra : SelectExtraTape → List Bool) (ambient : σ) (register : Option Bool) : (advance (TM2.step selectProgram))^[MachineCloudSelect.cloudSelectSteps t v i []] (some ⟨some (.inl (.inr .initialize)), selectCleanState ambient register, selectToBoolTapes (MachineEmbedding.tapes (MachineCloudSelect.memory (GraphTables.tableBits t) [] (MachineCloudSelect.queryWord v.val i.val []) [] [] [] []) extra)⟩) = some ⟨some (.inr (.cleanup 0)), selectCleanState ambient none, selectToBoolTapes (MachineEmbedding.tapes (MachineCloudSelect.memory (GraphTables.tableBits t) [] (MachineCloudSelect.queryWord v.val i.val []) [] [] [] …Mentions: OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.SelectExtraTape, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.selectProgram, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineCloudSelect.cloudSelectSteps, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.selectCleanState, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.selectToBoolTapes, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineEmbedding.tapes, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineCloudSelect.memory, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineCloudSelect.queryWord
- def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.selectExtraMemoryline 757 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.selectMemoryline 770 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.selectMemory_queryline 777 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.selectMemory_outputline 781 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.selectMemory_scratchline 785 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.selectMemory_extraline 789 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.update_selectMemory_queryline 794 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.update_selectMemory_outputline 806 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.update_selectMemory_localline 818 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.update_selectMemory_sizeline 830 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.update_selectMemory_leftline 842 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.update_selectMemory_rightline 854 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.selectCleanupTraceline 866 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.oldSelectStepsline 909 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.selectOldTraceline 914 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.dummySelectStepsline 958 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.dummySelectSteps_eqline 962 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.selectDummyTraceline 969Source documentation
The dummy branch uses the actual truncating-subtraction scan on copied operands. The original local index, cloud size, prefix and dart count survive.
theorem selectDummyTrace (graph : List Bool) (j v k o m : Nat) (hk : k ≤ j) (ambient : σ) : (advance (TM2.step selectProgram))^[dummySelectSteps j k o m] (some ⟨some (.inr (.copy .dummyLocal .seed)), selectCleanState ambient none, selectMemory graph j v k o m [] [] [] [] [] []⟩) = some ⟨none, selectCleanState ambient none, selectMemory graph j v k o m [] (encodeWord (m + o + (j - k))) [] [] [] []⟩ := by …Mentions: OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.selectProgram, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.dummySelectSteps, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.selectCleanState, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.selectMemory, OAI.UniqueGamesTheorem.Foundations.Complexity.encodeWord
- def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.selectionStepsline 1028 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.selectionTraceline 1038Source documentation
The entire actual selector program, with both runtime branches and the same clean final frame. Metadata values are premises about physical tapes.
theorem selectionTrace (t : GraphTables.Table) (padding : Fin t.vertices → Nat) (v : Fin t.vertices) (i : Fin (PreprocessingCloudIndex.cloudSize t v + padding v)) (ambient : σ) (register : Option Bool) : (advance (TM2.step selectProgram))^[selectionSteps t padding v i] (some ⟨some (.inr (.compare .scan)), selectCleanState ambient register, selectMemory (GraphTables.tableBits t) i.val v.val (PreprocessingCloudIndex.cloudSize t v) (PreprocessingPaddingOffsets.offset padding v.val) t.darts [] [] [] [] [] []⟩) = some ⟨none, selectCleanState ambient none, selectMemory (GraphTables.tableBits t) i.val v.val (PreprocessingCloudIndex.cloudSize t v) (PreprocessingPaddingOffsets.offset padding v.val) t.darts [] …Mentions: OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.selectProgram, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.selectionSteps, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.selectCleanState, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.selectMemory
- theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.selectionSteps_leline 1070 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.selectorMachineline 1091 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.selectionInTimeline 1102 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.coreRotorTapesline 1123Source documentation
The fixed core rotor roles use the agreed reusable 27-tape frame.
def coreRotorTapes : Fin 8 → CoreTape := ![3, 7, 10, 11, 12, 9, 13, 14]
Mentions: OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.CoreTape
- def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.coreFinishTapesline 1126Source documentation
Tail, selected destination, return port, scratch and emitted row fields.
def coreFinishTapes : Fin 8 → CoreTape := ![1, 15, 14, 9, 24, 25, 26, 8]
Mentions: OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.CoreTape
- def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.coreSelectTapeline 1128 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.coreSelectViewline 1146 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.coreSelectView_leftline 1155 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.coreSelectView_rightline 1163 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.coreCleanupTapeline 1168 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.coreRotorStateEquivline 1170 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.coreSelectStateEquivline 1179 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.coreAfterCleanupline 1186 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.coreInstructionline 1191Source documentation
The whole internal-row program has only fixed q and p in its code.
def coreInstruction (q : Nat) (positive : 0 < q) (p : Fin q) (labels : CoreLabel q → Λ) (exit : Option Λ) : CoreLabel q → TM2.Stmt (fun _ : CoreTape => Bool) Λ (CoreState σ q) | .rotor stage => MachineStateEquiv.statement (coreRotorStateEquiv σ q) (rotorInstruction q positive p coreRotorTapes (fun l => labels (.rotor l)) (some (labels (.select (.inr (.compare .scan))))) stage) | .select stage => MachineCloudPadding.Placement.statement coreSelectTape (fun l => labels (.select l)) (some (labels (.finish .seedReturn))) (MachineStateEquiv.statement (coreSelectStateEquiv σ q) (selectProgram stage)) | .finish stage => finishInstruction q coreFinishTapes (fun l => labels (.finish l)) (some (labels (.cleanup 0))) stage | .cleanup i => MachineDrain.drain (coreCleanupTape i) (labels (.cleanup i)) …Mentions: OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.CoreLabel, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.CoreTape, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.CoreState, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineStateEquiv.statement, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.coreRotorStateEquiv, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.rotorInstruction, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.coreRotorTapes, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineCloudPadding.Placement.statement, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.coreSelectTape, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.coreSelectStateEquiv, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.selectProgram, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.finishInstruction, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.coreFinishTapes, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineDrain.drain, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.coreCleanupTape
- def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.coreInitialStateline 1205 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.coreMachineline 1209 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.coreMemoryline 1220 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.coreMemory_update_outputline 1226 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.coreRotorTapes_injectiveline 1234 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.coreFinishTapes_injectiveline 1238 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.coreCleanedline 1242 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.coreCleanupStepsline 1247 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.coreCleanupTraceline 1252 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.coreCleaned_memoryline 1329 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.coreCleanupSteps_memoryline 1337 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.coreRotorFinalFrameline 1349 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.coreRotorTraceline 1365 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.coreSelectFrameline 1411 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.coreSelectionTraceline 1420 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.coreFinishTraceline 1455 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.coreInputTapesline 1487 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.coreStepsline 1497 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.coreTraceline 1514Source documentation
One full actual internal row of the serialized regularization, including the physical rotor lookup, both destination cases, full equality predicate, row append and complete reusable cleanup frame.
theorem coreTrace (q : Nat) (positive : 0 < q) (p : Fin q) (labels : CoreLabel q → Λ) (exit : Option Λ) (program : Λ → TM2.Stmt (fun _ : CoreTape => Bool) Λ (CoreState σ q)) (code : ∀ l, program (labels l) = coreInstruction q positive p labels exit l) (t : GraphTables.Table) (padding : Fin t.vertices → Nat) (tables : ∀ v, ExpanderTables.Table (PreprocessingCloudIndex.cloudSize t v + padding v) q) (v : Fin t.vertices) (x : PreprocessingCloudIndex.PaddedCloud t padding v) (output : List Bool) (ambient : σ) : (advance (TM2.step program))^[coreSteps t padding tables v x p output.length] (some ⟨some (labels (coreEntry q)), coreInitialState q positive ambient, coreInputTapes t padding tables v x output⟩) = some ⟨exit, coreInitialState q positive ambient, …Mentions: OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.CoreLabel, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.CoreTape, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.CoreState, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.coreInstruction, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.coreSteps, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.coreEntry, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.coreInitialState, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.coreInputTapes
- theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.selectedIndex_leline 1563Source documentation
A selected original dart is below the original dart count; a dummy target is the old-dart count plus its physical prefix and local remainder.
theorem selectedIndex_le (t : GraphTables.Table) (padding : Fin t.vertices → Nat) (v : Fin t.vertices) (i : Fin (PreprocessingCloudIndex.cloudSize t v + padding v)) : PreprocessingInternalRows.selectedIndex t padding v i ≤ t.darts + PreprocessingPaddingOffsets.offset padding v.val + i.val := by … - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.encodedDrop_length_leline 1574 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.rotorSize_le_encodedLengthline 1582Source documentation
Every rotor entry occupies at least its delimiter on the physical tape.
theorem rotorSize_le_encodedLength {n q : Nat} (positive : 0 < q) (table : ExpanderTables.Table n q) : n ≤ (encodeWords (ExpanderTableWords.rotationWords table)).length := by …Mentions: OAI.UniqueGamesTheorem.Foundations.Complexity.encodeWords
- def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.coreTimeBoundline 1592Source documentation
For fixed cloud degree q this is affine in the lengths and unary values on the actual input tapes. All relation/cleanup constants are included.
def coreTimeBound (q graphLength rotorLength x v i k o m outputLength : Nat) : Nat := …
- theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.coreSteps_leline 1596 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.coreMachineInTimeline 1662Source documentation
The concrete finite machine executes the actual internal row in the proved affine budget and returns the reusable clean frame.
def coreMachineInTime (q : Nat) (positive : 0 < q) (t : GraphTables.Table) (padding : Fin t.vertices → Nat) (tables : ∀ v, ExpanderTables.Table (PreprocessingCloudIndex.cloudSize t v + padding v) q) (v : Fin t.vertices) (x : PreprocessingCloudIndex.PaddedCloud t padding v) (p : Fin q) (output : List Bool) : StateTransition.EvalsToInTime (coreMachine q positive p).step ⟨some (coreEntry q), coreInitialState q positive (), coreInputTapes t padding tables v x output⟩ (some ⟨none, coreInitialState q positive (), coreInputTapes t padding tables v x (output ++ encodeWords (GraphTables.rowWords (PreprocessingInternalRows.row t padding tables v x p)))⟩) (coreTimeBound q (GraphTables.tableBits t).length (encodeWords (ExpanderTableWords.rotationWords (tables v))).length (PreprocessingRegularTables.vertexOrder t padding x.val).val v.val …Mentions: OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.coreMachine, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.coreEntry, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.coreInitialState, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.coreInputTapes, OAI.UniqueGamesTheorem.Foundations.Complexity.encodeWords, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineRegularInternalRow.coreTimeBound