OAI/Computability/MaxCut/Machines/MachineBinaryRenameWords.lean
79 declarations, 0 contain sorry, 0 declared as axioms
The word-level correspondence used by the ordinary-binary renaming machine. Literal occurrences stay in clause order, and equality is tested on canonical binary payloads. The output body consists of the first occurrence index and the sign of every literal, in the inherited dense formula codec.
- def
OAI.MaxCutGames.BinaryRenameWords.clauseLiteralsline 18 - def
OAI.MaxCutGames.BinaryRenameWords.literalsline 20 - def
OAI.MaxCutGames.BinaryRenameWords.tokenline 22 - def
OAI.MaxCutGames.BinaryRenameWords.tokensline 25 - theorem
OAI.MaxCutGames.BinaryRenameWords.literals_nilline 28 - theorem
OAI.MaxCutGames.BinaryRenameWords.literals_consline 30 - theorem
OAI.MaxCutGames.BinaryRenameWords.literals_lengthline 33 - theorem
OAI.MaxCutGames.BinaryRenameWords.tokens_lengthline 39 - theorem
OAI.MaxCutGames.BinaryRenameWords.literals_namesline 42 - theorem
OAI.MaxCutGames.BinaryRenameWords.tokens_payloadsline 47 - theorem
OAI.MaxCutGames.BinaryRenameWords.token_bitsline 52 - theorem
OAI.MaxCutGames.BinaryRenameWords.tokens_streamline 58Source documentation
The marker-removal machine's actual output is the search machine's stream.
theorem tokens_stream (cs : List Clause) : BinaryNameSearch.stream (tokens cs) = BinaryTokenMachine.tokens cs := by …Mentions: OAI.MaxCutGames.BinaryNameSearch.stream, OAI.MaxCutGames.BinaryRenameWords.tokens, OAI.MaxCutGames.BinaryTokenMachine.tokens
- theorem
OAI.MaxCutGames.BinaryRenameWords.tokens_canonicalline 69 - theorem
OAI.MaxCutGames.BinaryRenameWords.payload_indexline 75 - theorem
OAI.MaxCutGames.BinaryRenameWords.token_payload_memline 80 - theorem
OAI.MaxCutGames.BinaryRenameWords.payloadSize_tokensline 87 - def
OAI.MaxCutGames.BinaryRenameWords.outputLiteralline 100 - def
OAI.MaxCutGames.BinaryRenameWords.bodyline 104 - theorem
OAI.MaxCutGames.BinaryRenameWords.encoded_clauseline 107 - theorem
OAI.MaxCutGames.BinaryRenameWords.encodeWords_flatMap_inline_MachineBinaryRenameWordsline 115 - theorem
OAI.MaxCutGames.BinaryRenameWords.encoded_bodyline 123Source documentation
The output contains every literal occurrence, including repetitions.
theorem encoded_body (F : Formula) : Complexity.encodeWords ((BinaryOccurrenceRename.renamed F).clauses.flatMap Complexity.clauseWords) = body F := by …Mentions: OAI.MaxCutGames.BinaryOccurrenceRename.renamed, OAI.MaxCutGames.BinaryRenameWords.body
- theorem
OAI.MaxCutGames.BinaryRenameWords.encoded_renamedline 137Source documentation
Exact ordinary-binary-machine target, including its two count headers.
theorem encoded_renamed (F : Formula) : Complexity.formulaBits (BinaryOccurrenceRename.renamed F) = Complexity.encodeWord (3 * F.clauses.length) ++ Complexity.encodeWord F.clauses.length ++ body F := by …Mentions: OAI.MaxCutGames.BinaryOccurrenceRename.renamed, OAI.MaxCutGames.BinaryRenameWords.body
- abbrev
OAI.MaxCutGames.BinaryHeaderMachine.Alphabetline 168 - abbrev
OAI.MaxCutGames.BinaryHeaderMachine.Stateline 169 - def
OAI.MaxCutGames.BinaryHeaderMachine.delimiterline 176Source documentation
A fixed one-bit push; the finite register is cleared before continuation.
def delimiter (destination : K) (next : Λ) : TM2.Stmt (Alphabet (K := K)) Λ (State A) := …
Mentions: OAI.MaxCutGames.BinaryHeaderMachine.Alphabet, OAI.MaxCutGames.BinaryHeaderMachine.State
- def
OAI.MaxCutGames.BinaryHeaderMachine.tapesline 180 - theorem
OAI.MaxCutGames.BinaryHeaderMachine.tapes_variablesline 185 - theorem
OAI.MaxCutGames.BinaryHeaderMachine.tapes_clausesline 192 - theorem
OAI.MaxCutGames.BinaryHeaderMachine.tapes_destinationline 199 - theorem
OAI.MaxCutGames.BinaryHeaderMachine.tapes_otherline 205 - theorem
OAI.MaxCutGames.BinaryHeaderMachine.update_variables_inline_MachineBinaryHeaderMachineline 211 - theorem
OAI.MaxCutGames.BinaryHeaderMachine.update_clauses_inline_MachineBinaryHeaderMachineline 228 - theorem
OAI.MaxCutGames.BinaryHeaderMachine.update_destination_inline_MachineBinaryHeaderMachineline 242 - theorem
OAI.MaxCutGames.BinaryHeaderMachine.clauseDelimiterStepline 261 - theorem
OAI.MaxCutGames.BinaryHeaderMachine.variableDelimiterStepline 273 - theorem
OAI.MaxCutGames.BinaryHeaderMachine.clauseCounterTraceline 285 - theorem
OAI.MaxCutGames.BinaryHeaderMachine.variableCounterTraceline 305 - theorem
OAI.MaxCutGames.BinaryHeaderMachine.joinTrace_inline_MachineBinaryHeaderMachineline 324 - theorem
OAI.MaxCutGames.BinaryHeaderMachine.headerTraceline 331Source documentation
The actual four-phase routine, with exact unary header and preserved body.
theorem headerTrace (n m : Nat) (body : List Bool) (register : Option Bool) : (advance (TM2.step program))^[n + m + 4] (some ⟨some clauseStart, (ambient, register), tapes variableTape clauses destination base (List.replicate n true) (List.replicate m true) body⟩) = some ⟨exit, (ambient, none), tapes variableTape clauses destination base [] [] (encodeWord n ++ encodeWord m ++ body)⟩ := by … - def
OAI.MaxCutGames.BinaryHeaderMachine.headerInTimeline 360 - abbrev
OAI.MaxCutGames.BinaryHeaderMachine.ConcreteTapeline 375 - abbrev
OAI.MaxCutGames.BinaryHeaderMachine.ConcreteLabelline 376 - def
OAI.MaxCutGames.BinaryHeaderMachine.concreteProgramline 378 - abbrev
OAI.MaxCutGames.BinaryHeaderMachine.machineline 385 - def
OAI.MaxCutGames.BinaryHeaderMachine.startline 397Source documentation
Concrete entry configuration carries two physical counters and the body.
def start (n m : Nat) (body : List Bool) : machine.Cfg := …
- theorem
OAI.MaxCutGames.BinaryHeaderMachine.haltList_eqline 401 - def
OAI.MaxCutGames.BinaryHeaderMachine.machineInTimeline 410Source documentation
Genuine staged execution of the concrete four-label finite machine.
def machineInTime (n m : Nat) (body : List Bool) : StateTransition.EvalsToInTime machine.step (start n m body) (some (haltList machine (encodeWord n ++ encodeWord m ++ body))) (n + m + 4) := by …Mentions: OAI.MaxCutGames.BinaryHeaderMachine.start, OAI.MaxCutGames.BinaryHeaderMachine.machine
- theorem
OAI.MaxCutGames.BinaryHeaderMachine.machine_finiteAlphabetline 420 - abbrev
OAI.MaxCutGames.BinaryRenameMachine.Tapeline 439 - abbrev
OAI.MaxCutGames.BinaryRenameMachine.Alphabetline 440 - abbrev
OAI.MaxCutGames.BinaryRenameMachine.Stateline 441 - inductive
OAI.MaxCutGames.BinaryRenameMachine.Labelline 443 - def
OAI.MaxCutGames.BinaryRenameMachine.loopTapesline 450 - theorem
OAI.MaxCutGames.BinaryRenameMachine.loopTapes_injectiveline 452 - def
OAI.MaxCutGames.BinaryRenameMachine.programline 457 - abbrev
OAI.MaxCutGames.BinaryRenameMachine.machineline 470 - def
OAI.MaxCutGames.BinaryRenameMachine.tapesline 481 - def
OAI.MaxCutGames.BinaryRenameMachine.cfgline 491 - theorem
OAI.MaxCutGames.BinaryRenameMachine.initList_eqline 496 - theorem
OAI.MaxCutGames.BinaryRenameMachine.haltList_eqline 503 - theorem
OAI.MaxCutGames.BinaryRenameMachine.copyTraceline 510 - theorem
OAI.MaxCutGames.BinaryRenameMachine.restoreTraceline 527 - theorem
OAI.MaxCutGames.BinaryRenameMachine.headerTraceline 548 - theorem
OAI.MaxCutGames.BinaryRenameMachine.cleanupTraceline 572 - theorem
OAI.MaxCutGames.BinaryRenameMachine.outputBody_eqline 590 - theorem
OAI.MaxCutGames.BinaryRenameMachine.loopTraceline 605 - theorem
OAI.MaxCutGames.BinaryRenameMachine.joinTrace_inline_MachineBinaryRenameMachineline 648 - def
OAI.MaxCutGames.BinaryRenameMachine.stepsline 652 - theorem
OAI.MaxCutGames.BinaryRenameMachine.renameTraceline 659 - theorem
OAI.MaxCutGames.BinaryRenameMachine.clause_count_le_streamline 678 - theorem
OAI.MaxCutGames.BinaryRenameMachine.body_length_leline 683 - def
OAI.MaxCutGames.BinaryRenameMachine.timePolynomialline 694 - theorem
OAI.MaxCutGames.BinaryRenameMachine.steps_leline 698 - def
OAI.MaxCutGames.BinaryRenameMachine.outputsInTimeline 718 - def
OAI.MaxCutGames.BinaryRenameMachine.tokenComputationline 728Source documentation
The token-stream phase has a displayed finite machine and actual execution bound; its polynomial argument is the token stream's physical bit length.
noncomputable def tokenComputation : TM2ComputableInPolyTime (fun formula : BinaryFormula.Formula => BinaryTokenMachine.tokens formula.clauses) formulaBits BinaryOccurrenceRename.renamed where …Mentions: OAI.MaxCutGames.BinaryFormula.Formula, OAI.MaxCutGames.BinaryTokenMachine.tokens, OAI.MaxCutGames.BinaryOccurrenceRename.renamed
- def
OAI.MaxCutGames.BinaryRenameMachine.preprocessingline 743Source documentation
Repackage the checked marker-removal machine without changing any machine or word: the intermediate semantic value is the same formula.
noncomputable def preprocessing : TM2ComputableInPolyTime BinaryEncoding.formulaBits (fun formula : BinaryFormula.Formula => BinaryTokenMachine.tokens formula.clauses) (id : BinaryFormula.Formula → BinaryFormula.Formula) where …Mentions: OAI.MaxCutGames.BinaryEncoding.formulaBits, OAI.MaxCutGames.BinaryFormula.Formula, OAI.MaxCutGames.BinaryTokenMachine.tokens
- def
OAI.MaxCutGames.BinaryRenameMachine.computableInPolyTimeline 755Source documentation
Actual finite-alphabet polynomial-time sparse binary to dense unary renaming. Sparse name magnitudes are never expanded in unary.
noncomputable def computableInPolyTime : TM2ComputableInPolyTime BinaryEncoding.formulaBits formulaBits BinaryOccurrenceRename.renamed := …Mentions: OAI.MaxCutGames.BinaryEncoding.formulaBits, OAI.MaxCutGames.BinaryOccurrenceRename.renamed
- theorem
OAI.MaxCutGames.BinaryRenameMachine.machine_finiteAlphabetline 760 - theorem
OAI.MaxCutGames.BinaryRenameMachine.computation_finiteAlphabetline 764