Documentation

Complexitylib.Circuits.DepthThree.LowerBound.Internal.TapeInputGuard

Unrestricted depth-three lower bound: tape input guard #

Adapted from OpenAI's formalization at revision adc7f1241b42e322a6451854ab7e4b4c146bf78a. Source: https://github.com/openai/math/blob/adc7f1241b42e322a6451854ab7e4b4c146bf78a/lean/OAI/Computability/DepthThree/TapeInputGuard.lean

Imports, namespaces, module visibility, documentation, and formatting are adapted for complexitylib. The source theorem statements and mathematical proofs are retained.

Control states for the check stage of the input guard routine.

Instances For
    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      @[instance_reducible]
      Equations
      • One or more equations did not get rendered due to their size.

      Transition function for the check stage of the input guard routine.

      Equations
      Instances For

        Initial control state of the check stage of the input guard routine.

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For

          Transition function for the two stage of the input guard routine.

          Equations
          • One or more equations did not get rendered due to their size.
          Instances For

            Transition function for the test stage of the input guard routine.

            Equations
            • One or more equations did not get rendered due to their size.
            Instances For
              theorem Complexity.DepthThreeLowerBound.TapeInputGuard.runs_test (σ : TapeStore) (n d t L : ℕ) (h1 : σ 1 = List.replicate n true) (h2 : σ 2 = List.replicate d true) (h4 : σ 4 = List.replicate t true) (h5 : σ 5 = []) (h6 : σ 6 = []) (h8 : σ 8 = List.replicate L true) :

              Transition function of the input guard routine.

              Equations
              • One or more equations did not get rendered due to their size.
              Instances For
                theorem Complexity.DepthThreeLowerBound.TapeInputGuard.cost_eq (n d r t : ℕ) :
                cost n d r t = 12 * d + 20 * r + 16 * t + 10 * (t * r) + 4 * n + 94
                theorem Complexity.DepthThreeLowerBound.TapeInputGuard.cost_le_square (n d r t : ℕ) (hd : d ≤ n + 1) (hr : r ≤ n + 1) (ht : t ≤ n + 1) :
                cost n d r t ≤ 200 * (n + 1) ^ 2
                theorem Complexity.DepthThreeLowerBound.TapeInputGuard.runs_guard (σ : TapeStore) (n d r t : ℕ) (h1 : σ 1 = List.replicate n true) (h2 : σ 2 = List.replicate d true) (h3 : σ 3 = List.replicate r true) (h4 : σ 4 = List.replicate t true) (h5 : σ 5 = []) (h6 : σ 6 = []) (h8 : σ 8 = []) :