OAI/Computability/MaxCut/Machines/RawInitialMachineModel.lean
85 declarations, 0 contain sorry, 0 declared as axioms
Actual execution of the raw initial graph machine from its standard input configuration to the first clause-loop guard. The unread clause bits are preserved verbatim, and all tape contents at the boundary are explicit.
- inductive
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineModel.Tapeline 11 - abbrev
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineModel.Signsline 16 - abbrev
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineModel.Stateline 17 - abbrev
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineModel.Alphabetline 18 - inductive
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineModel.CopyPhaseline 20 - inductive
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineModel.Labelline 28 - def
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineModel.initialStateline 42 - def
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineModel.stateKeysline 44 - theorem
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineModel.stateKeys_completeline 49 - def
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineModel.nameFieldline 55 - def
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineModel.copySourceline 57 - def
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineModel.copyScaleline 62 - def
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineModel.copyNextline 66 - def
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineModel.relationNextline 75 - def
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineModel.finalTapeline 81 - def
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineModel.drainline 84 - def
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineModel.headerTapeline 87 - def
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineModel.relationOutputline 89 - def
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineModel.programline 93 - def
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineModel.machineline 143 - def
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineStart.inputTapesline 166 - def
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineStart.firstTapes_inline_RawInitialMachineStartline 170 - def
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineStart.counterTapesline 175 - def
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineStart.headerTapes_inline_RawInitialMachineStartline 181 - def
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineStart.startTapesline 189Source documentation
Complete machine frame at the first clause-loop guard.
def startTapes (n m : ℕ) (clauseBits : List Bool) : Tape → List Bool | .input => clauseBits | .«variables» => encodeWord n | .counter => encodeWord m | .index => [false] | .reversed => (encodeWords [n + m + 1, 6 * m + 1]).reverse | _ => []
- theorem
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineStart.initList_eqline 197 - theorem
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineStart.trace_trans_inline_RawInitialMachineStartline 206 - theorem
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineStart.readCountersTraceline 211Source documentation
The two actual header-field readers reach the prepared counter boundary.
theorem readCountersTrace (n m : ℕ) (clauseBits : List Bool) : (MachineComposition.advance (TM2.step program))^[n + m + 4] (some (initList machine (encodeWords [n, m] ++ clauseBits))) = some ⟨some .scanN, initialState, counterTapes n m clauseBits⟩ := by …Mentions: OAI.MaxCutGames.Foundations.PCP.RawInitialMachineStart.counterTapes
- theorem
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineStart.headersTraceline 245Source documentation
Instantiation of the checked arithmetic phase in the actual global program.
theorem headersTrace (n m : ℕ) (clauseBits : List Bool) : (MachineComposition.advance (TM2.step program))^[2 * n + 4 * m + 8] (some ⟨some .scanN, initialState, counterTapes n m clauseBits⟩) = some ⟨some .initializeIndex, initialState, headerTapes_inline_RawInitialMachineStart n m clauseBits⟩ := by …Mentions: OAI.MaxCutGames.Foundations.PCP.RawInitialMachineStart.counterTapes, OAI.MaxCutGames.Foundations.PCP.RawInitialMachineStart.headerTapes_inline_RawInitialMachineStart
- theorem
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineStart.initializeIndexTraceline 264 - theorem
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineStart.startTraceline 277Source documentation
Exact startup trace for arbitrary encoded clause-tail data.
theorem startTrace (n m : ℕ) (clauseBits : List Bool) : (MachineComposition.advance (TM2.step program))^[3 * n + 5 * m + 13] (some (initList machine (encodeWords [n, m] ++ clauseBits))) = some ⟨some .guard, initialState, startTapes n m clauseBits⟩ := by …Mentions: OAI.MaxCutGames.Foundations.PCP.RawInitialMachineStart.startTapes
- theorem
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineStart.formulaStartTraceline 288Source documentation
Startup from the actual serialized CNF, with its untouched clause tail.
theorem formulaStartTrace (F : Target.Formula) : (MachineComposition.advance (TM2.step program))^[ 3 * F.«variables» + 5 * F.clauses.length + 13] (some (initList machine (formulaBits F))) = some ⟨some .guard, initialState, startTapes F.«variables» F.clauses.length (encodeWords (F.clauses.flatMap clauseWords))⟩ := by …Mentions: OAI.MaxCutGames.Foundations.Target.Formula, OAI.MaxCutGames.Foundations.PCP.RawInitialMachineStart.startTapes
- def
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineStart.startInTimeline 298 - def
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineStart.formulaStartInTimeline 307 - def
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineLoopData.clauseInputline 326 - theorem
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineLoopData.clauseInput_nilline 329 - theorem
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineLoopData.clauseInput_consline 331 - def
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineLoopData.clauseOutputline 335 - theorem
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineLoopData.mapIdx_ofFn_inline_RawInitialMachineLoopDataline 339 - theorem
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineLoopData.clauseOutput_nilline 345 - theorem
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineLoopData.clauseOutput_consline 347 - theorem
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineLoopData.clauseOutput_numberedline 354 - theorem
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineLoopData.tableWords_decompositionline 364 - def
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineLoopData.loopTapesline 371 - theorem
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineLoopData.startTapes_eqline 379 - theorem
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineLoopData.decrement_counterline 385 - theorem
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineLoopData.increment_indexline 391 - theorem
OAI.MaxCutGames.Foundations.PCP.RawInitialMachinePhases.copySource_ne_scratchline 405 - theorem
OAI.MaxCutGames.Foundations.PCP.RawInitialMachinePhases.copySource_ne_reversedline 408 - def
OAI.MaxCutGames.Foundations.PCP.RawInitialMachinePhases.copyInTimeline 411 - def
OAI.MaxCutGames.Foundations.PCP.RawInitialMachinePhases.relationInTimeline 426 - theorem
OAI.MaxCutGames.Foundations.PCP.RawInitialMachinePhases.bitWord_head_inline_RawInitialMachinePhasesline 439 - theorem
OAI.MaxCutGames.Foundations.PCP.RawInitialMachinePhases.loadSigns_stepline 443 - def
OAI.MaxCutGames.Foundations.PCP.RawInitialMachinePhases.loadSignsInTimeline 452 - def
OAI.MaxCutGames.Foundations.PCP.RawInitialMachinePhases.cleanupFieldInTimeline 463 - def
OAI.MaxCutGames.Foundations.PCP.RawInitialMachinePhases.cleanupFinalInTimeline 471 - def
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineReadClause.fieldValueline 492Source documentation
The six actual serialized fields, in name/sign/name/sign/name/sign order.
def fieldValue {n : ℕ} (c : Target.Clause n) (j : Fin 6) : ℕ := … - def
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineReadClause.recordTapesline 498Source documentation
Full caller frame after the clause fields have been consumed.
def recordTapes {n : ℕ} (base : Tape → List Bool) (c : Target.Clause n) (suffix : List Bool) : Tape → List Bool | .input => suffix | .field j => encodeWord (fieldValue c j) | k => base kMentions: OAI.MaxCutGames.Foundations.Target.Clause, OAI.MaxCutGames.Foundations.PCP.RawInitialMachineReadClause.fieldValue
- theorem
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineReadClause.recordTapes_inputline 504 - theorem
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineReadClause.recordTapes_fieldline 508 - theorem
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineReadClause.recordTapes_otherline 512 - theorem
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineReadClause.recordTapes_nameline 520 - theorem
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineReadClause.trace_trans_inline_RawInitialMachineReadClauseline 526 - theorem
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineReadClause.fieldsTraceline 531Source documentation
Six actual field routines, stopping directly at the global sign loader.
theorem fieldsTrace {n : ℕ} (base : Tape → List Bool) (c : Target.Clause n) (suffix : List Bool) (hinput : base .input = encodeWords (Complexity.clauseWords c) ++ suffix) (hempty : ∀ j, base (.field j) = []) (state : State) : (MachineComposition.advance (TM2.step program))^[ (encodeWords (Complexity.clauseWords c)).length + 6] (some ⟨some (.fieldStart 0), state, base⟩) = some ⟨some .loadSigns, (state.1, none), recordTapes base c suffix⟩ := by …Mentions: OAI.MaxCutGames.Foundations.Target.Clause, OAI.MaxCutGames.Foundations.Complexity.clauseWords, OAI.MaxCutGames.Foundations.PCP.RawInitialMachineReadClause.recordTapes
- theorem
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineReadClause.readClauseTraceline 627 - def
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineReadClause.readClauseInTimeline 647 - abbrev
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineRows.advance_inline_RawInitialMachineRowsline 671 - def
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineRows.outputTapesline 673 - theorem
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineRows.outputTapes_reversedline 676 - theorem
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineRows.outputTapes_otherline 679 - theorem
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineRows.outputTapes_twiceline 683 - theorem
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineRows.trace_trans_inline_RawInitialMachineRowsline 690 - theorem
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineRows.copyTrace_inline_RawInitialMachineRowsline 694 - theorem
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineRows.closeTailTrace_inline_RawInitialMachineRowsline 702 - theorem
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineRows.closeReverseTrace_inline_RawInitialMachineRowsline 710 - theorem
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineRows.reverse_encodeWord_add_inline_RawInitialMachineRowsline 720 - def
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineRows.rowEndBitsline 726 - theorem
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineRows.rowEndTrace_inline_RawInitialMachineRowsline 730 - theorem
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineRows.rowEndBits_append_inline_RawInitialMachineRowsline 762 - theorem
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineRows.falseRowTraceline 771 - theorem
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineRows.trueRowTraceline 809 - def
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineRows.pairWordsline 838 - theorem
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineRows.pairTraceline 843 - theorem
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineRows.rowsTraceline 871Source documentation
Exact execution of all six incidence rows. Relation tables stay symbolic; no entry is discarded and every non-output tape is preserved.
theorem rowsTrace (base : Tape → List Bool) (n i : ℕ) (names : RawInitialRows.Names) (signs : Signs) (hvariables : base .«variables» = encodeWord n) (hindex : base .index = encodeWord i) (hname0 : base (.field 0) = encodeWord names.1) (hname2 : base (.field 2) = encodeWord names.2.1) (hname4 : base (.field 4) = encodeWord names.2.2) (hscratch : base .scratch = []) : advance_inline_RawInitialMachineRows^[6 * n + 18 * i + 2 * (names.1 + names.2.1 + names.2.2) + 48] (some ⟨some (.scan (.tailVariables 0)), (signs, none), base⟩) = some ⟨some (.cleanupField 0), (signs, none), outputTapes base (encodeWords (RawInitialRows.clauseWords n i names signs)).reverse⟩ := by …Mentions: OAI.MaxCutGames.Foundations.PCP.RawInitialRows.Names, OAI.MaxCutGames.Foundations.PCP.RawInitialMachineRows.advance_inline_RawInitialMachineRows, OAI.MaxCutGames.Foundations.PCP.RawInitialMachineRows.outputTapes, OAI.MaxCutGames.Foundations.PCP.RawInitialRows.clauseWords
- def
OAI.MaxCutGames.Foundations.PCP.RawInitialMachineRows.rowsInTimeline 918