Unrestricted depth-three lower bound: tape cancel row #
Adapted from OpenAI's formalization at revision adc7f1241b42e322a6451854ab7e4b4c146bf78a.
Source: https://github.com/openai/math/blob/adc7f1241b42e322a6451854ab7e4b4c146bf78a/lean/OAI/Computability/DepthThree/TapeCancelRow.lean
Imports, namespaces, module visibility, documentation, and formatting are adapted for complexitylib. The source theorem statements and mathematical proofs are retained.
@[reducible, inline]
Control states of the cancel row routine.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Transition function of the cancel row routine.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Initial control state of the cancel row routine.
Equations
Instances For
Terminal control state of the cancel row routine.
Equations
Instances For
@[simp]
theorem
Complexity.DepthThreeLowerBound.TapeCancelRow.frame_counter
(σ : TapeStore)
(n j s : ℕ)
(out : List Bool)
:
@[simp]
theorem
Complexity.DepthThreeLowerBound.TapeCancelRow.frame_indexA
(σ : TapeStore)
(n j s : ℕ)
(out : List Bool)
:
@[simp]
theorem
Complexity.DepthThreeLowerBound.TapeCancelRow.frame_indexC
(σ : TapeStore)
(n j s : ℕ)
(out : List Bool)
:
@[simp]
theorem
Complexity.DepthThreeLowerBound.TapeCancelRow.frame_output
(σ : TapeStore)
(n j s : ℕ)
(out : List Bool)
:
theorem
Complexity.DepthThreeLowerBound.TapeCancelRow.update_counter
(σ : TapeStore)
(n n' j s : ℕ)
(out : List Bool)
:
Function.update (frame σ n j s out) TapeRegister.loop1 (List.replicate n' true) = frame σ n' j s out
theorem
Complexity.DepthThreeLowerBound.TapeCancelRow.runs_row
(v : Bool)
(σ : TapeStore)
(p c : List Bool)
(s j n : ℕ)
(hP : σ TapeRegister.polyBits = p)
(hj : j + n ≤ p.length)
(hsize : s + p.length ≤ c.length)
:
RunsIn (program v).step (TapeMultiProgram.cfg start (storeTapes (frame σ n j s (modulusUpdateLoop p v s j c))))
(TapeMultiProgram.cfg done (storeTapes (frame σ 0 (j + n) s (modulusUpdateLoop p v s (j + n) c))))
(n * (2 * s + 4 * p.length + 21) + 3)