OAI/Computability/SpaceSimulation/Machine.lean
44 declarations, 0 contain sorry, 0 declared as axioms
Finite table machines for the result. X is the public input alphabet (all uses for machines as space bounds have finite types); J indexes a fixed number of other read-only tapes, on a binary alphabet. Each read-only tape is endmarked and has one confined head. Work tapes for the simulator and accessor are two-way, with unit moves. Terminal output in a finite set may be specified in the transition table (equivalently transition to the associated halt state). TM transitions with writes write before moving.
Space convention is visited work cells (including the origin of each work tape), weighted by bits/symbol in the fixed alphabets, excluding read-only tapes. Since visited sets are intervals, we use a window certificate including all head positions during the run.
- inductive
OAI.Fifths.Dirline 22Also declared: ComparatorChallenges/OneTapeSpace.lean:11 (same declaration text).
- instance
OAI.Fifths.(instance at line 26)line 26 - def
OAI.Fifths.Dir.deltaline 30Also declared: ComparatorChallenges/OneTapeSpace.lean:18 (same declaration text).
- theorem
OAI.Fifths.Dir.boundsline 35 - inductive
OAI.Fifths.Markline 40Source documentation
Left endmarker at 0, then the word, then right endmarker.
Also declared: ComparatorChallenges/OneTapeSpace.lean:24 (same declaration text).
inductive Mark (A : Type) | left | sym (a : A) | right deriving DecidableEq, Fintype namespace Mark variable {A : Type} - def
OAI.Fifths.Mark.seeline 48Also declared: ComparatorChallenges/OneTapeSpace.lean:32 (same declaration text).
- theorem
OAI.Fifths.Mark.see_zeroline 55 - theorem
OAI.Fifths.Mark.see_leftline 56 - theorem
OAI.Fifths.Mark.see_rightline 61 - def
OAI.Fifths.Mark.walkline 70Also declared: ComparatorChallenges/OneTapeSpace.lean:39 (same declaration text).
- theorem
OAI.Fifths.Mark.walk_boundline 75 - inductive
OAI.Fifths.Runsline 89Source documentation
Deterministic halting runs.
f s = inl ymeans the transition specifies halt with that label (no more working moves).Pholds also at that final configuration.Also declared: ComparatorChallenges/OneTapeSpace.lean:45 (same declaration text).
inductive Runs {σ Y : Type} (f : σ → Y ⊕ σ) (P : σ → Prop) : σ → σ → Y → Prop | stop {s y} (ok : P s) (eqn : f s = Sum.inl y) : Runs f P s s y | step {s s' t y} (ok : P s) (eqn : f s = Sum.inr s') (tail : Runs f P s' t y) : Runs f P s t y namespace Runs variable {σ Y : Type} {f : σ → Y ⊕ σ} {P Q : σ → Prop} {s t : σ} {y : Y} - theorem
OAI.Fifths.Runs.monoline 97 - theorem
OAI.Fifths.Runs.startOkline 102 - theorem
OAI.Fifths.Runs.endOkline 103 - theorem
OAI.Fifths.Runs.endStopline 104 - theorem
OAI.Fifths.Runs.uniqueline 106 - structure
OAI.Fifths.Inputsline 125Source documentation
Common read-only inputs.
Also declared: ComparatorChallenges/OneTapeSpace.lean:51 (same declaration text).
structure Inputs (X J : Type) where …
- structure
OAI.Fifths.Readersline 129Also declared: ComparatorChallenges/OneTapeSpace.lean:55 (same declaration text).
- structure
OAI.Fifths.Readsline 133Also declared: ComparatorChallenges/OneTapeSpace.lean:59 (same declaration text).
- structure
OAI.Fifths.Advancesline 137Also declared: ComparatorChallenges/OneTapeSpace.lean:63 (same declaration text).
- def
OAI.Fifths.Readers.homeline 143Also declared: ComparatorChallenges/OneTapeSpace.lean:69 (same declaration text).
- def
OAI.Fifths.Readers.seeline 144Also declared: ComparatorChallenges/OneTapeSpace.lean:70 (same declaration text).
- def
OAI.Fifths.Readers.walkline 147Also declared: ComparatorChallenges/OneTapeSpace.lean:72 (same declaration text).
- theorem
OAI.Fifths.Readers.stationaryline 150 - structure
OAI.Fifths.Tapeline 153Also declared: ComparatorChallenges/OneTapeSpace.lean:76 (same declaration text).
- structure
OAI.Fifths.WriteMoveline 157Also declared: ComparatorChallenges/OneTapeSpace.lean:80 (same declaration text).
- def
OAI.Fifths.Tape.initline 163Also declared: ComparatorChallenges/OneTapeSpace.lean:86 (same declaration text).
- def
OAI.Fifths.Tape.seeline 164Also declared: ComparatorChallenges/OneTapeSpace.lean:87 (same declaration text).
- def
OAI.Fifths.Tape.performline 165Also declared: ComparatorChallenges/OneTapeSpace.lean:88 (same declaration text).
- structure
OAI.Fifths.TActionline 169Also declared: ComparatorChallenges/OneTapeSpace.lean:92 (same declaration text).
- structure
OAI.Fifths.TMline 176Source documentation
Finiteness of X, J and Y supplied in main theorem. Finite functions in the table present no uniformity issue; all are fixed for the machine.
Also declared: ComparatorChallenges/OneTapeSpace.lean:97 (same declaration text).
structure TM (X J Y : Type) where …
- structure
OAI.Fifths.TM.Cfgline 192Also declared: ComparatorChallenges/OneTapeSpace.lean:113 (same declaration text).
- def
OAI.Fifths.TM.initialline 197Also declared: ComparatorChallenges/OneTapeSpace.lean:118 (same declaration text).
- def
OAI.Fifths.TM.stepline 200Also declared: ComparatorChallenges/OneTapeSpace.lean:121 (same declaration text).
- structure
OAI.Fifths.TM.Windowline 207Source documentation
Per tape visited positions contained in [-l,h], both nonnegative.
Also declared: ComparatorChallenges/OneTapeSpace.lean:127 (same declaration text).
structure Window where …
- def
OAI.Fifths.TM.widthline 212Source documentation
Bits per symbol (at least one).
Also declared: ComparatorChallenges/OneTapeSpace.lean:131 (same declaration text).
def width (k : M.K) : ℕ := max 1 (Fintype.card (M.W k) - 1).size
- theorem
OAI.Fifths.TM.width_posline 214 - def
OAI.Fifths.TM.Window.okline 220Also declared: ComparatorChallenges/OneTapeSpace.lean:135 (same declaration text).
- def
OAI.Fifths.TM.Window.bitsline 225Also declared: ComparatorChallenges/OneTapeSpace.lean:138 (same declaration text).
- theorem
OAI.Fifths.TM.Window.span_leline 228 - def
OAI.Fifths.TM.Withinline 237Source documentation
Moutputsyusing at mostSbits.Also declared: ComparatorChallenges/OneTapeSpace.lean:142 (same declaration text).
def Within (i : Inputs X J) (y : Y) (S : ℕ) : Prop := …
Mentions: OAI.Fifths.Inputs
- theorem
OAI.Fifths.TM.Within.monoline 240 - theorem
OAI.Fifths.TM.Within.uniqueline 245