Documentation

CslibFrontier.Computability.Machines.Turing.MultiTape.Universal.WindowedBound

The size of windowed configurations #

Encodings of windowed configurations and of the problems, solutions and saved data of the divide-and-conquer form of the windowed simulation, and bounds on their sizes.

A windowed configuration satisfies Turing.MultiTapeTM.Universal.Windowed.WInv D B h L when its state is at most D, it has at most D + 1 windows, the heads of its windows are within h of 0, every window holds at most L cells and every cell is at most B. Its encoded length is then at most winBound D B h L. The windowed simulation of n steps with a description of length at most B preserves the bounds on the state and the cells, moves the heads by at most one, adds at most 2 * n cells to every window, and emits at most n symbols, each at most the length of the description.

Main definitions #

Main results #

Encodings #

@[reducible, inline]

Windowed configurations: the state and the windows.

Instances For
    @[reducible, inline]

    Problems of the divide-and-conquer simulation: the description, the number of steps in unary and the windows.

    Instances For
      @[reducible, inline]

      The encoding of problems.

      Instances For
        @[reducible, inline]

        Solutions: the windows after the steps and the emitted symbols.

        Instances For
          @[reducible, inline]

          The encoding of solutions.

          Instances For
            @[reducible, inline]

            Saved data: the number of steps of the second half, the windows after the first half and the symbols it emitted.

            Instances For
              @[reducible, inline]

              The encoding of saved data.

              Instances For

                Bounds #

                The number of cells of a window.

                Instances For

                  Bounds on a windowed configuration: the state is at most D, there are at most D + 1 windows, their heads are within h of 0, they hold at most L cells each, and every cell is at most B.

                  Instances For

                    The bound on the encoded length of a windowed configuration satisfying WInv D B h L.

                    Instances For
                      theorem Turing.MultiTapeTM.Universal.Windowed.length_eWin_le {D B h L : ℕ} {w : Win} (hw : WInv D B h L w) :
                      (eWin w).length ≤ winBound D B h L

                      The size of a windowed configuration.

                      theorem Turing.MultiTapeTM.Universal.Windowed.WInv.mono {D B h L h' L' : ℕ} {w : Win} (hw : WInv D B h L w) (hh : h ≤ h') (hL : L ≤ L') :
                      WInv D B h' L' w

                      Weakening the bounds.

                      theorem Turing.MultiTapeTM.Universal.Windowed.WInv.extract {D B h L : ℕ} {w : Win} (hw : WInv D B h L w) (r : ℕ) :
                      WInv D B 0 (min L (2 * r + 1)) (Windowed.extract r w)

                      Cutting windows of radius r: the heads are at 0 and every window holds at most 2 * r + 1 cells, and at most as many as before.

                      The windows of the initial configuration.

                      One step #

                      Pasting #

                      The windowed simulation #

                      theorem Turing.MultiTapeTM.Universal.Windowed.WInv.sim {d : Desc} {B h L : ℕ} (hDB : descLen d ≤ B) {w : Win} (hw : WInv (descLen d) B h L w) (n : ℕ) :
                      WInv (descLen d) B (h + 1) (L + 2 * n) (Windowed.sim d n w).1

                      The bounds after the windowed simulation of n steps, for a description of length at most B: the heads move by at most one and every window gains at most 2 * n cells.

                      theorem Turing.MultiTapeTM.Universal.Windowed.WInv.restore_sim {d : Desc} {B h L : ℕ} (hDB : descLen d ≤ B) {w : Win} (hw : WInv (descLen d) B h L w) (r m : ℕ) :
                      WInv (descLen d) B 0 (L + 2 * m) (restore r w (Windowed.sim d m (Windowed.extract r w)).1)

                      The bounds after simulating on cut windows and pasting them back: simulating m steps on the windows of radius r and pasting the result back adds at most 2 * m cells to every window, and puts the heads at 0.

                      The windowed simulation of n steps emits at most n symbols.

                      theorem Turing.MultiTapeTM.Universal.Windowed.le_of_mem_sim_out {d : Desc} {n : ℕ} {w : Win} {o : ℕ} (ho : o ∈ (sim d n w).2) :

                      The symbols emitted by the windowed simulation are at most the length of the description.

                      The size of the emitted symbols.