OAI/Computability/MaxCut/Machines/MachineRegularTableTrace.lean
72 declarations, 0 contain sorry, 0 declared as axioms
Polynomial bounds for the actual regularization subcalls. These lemmas bound the established step counts; they do not assume any machine execution.
- theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularTable.Top.joinTraceRegularTableTrace_inline_MachineRegularTableTraceline 11 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularTable.Top.normalizeEmptyAppend_inline_MachineRegularTableTraceline 15 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularTable.Top.headerStartTraceline 19 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularTable.Top.headerOldTraceline 31 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularTable.Top.beforeCleanupTraceline 47 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularTable.Top.cleanupFinalTraceline 63 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularTable.Top.fullTraceline 71 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularTable.Top.update_frame_outputline 79 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularTable.Top.input_stacks_eqline 92 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularTable.Top.initial_cfg_eqline 114 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularTable.Top.traceline 125Source documentation
Complete execution from the actual serialized input. All header reads, metadata, geometric rotors, rows, counters and cleanup are run by this one finite machine. No body trace or target-table computation is supplied as a premise.
theorem trace (H : BaseTable) (t : GraphTables.Table) : (advance (TM2.step (program H)))^[totalTime H t] (some (Turing.initList (machine H) (GraphTables.tableBits t))) = some ⟨none, readyState H, Function.update (Turing.initList (machine H) (GraphTables.tableBits t)).stk (coreTape 8) (PortTables.tableBits (PreprocessingRegularTables.regularize H t))⟩ := by …Mentions: OAI.MaxCutGames.Foundations.Complexity.MachineRegularTable.Top.BaseTable, OAI.MaxCutGames.Foundations.Complexity.MachineRegularTable.Top.program, OAI.MaxCutGames.Foundations.Complexity.MachineRegularTable.Top.totalTime, OAI.MaxCutGames.Foundations.Complexity.MachineRegularTable.Top.machine, OAI.MaxCutGames.Foundations.Complexity.MachineRegularTable.Top.readyState, OAI.MaxCutGames.Foundations.Complexity.MachineRegularTable.Top.coreTape
- theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularExecutionBounds.coreTimeBound_monoline 158 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularExecutionBounds.corePolynomialline 165 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularExecutionBounds.corePolynomial_evalline 173 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularExecutionBounds.internal_steps_leline 182 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularExecutionBounds.familyPolynomialline 201 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularExecutionBounds.family_budget_leline 206Source documentation
The completed reusable family call includes the three actual drains.
theorem family_budget_le (t : GraphTables.Table) (v : Fin t.vertices) : MachinePaddedExpanderFamilyBounds.timePolynomial.eval (cloudSize t v + 1) + 2 * ExpanderFamily.growth * (cloudSize t v + 1) + 7 ≤ familyPolynomial.eval (inputLength t) := by … - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularExecutionBounds.rowPolynomialline 219Source documentation
A generous serialized-row bound evaluated at the actual linear vertex cap.
noncomputable def rowPolynomial (q : Nat) : Polynomial Nat := …
- theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularExecutionBounds.rowPolynomial_evalline 223 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularExecutionBounds.actual_row_bound_leline 229 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularExecutionBounds.blockCorePolynomialline 237Source documentation
The inner port loop can grow the old prefix by at most
qcomplete rows.noncomputable def blockCorePolynomial (q : Nat) : Polynomial Nat := …
- theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularExecutionBounds.coreTimeBound_add_outputline 240 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularExecutionBounds.block_core_bound_leline 248Source documentation
Uniform cap for the actual affine bound used by the port-loop wrapper, including all rows it may already have appended during this vertex.
theorem block_core_bound_le (q : Nat) (t : GraphTables.Table) (tables : ∀ v, ExpanderTables.Table (cloudSize t v + padding t v) q) (v : Fin t.vertices) (x : PaddedCloud t (padding t) v) (initialOutput : Nat) (houtput : initialOutput ≤ regularPolynomial.eval (inputLength t)) : coreTimeBound q (GraphTables.tableBits t).length (encodeWords (ExpanderTableWords.rotationWords (tables v))).length (vertexOrder t (padding t) x.val).val v.val (paddedCloudRank t (padding t) v x).val (cloudSize t v) (PreprocessingPaddingOffsets.offset (padding t) v.val) t.darts (initialOutput + q * (vertexCount t (padding t) + vertexCount t (padding t) * (q + 1) + 8192)) ≤ (blockCorePolynomial q).eval (inputLength t) := by …Mentions: OAI.MaxCutGames.Foundations.Complexity.encodeWords, OAI.MaxCutGames.Foundations.Complexity.MachineRegularExecutionBounds.blockCorePolynomial
- def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOriginalBodyBounds.wideline 286 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOriginalBodyBounds.rowPolynomialline 287 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOriginalBodyBounds.outputPolynomialline 289 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOriginalBodyBounds.corePolynomialline 291 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOriginalBodyBounds.blockPolynomialline 295 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOriginalBodyBounds.cleanupPolynomialline 298 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOriginalBodyBounds.timePolynomialline 299 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOriginalBodyBounds.bodySizeline 303 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOriginalBodyBounds.blockPolynomial_evalline 306 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOriginalBodyBounds.originalTimeBound_leline 321 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOriginalBodyBounds.wide_leline 332 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOriginalBodyBounds.vertexSteps_leline 342 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOriginalBodyBounds.clearSteps_frameline 368 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOriginalBodyBounds.cleanupSteps_leline 375 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOriginalBodyBounds.totalSteps_leline 406 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOriginalBodyBounds.originalInTimeline 424 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBodyBounds.bodySizeline 449 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBodyBounds.wideline 452 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBodyBounds.rowPolynomialline 454 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBodyBounds.outputPolynomialline 457 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBodyBounds.corePolynomialline 460 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBodyBounds.blockPolynomialline 465 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBodyBounds.blockPolynomial_evalline 469 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBodyBounds.dummyTimeBound_leline 485 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBodyBounds.wide_leline 496 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBodyBounds.ownerPrefix_length_leline 508Source documentation
Any finite prefix inside this owner is a part of the actual output table, including when the supplied prefix length is larger than the number of blocks.
theorem ownerPrefix_length_le (H : BaseTable) (t : GraphTables.Table) (v : Fin t.vertices) (n : Nat) : (blocksPrefix (PreprocessingRegularWords.dummyVertexBits t (padding t) (familyCloudTable H t) v) n).length ≤ regularPolynomial.eval (inputLength t) := by … - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBodyBounds.growingOutput_length_leline 516 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBodyBounds.dummySteps_leline 529Source documentation
One actual dummy block has a uniform polynomial cost at every prefix of the owner loop. The only inputs are the real table, indices, and old output.
theorem dummySteps_le (H : BaseTable) (t : GraphTables.Table) (v : Fin t.vertices) (j : Fin (padding t v)) (n : Nat) (output : List Bool) : MachineRegularVertexBlock.dummySteps t (padding t) (familyCloudTable H t) v j (output ++ blocksPrefix (PreprocessingRegularWords.dummyVertexBits t (padding t) (familyCloudTable H t) v) n).length ≤ (blockPolynomial internalDegree).eval (bodySize t output) := by …Mentions: OAI.MaxCutGames.Foundations.Complexity.MachineRegularVertexBlock.dummySteps, OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBodyBounds.blockPolynomial, OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBodyBounds.bodySize
- def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBodyBounds.prePolynomialline 560 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBodyBounds.loopPolynomialline 563 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBodyBounds.cleanupPolynomialline 566 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBodyBounds.timePolynomialline 569 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBodyBounds.preSteps_leline 573 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBodyBounds.loopSteps_leline 592 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBodyBounds.allLoopSteps_leline 609 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBodyBounds.cleanupSteps_workingline 622Source documentation
Exact cost of the six physical drain loops and the prefix addition, expressed through the actual entry stack lengths.
theorem cleanupSteps_working (data : MachineRegularOwnerBody.Data) (fuel saved : List Bool) (d : Nat) : MachineRegularOwnerCleanup.steps (MachineRegularOwnerBody.working data fuel saved) d = 2*(d+1) + data.localRank.length + data.count.length + data.rotor.length + data.padding.length + data.level.length + fuel.length + 6 := by …Mentions: OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.Data, OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerCleanup.steps, OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.working
- theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBodyBounds.cleanupCost_leline 632 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBodyBounds.ownerTime_leline 671Source documentation
The whole owner budget follows from the real recurrence and its separately proved stage bounds. The zero-padding branch performs no family or vertex work.
theorem ownerTime_le (H : BaseTable) (t : GraphTables.Table) (v : Fin t.vertices) (output : List Bool) : MachineRegularOwnerBody.ownerTime H t v output ≤ timePolynomial.eval (bodySize t output) := by …Mentions: OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBody.ownerTime, OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBodyBounds.bodySize
- theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBodyBounds.totalSteps_leline 688 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularOwnerBodyBounds.ownerInTimeline 693 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularTable.Top.oldLoopPolynomialline 715 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularTable.Top.ownerLoopPolynomialline 720 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularTable.Top.timePolynomialline 725 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularTable.Top.oldElapsed_prefix_leline 731 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularTable.Top.oldElapsed_leline 753 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularTable.Top.ownerElapsed_prefix_leline 761 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularTable.Top.ownerElapsed_leline 785 - theorem
OAI.MaxCutGames.Foundations.Complexity.MachineRegularTable.Top.totalTime_leline 794 - def
OAI.MaxCutGames.Foundations.Complexity.MachineRegularTable.Top.machineInTimeline 810