Documentation

Complexitylib.Circuits.Unrolling.Transition.Fragment.Internal.Size

Size bounds for packed one-step transition fragments #

This internal module bounds every formula in a bounded transition layer by a machine-dependent linear function of the trace horizon. Since a configuration block itself has linear width, the packed one-step fragment has quadratic size.

Linear coefficient bounding the size of one transition-case formula.

Equations
Instances For
    noncomputable def Complexity.CircuitUnrolling.effectSizeCoeff {k : } (tm : NTM k) :

    Linear coefficient bounding a transition-effect selector.

    Equations
    Instances For
      noncomputable def Complexity.CircuitUnrolling.nextSizeCoeff {k : } (tm : NTM k) :

      Linear coefficient bounding a next-configuration formula.

      Equations
      Instances For

        Linear coefficient bounding the width of a configuration fragment.

        Equations
        Instances For
          @[simp]
          theorem Complexity.CircuitUnrolling.size_configVar_internal {k : } (tm : NTM k) (T base : ) (atom : ConfigAtom tm T) :
          (configVar tm T base atom).size = 1

          Internal exact size of a configuration-variable formula.

          @[simp]
          theorem Complexity.CircuitUnrolling.size_haltVar_internal {k : } (tm : NTM k) (T base : ) :
          (haltVar tm T base).size = 1

          Internal exact size of the halted-state variable.

          theorem Complexity.CircuitUnrolling.size_readFormula_succ_le_internal {k : } (tm : NTM k) (T base : ) (tape : TapeSlot k) (symbol : Γ) :
          (readFormula tm T base tape symbol).size + 1 4 * (T + 2)

          A read formula plus its enclosing list connective costs at most four nodes per represented head position.

          theorem Complexity.CircuitUnrolling.size_caseFormula_le_internal {k : } (tm : NTM k) (T base choiceWire : ) (view : TransitionCase tm) :
          (caseFormula tm T base choiceWire view).size caseSizeCoeff k * (T + 2)

          Internal linear size bound for a complete local transition case.

          theorem Complexity.CircuitUnrolling.size_effectFormula_le_internal {k : } (tm : NTM k) (T base choiceWire : ) (selects : TransitionEffect tmBool) :
          (effectFormula tm T base choiceWire selects).size effectSizeCoeff tm * (T + 2)

          Internal linear size bound for a finite transition-effect selector.

          theorem Complexity.CircuitUnrolling.size_selectedStateFormula_le_internal {k : } (tm : NTM k) (T base choiceWire : ) (state : tm.Q) :
          (selectedStateFormula tm T base choiceWire state).size effectSizeCoeff tm * (T + 2)

          Internal size bound for successor-state selection.

          theorem Complexity.CircuitUnrolling.size_selectedMoveFormula_le_internal {k : } (tm : NTM k) (T base choiceWire : ) (tape : TapeSlot k) (direction : Dir3) :
          (selectedMoveFormula tm T base choiceWire tape direction).size effectSizeCoeff tm * (T + 2)

          Internal size bound for head-movement selection.

          theorem Complexity.CircuitUnrolling.size_selectedWriteFormula_le_internal {k : } (tm : NTM k) (T base choiceWire : ) (tape : WritableSlot k) (symbol : Γ) :
          (selectedWriteFormula tm T base choiceWire tape symbol).size effectSizeCoeff tm * (T + 2)

          Internal size bound for write-symbol selection.

          theorem Complexity.CircuitUnrolling.size_predecessorHeadFormula_le_internal {k : } (tm : NTM k) (T base : ) (tape : TapeSlot k) (target : Fin (T + 1)) (direction : Dir3) :
          (predecessorHeadFormula tm T base tape target direction).size 2 * (T + 2)

          Internal linear size bound for predecessor-head selection.

          theorem Complexity.CircuitUnrolling.size_movedHeadFormula_le_internal {k : } (tm : NTM k) (T base choiceWire : ) (tape : TapeSlot k) (target : Fin (T + 1)) :
          (movedHeadFormula tm T base choiceWire tape target).size (3 * effectSizeCoeff tm + 13) * (T + 2)

          Internal linear size bound for a moved-head atom.

          @[simp]
          theorem Complexity.CircuitUnrolling.size_headAtCellFormula_internal {k : } (tm : NTM k) (T base : ) (tape : TapeSlot k) (position : Fin (T + 2)) :
          (headAtCellFormula tm T base tape position).size = 1

          Internal exact size of the old-head-at-cell formula.

          @[simp]
          theorem Complexity.CircuitUnrolling.size_haltedOrFormula_internal {k : } (tm : NTM k) (T base : ) (oldValue nextValue : BoolFormula) :
          (haltedOrFormula tm T base oldValue nextValue).size = oldValue.size + nextValue.size + 6

          Internal exact overhead of halted-or-successor multiplexing.

          theorem Complexity.CircuitUnrolling.size_writtenCellFormula_le_internal {k : } (tm : NTM k) (T base choiceWire : ) (tape : WritableSlot k) (position : Fin (T + 2)) (symbol : Γ) :
          (writtenCellFormula tm T base choiceWire tape position symbol).size effectSizeCoeff tm * (T + 2) + 7

          Internal linear size bound for a positive writable-cell formula.

          theorem Complexity.CircuitUnrolling.size_nextFormula_le_internal {k : } (tm : NTM k) (T base choiceWire : ) (atom : ConfigAtom tm T) :
          (nextFormula tm T base choiceWire atom).size nextSizeCoeff tm * (T + 2)

          Every successor-configuration atom has size linear in the horizon.

          The bounded configuration width is linear in the horizon.

          Internal explicit form of the linear configuration-width bound.

          theorem Complexity.CircuitUnrolling.stepFragmentSize_le_internal {k : } (tm : NTM k) (T configBase choiceWire : ) :
          stepFragmentSize tm T configBase choiceWire stepSizeCoeff tm * (T + 2) ^ 2

          The exact packed one-step gate count is quadratic in the trace horizon.