ComparatorChallenges/OneTapeSpace.lean
Explanation legend Lean4 Domain Explanation Language (L4DEL)
L4DEL explanations are a separate layer. They do not change the Lean source. Intuition is explanatory prose; numbered items are a reading path; sources link the wording back to evidence.
- L4DEL
- Lean4 Domain Explanation Language
Credit: OpenAI's pinned repository says an unreleased internal model produced the manuscripts and supporting proof artifacts. The collection builds on the mathematics community's accumulated problems, results, language, and formal libraries; each manuscript's BibTeX and bibliography are the authority for individual scholarly credit.
Project sources: Pinned openai/math documentation, Pinned formalization catalogue
55 declarations, 2 contain sorry, 0 declared as axioms
Finite-machine statements of the capped and unknown-time one-writable-tape simulation theorem. Work space counts the bits in every visited writable cell; public endmarked input tapes are read-only.
- inductive
OAI.Fifths.Dirline 11Also declared: OAI/Computability/SpaceSimulation/Machine.lean:22 (same declaration text).
- instance
OAI.Fifths.(instance at line 15)line 15 - def
OAI.Fifths.Dir.deltaline 18Also declared: OAI/Computability/SpaceSimulation/Machine.lean:30 (same declaration text).
- inductive
OAI.Fifths.Markline 24Also declared: OAI/Computability/SpaceSimulation/Machine.lean:40 (same declaration text).
- def
OAI.Fifths.Mark.seeline 32Also declared: OAI/Computability/SpaceSimulation/Machine.lean:48 (same declaration text).
- def
OAI.Fifths.Mark.walkline 39Also declared: OAI/Computability/SpaceSimulation/Machine.lean:70 (same declaration text).
- inductive
OAI.Fifths.Runsline 45Also declared: OAI/Computability/SpaceSimulation/Machine.lean:89 (same declaration text).
- structure
OAI.Fifths.Inputsline 51Also declared: OAI/Computability/SpaceSimulation/Machine.lean:125 (same declaration text).
- structure
OAI.Fifths.Readersline 55Also declared: OAI/Computability/SpaceSimulation/Machine.lean:129 (same declaration text).
- structure
OAI.Fifths.Readsline 59Also declared: OAI/Computability/SpaceSimulation/Machine.lean:133 (same declaration text).
- structure
OAI.Fifths.Advancesline 63Also declared: OAI/Computability/SpaceSimulation/Machine.lean:137 (same declaration text).
- def
OAI.Fifths.Readers.homeline 69Also declared: OAI/Computability/SpaceSimulation/Machine.lean:143 (same declaration text).
- def
OAI.Fifths.Readers.seeline 70Also declared: OAI/Computability/SpaceSimulation/Machine.lean:144 (same declaration text).
- def
OAI.Fifths.Readers.walkline 72Also declared: OAI/Computability/SpaceSimulation/Machine.lean:147 (same declaration text).
- structure
OAI.Fifths.Tapeline 76Also declared: OAI/Computability/SpaceSimulation/Machine.lean:153 (same declaration text).
- structure
OAI.Fifths.WriteMoveline 80Also declared: OAI/Computability/SpaceSimulation/Machine.lean:157 (same declaration text).
- def
OAI.Fifths.Tape.initline 86Also declared: OAI/Computability/SpaceSimulation/Machine.lean:163 (same declaration text).
- def
OAI.Fifths.Tape.seeline 87Also declared: OAI/Computability/SpaceSimulation/Machine.lean:164 (same declaration text).
- def
OAI.Fifths.Tape.performline 88Also declared: OAI/Computability/SpaceSimulation/Machine.lean:165 (same declaration text).
- structure
OAI.Fifths.TActionline 92Also declared: OAI/Computability/SpaceSimulation/Machine.lean:169 (same declaration text).
- structure
OAI.Fifths.TMline 97Also declared: OAI/Computability/SpaceSimulation/Machine.lean:176 (same declaration text).
- structure
OAI.Fifths.TM.Cfgline 113Also declared: OAI/Computability/SpaceSimulation/Machine.lean:192 (same declaration text).
- def
OAI.Fifths.TM.initialline 118Also declared: OAI/Computability/SpaceSimulation/Machine.lean:197 (same declaration text).
- def
OAI.Fifths.TM.stepline 121Also declared: OAI/Computability/SpaceSimulation/Machine.lean:200 (same declaration text).
- structure
OAI.Fifths.TM.Windowline 127Also declared: OAI/Computability/SpaceSimulation/Machine.lean:207 (same declaration text).
- def
OAI.Fifths.TM.widthline 131Also declared: OAI/Computability/SpaceSimulation/Machine.lean:212 (same declaration text).
- def
OAI.Fifths.TM.Window.okline 135Also declared: OAI/Computability/SpaceSimulation/Machine.lean:220 (same declaration text).
- def
OAI.Fifths.TM.Window.bitsline 138Also declared: OAI/Computability/SpaceSimulation/Machine.lean:225 (same declaration text).
- def
OAI.Fifths.TM.Withinline 142Also declared: OAI/Computability/SpaceSimulation/Machine.lean:237 (same declaration text).
- structure
OAI.Fifths.SingleActline 150Also declared: OAI/Computability/SpaceSimulation/OneTape/Single.lean:12 (same declaration text).
- structure
OAI.Fifths.Singleline 155Also declared: OAI/Computability/SpaceSimulation/OneTape/Single.lean:17 (same declaration text).
- instance
OAI.Fifths.Single.(instance at line 170)line 170 - instance
OAI.Fifths.Single.(instance at line 171)line 171 - abbrev
OAI.Fifths.Single.Tagline 172Also declared: OAI/Computability/SpaceSimulation/OneTape/Single.lean:35 (same declaration text).
- structure
OAI.Fifths.Single.Atline 174Also declared: OAI/Computability/SpaceSimulation/OneTape/Single.lean:37 (same declaration text).
- def
OAI.Fifths.Single.moveline 179Also declared: OAI/Computability/SpaceSimulation/OneTape/Single.lean:42 (same declaration text).
- def
OAI.Fifths.Single.initialline 185Also declared: OAI/Computability/SpaceSimulation/OneTape/Single.lean:48 (same declaration text).
- def
OAI.Fifths.Single.nextline 188Also declared: OAI/Computability/SpaceSimulation/OneTape/Single.lean:51 (same declaration text).
- def
OAI.Fifths.Single.atTimeline 192Also declared: OAI/Computability/SpaceSimulation/OneTape/Single.lean:55 (same declaration text).
- abbrev
OAI.Fifths.Single.Outcomeline 195Also declared: OAI/Computability/SpaceSimulation/OneTape/Single.lean:58 (same declaration text).
- def
OAI.Fifths.Single.finishline 196Also declared: OAI/Computability/SpaceSimulation/OneTape/Single.lean:60 (same declaration text).
- def
OAI.Fifths.Single.outcomeline 198Also declared: OAI/Computability/SpaceSimulation/OneTape/Single.lean:62 (same declaration text).
- def
OAI.Fifths.Single.Insideline 201Also declared: OAI/Computability/SpaceSimulation/OneTape/Single.lean:79 (same declaration text).
- def
OAI.Fifths.Entry.codeline 209Also declared: OAI/Computability/SpaceSimulation/OneTape/Layout.lean:9 (same declaration text).
- def
OAI.Fifths.binaryInline 213Distinct definitions of this name: OAI/Computability/SpaceSimulation/Register/Output.lean:11 (different declaration text). Qualify references as OAI.Fifths.binaryIn@path.
- def
OAI.Fifths.filesline 216Distinct definitions of this name: OAI/Computability/SpaceSimulation/Register/Comp.lean:18 (different declaration text). Qualify references as OAI.Fifths.files@path.
- inductive
OAI.Fifths.Single.Argline 223Also declared: OAI/Computability/SpaceSimulation/OneTape/Supply.lean:57 (same declaration text).
- instance
OAI.Fifths.Single.(instance at line 227)line 227 - abbrev
OAI.Fifths.Single.Symline 229Also declared: OAI/Computability/SpaceSimulation/OneTape/Supply.lean:63 (same declaration text).
- def
OAI.Fifths.Single.argline 231Also declared: OAI/Computability/SpaceSimulation/OneTape/Supply.lean:65 (same declaration text).
- def
OAI.Fifths.Cost.Logline 239Also declared: OAI/Computability/SpaceSimulation/OneTape/Growth.lean:7 (same declaration text).
- def
OAI.Fifths.Cost.exponentline 240Also declared: OAI/Computability/SpaceSimulation/OneTape/Growth.lean:8 (same declaration text).
- def
OAI.Fifths.Single.Accessline 246Also declared: OAI/Computability/SpaceSimulation/Main.lean:20 (same declaration text).
- theorem
OAI.Fifths.Single.cappedChallenge statement: One-tape time simulation in two-fifths-power space sorry line 258L4DEL explanation
The formalization gives two-fifths-power space simulation of a fixed deterministic machine with one writable tape and finitely many read-only input heads. Heads move at most one cell per step, initial contents are independent of the time bound, and contents and input symbols must be accessible in polylogarithmic space. Given a binary time cap $T\ge2$, the simulator returns the source's finite-control outcome and halting flag using $O(T^{2/5}(\log(T+2))^C)$ space. A second simulator needs no time cap: on an input that halts at time $t$, it returns the halted outcome using $O((t+2)^{2/5}(\log(t+2))^C)$ space. Simulation time is unrestricted. General multitape simulation, hierarchy consequences, and bounded-space-halting results are outside these selected statements.
- This is an exact comparator target linked by the pinned repository's formalization note for this result.
- The repository's comparator configuration selects OAI.Computability.SpaceSimulation.Main as the released solution module checked against this declaration.
Sources and attribution: Pinned Lean source (fd4aeeb2ee4f)
Distinct definitions of this name: OAI/Computability/SpaceSimulation/Main.lean:39 (same statement text; different proof or body). Qualify references as OAI.Fifths.Single.capped@path.
theorem capped [Fintype X] (A : M.Sym) (p q : ℝ) (hp : 1 ≤ p) (_hq : 1 ≤ q) : ∃ (N : TM X Unit M.Outcome) (e : ℕ) (c : ℝ), 0 < c ∧ ∀ (x : List X) (T : ℕ), 2 ≤ T → M.Access A p q x T → ∃ b : ℕ, N.Within (binaryIn x (fun _ => T)) (M.outcome x T) b ∧ (b:ℝ) ≤ c*(T:ℝ)^exponent*(Log T)^e := by …Mentions: OAI.Fifths.Single.q, OAI.Fifths.TM, OAI.Fifths.Single.c
- theorem
OAI.Fifths.Single.unknownChallenge statement: One-tape time simulation in two-fifths-power space sorry line 265L4DEL explanation
The formalization gives two-fifths-power space simulation of a fixed deterministic machine with one writable tape and finitely many read-only input heads. Heads move at most one cell per step, initial contents are independent of the time bound, and contents and input symbols must be accessible in polylogarithmic space. Given a binary time cap $T\ge2$, the simulator returns the source's finite-control outcome and halting flag using $O(T^{2/5}(\log(T+2))^C)$ space. A second simulator needs no time cap: on an input that halts at time $t$, it returns the halted outcome using $O((t+2)^{2/5}(\log(t+2))^C)$ space. Simulation time is unrestricted. General multitape simulation, hierarchy consequences, and bounded-space-halting results are outside these selected statements.
- This is an exact comparator target linked by the pinned repository's formalization note for this result.
- The repository's comparator configuration selects OAI.Computability.SpaceSimulation.Main as the released solution module checked against this declaration.
Sources and attribution: Pinned Lean source (fd4aeeb2ee4f)
Distinct definitions of this name: OAI/Computability/SpaceSimulation/Main.lean:64 (same statement text; different proof or body). Qualify references as OAI.Fifths.Single.unknown@path.
theorem unknown [Fintype X] (A : M.Sym) (p q : ℝ) (hp : 1 ≤ p) (_hq : 1 ≤ q) : ∃ (N : TM X Empty M.Outcome) (e : ℕ) (c : ℝ), 0 < c ∧ ∀ (x : List X), (∀ T, 2 ≤ T → M.Access A p q x T) → ∀ (t : ℕ), (M.outcome x t).2 = true → ∃ b, N.Within (files x) (M.outcome x t) b ∧ (b:ℝ) ≤ c*((t:ℝ)+2)^exponent*(Log t)^e := by …Mentions: OAI.Fifths.Single.q, OAI.Fifths.TM, OAI.Fifths.Single.c