OAI/Computability/MaxCut/Machines/GraphCounterFinish.lean
41 declarations, 0 contain sorry, 0 declared as axioms
Actual cleanup and emission of the counter followed by the preserved graph.
- def
OAI.MaxCutGames.Foundations.Complexity.GraphCounterFinish.extraTapesline 12 - def
OAI.MaxCutGames.Foundations.Complexity.GraphCounterFinish.frameline 17 - theorem
OAI.MaxCutGames.Foundations.Complexity.GraphCounterFinish.trace_trans_inline_GraphCounterFinishline 24 - theorem
OAI.MaxCutGames.Foundations.Complexity.GraphCounterFinish.start_eqline 28 - theorem
OAI.MaxCutGames.Foundations.Complexity.GraphCounterFinish.finish_eqline 41 - theorem
OAI.MaxCutGames.Foundations.Complexity.GraphCounterFinish.drainTraceline 53 - theorem
OAI.MaxCutGames.Foundations.Complexity.GraphCounterFinish.clockCopyTraceline 70 - theorem
OAI.MaxCutGames.Foundations.Complexity.GraphCounterFinish.archiveCopyTraceline 91 - theorem
OAI.MaxCutGames.Foundations.Complexity.GraphCounterFinish.reverseTraceline 113 - theorem
OAI.MaxCutGames.Foundations.Complexity.GraphCounterFinish.finishTraceline 138 - def
OAI.MaxCutGames.Foundations.Complexity.GraphCounterFinish.finishInTimeline 153 - def
OAI.MaxCutGames.Foundations.Complexity.GraphCounterPrefix.rawOutputline 171 - def
OAI.MaxCutGames.Foundations.Complexity.GraphCounterPrefix.rawInTimeline 174 - def
OAI.MaxCutGames.Foundations.Complexity.GraphCounterPrefix.countline 198 - def
OAI.MaxCutGames.Foundations.Complexity.GraphCounterPrefix.outputline 200 - def
OAI.MaxCutGames.Foundations.Complexity.GraphCounterPrefix.rowsBitsline 203 - theorem
OAI.MaxCutGames.Foundations.Complexity.GraphCounterPrefix.tableBits_decompositionline 206 - def
OAI.MaxCutGames.Foundations.Complexity.GraphCounterPrefix.outputsInTimeline 210 - def
OAI.MaxCutGames.Foundations.Complexity.GraphCounterPrefix.computableInPolyTimeline 216 - def
OAI.MaxCutGames.Foundations.Complexity.PCPIterationMachine.roundsline 246 - theorem
OAI.MaxCutGames.Foundations.Complexity.PCPIterationMachine.rounds_leline 248 - theorem
OAI.MaxCutGames.Foundations.Complexity.PCPIterationMachine.two_pow_rounds_leline 251 - theorem
OAI.MaxCutGames.Foundations.Complexity.PCPIterationMachine.growth_pow_rounds_leline 259Source documentation
The exponent is a fixed growth constant, independent of the input.
theorem growth_pow_rounds_le (growth n : Nat) : growth ^ rounds n ≤ (2 * (n + 1)) ^ growth := by …Mentions: OAI.MaxCutGames.Foundations.Complexity.PCPIterationMachine.rounds
- def
OAI.MaxCutGames.Foundations.Complexity.PCPIterationMachine.sizeEnvelopeline 267 - theorem
OAI.MaxCutGames.Foundations.Complexity.PCPIterationMachine.semanticSize_geometricline 270Source documentation
This recurrence concerns semantic cardinality, not unary encoding length.
theorem semanticSize_geometric (sizes : Nat → Nat) (growth n : Nat) (initialBound : sizes 0 ≤ n + 1) (growthBound : ∀ i, i < rounds n → sizes (i + 1) ≤ growth * sizes i) (i : Nat) (hi : i ≤ rounds n) : sizes i ≤ (n + 1) * growth ^ i := by …Mentions: OAI.MaxCutGames.Foundations.Complexity.PCPIterationMachine.rounds
- theorem
OAI.MaxCutGames.Foundations.Complexity.PCPIterationMachine.semanticSize_boundline 284 - def
OAI.MaxCutGames.Foundations.Complexity.PCPIterationMachine.sizePolynomialline 297 - theorem
OAI.MaxCutGames.Foundations.Complexity.PCPIterationMachine.sizePolynomial_evalline 300 - def
OAI.MaxCutGames.Foundations.Complexity.PCPIterationMachine.timePolynomialline 306Source documentation
A polynomial in initial semantic size; two extra steps include the final zero guard and actual halt. The encoding polynomial is applied once.
noncomputable def timePolynomial (growth : Nat) (encodingSize bodyTime : Polynomial Nat) : Polynomial Nat := … - theorem
OAI.MaxCutGames.Foundations.Complexity.PCPIterationMachine.timePolynomial_evalline 311 - abbrev
OAI.MaxCutGames.Foundations.Complexity.PCPIterationMachine.Alphabetline 319 - abbrev
OAI.MaxCutGames.Foundations.Complexity.PCPIterationMachine.Stateline 320 - abbrev
OAI.MaxCutGames.Foundations.Complexity.PCPIterationMachine.Labelsline 321 - def
OAI.MaxCutGames.Foundations.Complexity.PCPIterationMachine.programline 325Source documentation
A concrete guard and halt are added to the supplied body statements. The body may return to
Sum.inl false; it starts atSum.inr entry.def program (counter : K) (entry : Λ) (body : Λ → TM2.Stmt (Alphabet (K := K)) (Labels Λ) (State σ)) : …Mentions: OAI.MaxCutGames.Foundations.Complexity.PCPIterationMachine.Alphabet, OAI.MaxCutGames.Foundations.Complexity.PCPIterationMachine.Labels, OAI.MaxCutGames.Foundations.Complexity.PCPIterationMachine.State
- theorem
OAI.MaxCutGames.Foundations.Complexity.PCPIterationMachine.program_guardline 333 - def
OAI.MaxCutGames.Foundations.Complexity.PCPIterationMachine.machineline 340Source documentation
Finite packaging of the concrete control program. Callers supply a fixed finite body; no input-dependent collection of labels or states is introduced.
def machine [Fintype K] [Fintype Λ] [Fintype σ] (counter output : K) (entry : Λ) (initial : σ) (body : Λ → TM2.Stmt (Alphabet (K := K)) (Labels Λ) (State σ)) : FinTM2 where …Mentions: OAI.MaxCutGames.Foundations.Complexity.PCPIterationMachine.Alphabet, OAI.MaxCutGames.Foundations.Complexity.PCPIterationMachine.Labels, OAI.MaxCutGames.Foundations.Complexity.PCPIterationMachine.State
- def
OAI.MaxCutGames.Foundations.Complexity.PCPIterationMachine.haltedConfigurationline 353 - theorem
OAI.MaxCutGames.Foundations.Complexity.PCPIterationMachine.haltStepline 358 - theorem
OAI.MaxCutGames.Foundations.Complexity.PCPIterationMachine.iterationTraceline 371Source documentation
Full loop execution including the final transition that consumes the counter delimiter and halts, retaining the unread suffix. The only supplied execution hypotheses concern individual body calls in this same program.
theorem iterationTrace (counter : K) (entry : Λ) (body : Λ → TM2.Stmt (Alphabet (K := K)) (Labels Λ) (State σ)) …Mentions: OAI.MaxCutGames.Foundations.Complexity.PCPIterationMachine.Alphabet, OAI.MaxCutGames.Foundations.Complexity.PCPIterationMachine.Labels, OAI.MaxCutGames.Foundations.Complexity.PCPIterationMachine.State
- theorem
OAI.MaxCutGames.Foundations.Complexity.PCPIterationMachine.bodyCosts_boundline 390Source documentation
Actual body costs are bounded through a semantic-size sequence and a separate encoding polynomial. Index
rounds n - (r+1)is the forward round corresponding to the unary guard's remaining-count indexr.theorem bodyCosts_bound (growth n : Nat) (growthPositive : 0 < growth) (sizes encodedSizes cost : Nat → Nat) (encodingSize bodyTime : Polynomial Nat) (initialBound : sizes 0 ≤ n + 1) (growthBound : ∀ i, i < rounds n → sizes (i + 1) ≤ growth * sizes i) (encodingBound : ∀ r, r < rounds n → encodedSizes r ≤ encodingSize.eval (sizes (rounds n - (r + 1)))) (bodyCost : ∀ r, r < rounds n → cost r ≤ bodyTime.eval (encodedSizes r)) : ∀ r, r < rounds n → cost r ≤ bodyTime.eval (encodingSize.eval (sizeEnvelope growth n)) := by …Mentions: OAI.MaxCutGames.Foundations.Complexity.PCPIterationMachine.rounds, OAI.MaxCutGames.Foundations.Complexity.PCPIterationMachine.sizeEnvelope
- def
OAI.MaxCutGames.Foundations.Complexity.PCPIterationMachine.iterationInTimeline 409Source documentation
Timed execution of the concrete guard/body/halt program. This compositional interface is not a certificate for an unprovided graph-transformation body.
def iterationInTime (counter : K) (entry : Λ) (body : Λ → TM2.Stmt (Alphabet (K := K)) (Labels Λ) (State σ)) …Mentions: OAI.MaxCutGames.Foundations.Complexity.PCPIterationMachine.Alphabet, OAI.MaxCutGames.Foundations.Complexity.PCPIterationMachine.Labels, OAI.MaxCutGames.Foundations.Complexity.PCPIterationMachine.State