OAI/Computability/MaxCut/Machines/MachineRegularOwnerProgram.lean
100 declarations, 0 contain sorry, 0 declared as axioms
Actual dummy-owner body of regularization
The owner is a physically stored unary index. The code computes its cloud metadata, initializes local index and fuel, skips the family computation when padding is zero, and otherwise generates one rotor for all dummy vertices of this owner. Each vertex iteration consumes one fuel bit and increments both physical vertex indices. The final checked addition and cleanup leave only the updated global index, prefix, and accumulated output.
- abbrev
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.Tapeline 25 - abbrev
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.Alphabetline 26 - abbrev
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.Stateline 27 - abbrev
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.Dataline 28 - abbrev
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.CoreStateline 29 - abbrev
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.MetaStateline 30 - abbrev
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.FamilyStateline 31 - abbrev
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.BaseTableline 32 - instance
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.(instance at line 34)line 34 - instance
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.(instance at line 35)line 35 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.coreline 37 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.paddingTapeline 38 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.levelTapeline 39 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.dummyFuelline 40 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.scratchline 41 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.readyStateline 43 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.metadataTapeline 45 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.metadataViewline 48 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.familyTapeline 52 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.familyViewline 55 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.vertexViewline 59 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.metadataView_leftline 63 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.metadataView_rightline 66 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.familyView_leftline 72 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.familyView_rightline 75 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.vertexView_leftline 81 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.vertexView_rightline 83 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.metadataStatesline 89 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.familyStatesline 95 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.vertexStatesline 101 - inductive
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.Labelline 107 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.entryline 119 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.programline 121 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.workingline 154 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.frameline 158 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.cfgline 160 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.initialDataline 163 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.metadataDataline 176 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.seededDataline 179 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.ownerBitsline 182 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.finalDataline 185 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.joinTrace_inline_MachineRegularOwnerBodyline 202 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.oneStep_inline_MachineRegularOwnerBodyline 206 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.metadataPlacementline 210 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.metadataTraceline 221Source documentation
Actual cloud metadata, with every outer register and tape preserved.
theorem metadataTrace (H : BaseTable) (t : GraphTables.Table) (v : Fin t.vertices) (output : List Bool) : (advance (TM2.step (program H)))^[MachineCloudPadding.totalTime t v] (some (cfg H (some entry) (initialData t v output))) = some (cfg H (some (.copyCount .seed)) (metadataData t v output)) := by …Mentions: OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.BaseTable, OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.program, OAI.MaxCutGames.Foundations.Complexity.MachineCloudPadding.totalTime, OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.cfg, OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.entry, OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.initialData, OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.metadataData
- theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.working_update_localline 238 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.working_update_fuelline 252 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.working_update_globalline 259 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.working_update_outputline 273 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.copyCountTraceline 288Source documentation
The local rank starts at the actual cloud size, copied from its physical tape.
theorem copyCountTrace (H : BaseTable) (t : GraphTables.Table) (v : Fin t.vertices) (output : List Bool) : (advance (TM2.step (program H)))^[2 * (cloudSize t v + 1) + 1] (some (cfg H (some (.copyCount .seed)) (metadataData t v output))) = some (cfg H (some (.copyFuel .seed)) (seededData t v output)) := by …Mentions: OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.BaseTable, OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.program, OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.cfg, OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.metadataData, OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.seededData
- theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.copyFuelTraceline 305Source documentation
Padding fuel is another preserved unary copy; it is never a control parameter.
theorem copyFuelTrace (H : BaseTable) (t : GraphTables.Table) (v : Fin t.vertices) (output : List Bool) : (advance (TM2.step (program H)))^[2 * (padding t v + 1) + 1] (some (cfg H (some (.copyFuel .seed)) (seededData t v output))) = some ⟨some .guard, readyState H, working (seededData t v output) (encodeWord (padding t v)) []⟩ := by …Mentions: OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.BaseTable, OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.program, OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.cfg, OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.seededData, OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.readyState, OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.working, OAI.MaxCutGames.Foundations.Complexity.encodeWord
- theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.guardZeroStepline 322 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.guardPositiveStepline 328 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.dummyBitsline 337 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.vertexDataline 341 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.loopDataline 348 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.loopFrameline 352 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.preStepsline 356 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.loopStepsline 360 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.cleanupCostline 367 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.ownerTimeline 373 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.familyPlacementline 379 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.familyResultPlacementline 388 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.familyExecutionline 399 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.familyStepsline 405 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.familyTraceline 409 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.coreFrame_eqline 429 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.vertexPlacementline 447 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.vertexTraceline 463Source documentation
A complete actual dummy vertex block, with the owner's fuel left untouched.
theorem vertexTrace (H : BaseTable) (t : GraphTables.Table) (v : Fin t.vertices) (j : Fin (padding t v)) (output fuel : List Bool) : (advance (TM2.step (program H)))^[ MachineRegularVertexBlock.dummySteps t (padding t) (familyCloudTable H t) v j output.length] (some ⟨some (.vertex (MachineRegularVertexBlock.dummyEntry internalDegree MachineRegularOriginalBody.degree_positive)), readyState H, working (vertexData H t v j.val output) fuel []⟩) = some ⟨some .bump, readyState H, working (vertexData H t v j.val (output ++ dummyBits H t v j)) fuel []⟩ := by …Mentions: OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.BaseTable, OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.program, OAI.MaxCutGames.Foundations.Complexity.MachineRegularVertexBlock.dummySteps, OAI.MaxCutGames.Foundations.Complexity.MachineRegularVertexBlock.dummyEntry, OAI.MaxCutGames.Foundations.Complexity.MachineRegularOriginalBody.degree_positive, OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.readyState, OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.working, OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.vertexData, OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.dummyBits
- theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.working_fuelline 487 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.working_scratchline 490 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.loopPositiveStepline 493 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.loopZeroStepline 504 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.bumpStepline 509 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.loopPrefixTraceline 519 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.preparationTraceline 547 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.cleanupFrameline 556 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.ownerBits_zeroline 597 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.cleanupZeroFrameline 604 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.cleanupLoopFrameline 614 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.cleanupZeroTraceline 625 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.cleanupLoopTraceline 639 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.loopTraceline 653 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.ownerInTimeline 671Source documentation
Actual complete owner execution, including the genuinely empty padding case. The bound is assembled from proven component bounds; its family term is not used as an exact number of transitions.
noncomputable def ownerInTime (H : BaseTable) (t : GraphTables.Table) (v : Fin t.vertices) (output : List Bool) : StateTransition.EvalsToInTime (TM2.step (program H)) (cfg H (some entry) (initialData t v output)) (some (cfg H none (finalData H t v output))) (ownerTime H t v output) := by …Mentions: OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.BaseTable, OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.program, OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.cfg, OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.entry, OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.initialData, OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.finalData, OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.ownerTime
- def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.totalStepsline 703 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.ownerTraceline 706 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.totalSteps_leline 712 - def
OAI.MaxCutGames.Foundations.PCP.PreprocessingMachineBounds.inputLengthline 725 - theorem
OAI.MaxCutGames.Foundations.PCP.PreprocessingMachineBounds.cloudSize_le_inputline 727 - theorem
OAI.MaxCutGames.Foundations.PCP.PreprocessingMachineBounds.cloudTotal_le_inputline 731 - theorem
OAI.MaxCutGames.Foundations.PCP.PreprocessingMachineBounds.level_le_inputline 737 - theorem
OAI.MaxCutGames.Foundations.PCP.PreprocessingMachineBounds.regularVertices_le_inputline 741 - theorem
OAI.MaxCutGames.Foundations.PCP.PreprocessingMachineBounds.offset_le_sumline 746 - theorem
OAI.MaxCutGames.Foundations.PCP.PreprocessingMachineBounds.prefix_le_inputline 757 - def
OAI.MaxCutGames.Foundations.PCP.PreprocessingMachineBounds.tablePolynomialline 766Source documentation
A two-parameter bound for the complete unary graph codec.
noncomputable def tablePolynomial (a b : Nat) : Polynomial Nat := …
- theorem
OAI.MaxCutGames.Foundations.PCP.PreprocessingMachineBounds.tableBits_le_of_countsline 771 - def
OAI.MaxCutGames.Foundations.PCP.PreprocessingMachineBounds.regularPolynomialline 781 - theorem
OAI.MaxCutGames.Foundations.PCP.PreprocessingMachineBounds.regularBits_leline 784 - def
OAI.MaxCutGames.Foundations.PCP.PreprocessingMachineBounds.rotorPolynomialline 798 - theorem
OAI.MaxCutGames.Foundations.PCP.PreprocessingMachineBounds.cloudRotorBits_leline 802