OAI/Computability/MaxCut/PCP/ContextPrepare.lean
88 declarations, 0 contain sorry, 0 declared as axioms
- abbrev
OAI.MaxCutGames.Foundations.Hastad.SourceContextPrepare.Arenaline 13 - abbrev
OAI.MaxCutGames.Foundations.Hastad.SourceContextPrepare.LoadStateline 14 - abbrev
OAI.MaxCutGames.Foundations.Hastad.SourceContextPrepare.PrepareStateline 15 - abbrev
OAI.MaxCutGames.Foundations.Hastad.SourceContextPrepare.Stateline 16 - abbrev
OAI.MaxCutGames.Foundations.Hastad.SourceContextPrepare.Labelline 17 - def
OAI.MaxCutGames.Foundations.Hastad.SourceContextPrepare.prepareEntryline 21 - def
OAI.MaxCutGames.Foundations.Hastad.SourceContextPrepare.stateSwapline 25 - def
OAI.MaxCutGames.Foundations.Hastad.SourceContextPrepare.programline 28 - def
OAI.MaxCutGames.Foundations.Hastad.SourceContextPrepare.preparationConfigurationline 34 - theorem
OAI.MaxCutGames.Foundations.Hastad.SourceContextPrepare.preparation_stepline 42 - def
OAI.MaxCutGames.Foundations.Hastad.SourceContextPrepare.initialStateline 61 - def
OAI.MaxCutGames.Foundations.Hastad.SourceContextPrepare.finalStateline 65 - def
OAI.MaxCutGames.Foundations.Hastad.SourceContextPrepare.loadInTimeline 70 - def
OAI.MaxCutGames.Foundations.Hastad.SourceContextPrepare.signatureInTimeline 91 - def
OAI.MaxCutGames.Foundations.Hastad.SourceContextPrepare.prepareInTimeline 113 - def
OAI.MaxCutGames.Foundations.Hastad.SourceContextPrepare.machineline 135 - inductive
OAI.MaxCutGames.Foundations.Hastad.SourceLoopInit.HeaderTapeline 155 - abbrev
OAI.MaxCutGames.Foundations.Hastad.SourceLoopInit.HeaderTape.enumListline 158 - theorem
OAI.MaxCutGames.Foundations.Hastad.SourceLoopInit.HeaderTape.enumList_getElem?_ctorIdx_eqline 160 - theorem
OAI.MaxCutGames.Foundations.Hastad.SourceLoopInit.HeaderTape.enumList_nodupline 164 - instance
OAI.MaxCutGames.Foundations.Hastad.SourceLoopInit.(instance at line 166)line 166 - abbrev
OAI.MaxCutGames.Foundations.Hastad.SourceLoopInit.Tapeline 170 - inductive
OAI.MaxCutGames.Foundations.Hastad.SourceLoopInit.Labelline 172 - def
OAI.MaxCutGames.Foundations.Hastad.SourceLoopInit.variableHeaderline 180 - def
OAI.MaxCutGames.Foundations.Hastad.SourceLoopInit.clauseHeaderline 181 - def
OAI.MaxCutGames.Foundations.Hastad.SourceLoopInit.headerDestinationline 182 - def
OAI.MaxCutGames.Foundations.Hastad.SourceLoopInit.readStartline 183 - def
OAI.MaxCutGames.Foundations.Hastad.SourceLoopInit.readLoopline 184 - def
OAI.MaxCutGames.Foundations.Hastad.SourceLoopInit.labelAtline 185 - def
OAI.MaxCutGames.Foundations.Hastad.SourceLoopInit.programline 187 - theorem
OAI.MaxCutGames.Foundations.Hastad.SourceLoopInit.atReadStartline 206 - theorem
OAI.MaxCutGames.Foundations.Hastad.SourceLoopInit.atReadLoopline 211 - theorem
OAI.MaxCutGames.Foundations.Hastad.SourceLoopInit.atReadDoneline 216 - def
OAI.MaxCutGames.Foundations.Hastad.SourceLoopInit.copiedInputline 222 - def
OAI.MaxCutGames.Foundations.Hastad.SourceLoopInit.readOutputline 225 - def
OAI.MaxCutGames.Foundations.Hastad.SourceLoopInit.headerOutputline 229 - theorem
OAI.MaxCutGames.Foundations.Hastad.SourceLoopInit.clear_readOutputline 234 - theorem
OAI.MaxCutGames.Foundations.Hastad.SourceLoopInit.readOutput_workline 244 - theorem
OAI.MaxCutGames.Foundations.Hastad.SourceLoopInit.headerOutput_frameline 249 - def
OAI.MaxCutGames.Foundations.Hastad.SourceLoopInit.headerInTimeline 253 - def
OAI.MaxCutGames.Foundations.Hastad.SourceLoopInit.digitOutputline 289 - theorem
OAI.MaxCutGames.Foundations.Hastad.SourceLoopInit.digitOutput_frameline 292 - def
OAI.MaxCutGames.Foundations.Hastad.SourceLoopInit.digitInTimeline 296 - def
OAI.MaxCutGames.Foundations.Hastad.SourceLoopInit.stageTapesline 339 - theorem
OAI.MaxCutGames.Foundations.Hastad.SourceLoopInit.stageTapes_frameline 344 - theorem
OAI.MaxCutGames.Foundations.Hastad.SourceLoopInit.stageTapes_currentline 355 - theorem
OAI.MaxCutGames.Foundations.Hastad.SourceLoopInit.stageTapes_remainingline 375 - def
OAI.MaxCutGames.Foundations.Hastad.SourceLoopInit.prefixInTimeline 396 - def
OAI.MaxCutGames.Foundations.Hastad.SourceLoopInit.digitsInTimeline 424 - def
OAI.MaxCutGames.Foundations.Hastad.SourceLoopInit.outputTapesline 443 - def
OAI.MaxCutGames.Foundations.Hastad.SourceLoopInit.initializeInTimeline 446 - theorem
OAI.MaxCutGames.Foundations.Hastad.SourceLoopInit.output_currentline 478 - theorem
OAI.MaxCutGames.Foundations.Hastad.SourceLoopInit.output_remainingline 482 - theorem
OAI.MaxCutGames.Foundations.Hastad.SourceLoopInit.output_frameline 486 - theorem
OAI.MaxCutGames.Foundations.Hastad.SourceLoopInit.output_workline 492 - theorem
OAI.MaxCutGames.Foundations.Hastad.SourceLoopInit.output_variableHeaderline 497 - theorem
OAI.MaxCutGames.Foundations.Hastad.SourceLoopInit.output_clauseHeaderline 502 - theorem
OAI.MaxCutGames.Foundations.Hastad.SourceLoopInit.output_headersline 507 - theorem
OAI.MaxCutGames.Foundations.Hastad.SourceLoopInit.output_formulaline 513 - def
OAI.MaxCutGames.Foundations.Hastad.SourceLoopInit.timePolynomialline 518 - theorem
OAI.MaxCutGames.Foundations.Hastad.SourceLoopInit.timePolynomial_evalline 521 - def
OAI.MaxCutGames.Foundations.Hastad.SourceLoopInit.machineline 525 - def
OAI.MaxCutGames.Foundations.Hastad.SourceRankPhase.rankline 544 - def
OAI.MaxCutGames.Foundations.Hastad.SourceRankPhase.reverseDigitsline 547 - theorem
OAI.MaxCutGames.Foundations.Hastad.SourceRankPhase.reverseDigits_applyline 550 - theorem
OAI.MaxCutGames.Foundations.Hastad.SourceRankPhase.horner_value_sumline 554 - theorem
OAI.MaxCutGames.Foundations.Hastad.SourceRankPhase.horner_reverse_eq_rankline 569 - def
OAI.MaxCutGames.Foundations.Hastad.SourceRankPhase.reverseSlotsline 589Source documentation
Reverse only digit positions. All six fixed work/control roles stay put.
def reverseSlots (slots : MachineHorner.Layout width ↪ K) : MachineHorner.Layout width ↪ K := …
- theorem
OAI.MaxCutGames.Foundations.Hastad.SourceRankPhase.reverseSlots_controlline 592 - theorem
OAI.MaxCutGames.Foundations.Hastad.SourceRankPhase.reverseSlots_digitline 595 - theorem
OAI.MaxCutGames.Foundations.Hastad.SourceRankPhase.clean_reverseSlotsline 601 - def
OAI.MaxCutGames.Foundations.Hastad.SourceRankPhase.statementline 608 - def
OAI.MaxCutGames.Foundations.Hastad.SourceRankPhase.programline 613 - theorem
OAI.MaxCutGames.Foundations.Hastad.SourceRankPhase.rankTraceline 619Source documentation
Exact execution using existing digit fields; only the destination changes.
theorem rankTrace (slots : MachineHorner.Layout width ↪ K) (labels : MachineHorner.Label width → Λ) (exit : Option Λ) (p : Λ → TM2.Stmt (fun _ : K => Bool) Λ (MachineHorner.State σ)) (atLabels : ∀ label, p (labels label) = statement slots labels exit label) (base : K → List Bool) (radix : Nat) (digits : Fin width → Nat) (operandRadix : base (slots (.inl 0)) = encodeWord radix) (operandDigits : ∀ i, base (slots (.inr i)) = encodeWord (digits i)) (clean : MachineHorner.Clean slots base) (ambient : σ) (register : Option Bool) : (MachineComposition.advance (TM2.step p))^[ MachineHorner.steps radix (reverseDigits digits) width] (some ⟨some (labels .start), ((ambient, ()), register), base⟩) = some ⟨exit, ((ambient, ()), none), MachineHorner.resultTapes slots base (rank radix digits)⟩ := by …Mentions: OAI.MaxCutGames.Foundations.Hastad.SourceRankPhase.statement, OAI.MaxCutGames.Foundations.Hastad.SourceRankPhase.reverseDigits, OAI.MaxCutGames.Foundations.Hastad.SourceRankPhase.rank
- def
OAI.MaxCutGames.Foundations.Hastad.SourceRankPhase.rankInTimeline 638 - def
OAI.MaxCutGames.Foundations.Hastad.SourceRankPhase.rankInPolynomialTimeline 655 - def
OAI.MaxCutGames.Foundations.Hastad.SourceRankPhase.variableRankInTimeline 674 - def
OAI.MaxCutGames.Foundations.Hastad.SourceRankPhase.clauseRankInTimeline 690 - def
OAI.MaxCutGames.Foundations.Hastad.SourceRankPhase.programInTimeline 706 - def
OAI.MaxCutGames.Foundations.Hastad.SourceRankPhase.machineline 718 - def
OAI.MaxCutGames.Foundations.Hastad.SourceRankPhase.machineInTimeline 729 - def
OAI.MaxCutGames.Foundations.Hastad.SourceRankPhase.clauseSlotsline 744Source documentation
Control roles may include preserved headers and dedicated protected extras.
def clauseSlots (controls : Fin 6 ↪ Extra) : MachineHorner.Layout u ↪ SourceContextLoad.Tape u Extra where …Mentions: OAI.MaxCutGames.Foundations.Hastad.SourceContextLoad.Tape
- def
OAI.MaxCutGames.Foundations.Hastad.SourceRankPhase.variableSlotsline 762Source documentation
Each coordinate selects its own loaded variable field, even if names repeat.
def variableSlots (controls : Fin 6 ↪ Extra) (selected : SlotContext u) : MachineHorner.Layout u ↪ SourceContextLoad.Tape u Extra where …Mentions: OAI.MaxCutGames.Foundations.Hastad.SourceContextLoad.Tape
- theorem
OAI.MaxCutGames.Foundations.Hastad.SourceRankPhase.clauseSlots_controlline 779 - theorem
OAI.MaxCutGames.Foundations.Hastad.SourceRankPhase.clauseSlots_digitline 782 - theorem
OAI.MaxCutGames.Foundations.Hastad.SourceRankPhase.variableSlots_controlline 785 - theorem
OAI.MaxCutGames.Foundations.Hastad.SourceRankPhase.variableSlots_digitline 788 - theorem
OAI.MaxCutGames.Foundations.Hastad.SourceRankPhase.selectedDigits_loadedline 792