OAI/Computability/UniqueGames/Machines/MachineLookupCore.lean
19 declarations, 0 contain sorry, 0 declared as axioms
Finite control for destructive unary-indexed table lookup. The guard decreases the index even when the table is exhausted. Selection tests for an empty table before writing the destination. All tests inspect just one finite head register.
- abbrev
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineLookup.Alphabetline 18 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineLookup.discardline 20 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineLookup.selectline 28Source documentation
Check that a field exists before seeding its destination delimiter.
def select (source destination : K) (copyLabel rejected : Λ) : TM2.Stmt (Alphabet (K := K)) Λ (σ × Option Bool) := …Mentions: OAI.UniqueGamesTheorem.Foundations.Complexity.MachineLookup.Alphabet
- inductive
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineLookup.Labelline 35 - abbrev
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineLookup.Label.enumListline 39 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineLookup.Label.enumList_getElem?_ctorIdx_eqline 42 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineLookup.Label.enumList_nodupline 46 - instance
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineLookup.(instance at line 48)line 48 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineLookup.programline 53Source documentation
Six fixed labels and a single optional-bit register, independent of input.
def program (index source destination : K) : Label → TM2.Stmt (Alphabet (K := K)) Label (σ × Option Bool) …Mentions: OAI.UniqueGamesTheorem.Foundations.Complexity.MachineLookup.Label, OAI.UniqueGamesTheorem.Foundations.Complexity.MachineLookup.Alphabet
- def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineLookup.tapesline 63Source documentation
Three caller tapes with every other tape retained verbatim.
def tapes (index source destination : K) (base : K → List Bool) (counter input output : List Bool) : K → List Bool := … - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineLookup.tapes_indexline 68 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineLookup.tapes_sourceline 74 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineLookup.tapes_destinationline 80 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineLookup.tapes_otherline 85 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineLookup.update_indexline 91 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineLookup.update_sourceline 105 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineLookup.update_destinationline 116 - theorem
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineLookup.fieldTapes_eqline 122 - def
OAI.UniqueGamesTheorem.Foundations.Complexity.MachineLookup.machineline 131Source documentation
A concrete finite machine using exactly three binary stacks. Its table and unary index may be supplied in a caller configuration; no list oracle is used.
def machine : FinTM2 where …