Documentation

Complexitylib.Models.TuringMachine.Witness.Verifier.Defs

Ordinary finite verifiers compiled to witness machines #

The compiler first realizes the witness bound on ordinary tapes, then stores a finite certificate, builds a canonical pair, and runs the ordinary verifier. Setup scratch and verifier scratch are separate blocks. Only the external source stream is uncharged; the stored certificate and paired input are charged.

A deterministic phase that leaves the external source stream untouched.

Equations
Instances For

    Compose two witness phases with the standard one-step handoff.

    Equations
    Instances For
      @[reducible, inline]

      Charged tape count: private setup block, verifier work, pair, and certificate.

      Equations
      Instances For

        The unary counter remains at the end of the setup's private block.

        Equations
        Instances For

          The paired virtual input follows the verifier's own work tapes.

          Equations
          Instances For

            The stored finite certificate uses the final charged tape.

            Equations
            Instances For
              def Complexity.WitnessTM.Verifier.window (bound resource : ℕ → ℕ) (n : ℕ) :

              The finite maximum accommodates time and space bounds without monotonicity.

              Equations
              Instances For
                def Complexity.WitnessTM.Verifier.time {r : ℕ} {bound : ℕ → ℕ} (setup : WitnessBoundSetup r bound) (T : ℕ → ℕ) (n : ℕ) :

                Exact phase-budget expression; all setup and handoff costs are included.

                Equations
                • One or more equations did not get rendered due to their size.
                Instances For
                  def Complexity.WitnessTM.Verifier.space {r : ℕ} {bound : ℕ → ℕ} (setup : WitnessBoundSetup r bound) (S : ℕ → ℕ) (n : ℕ) :

                  Conservative phase-space budget, including stored certificate, relocated input, setup scratch, and output travel, but no verifier-time contribution.

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

                    The bounded existential language of an ordinary paired-input verifier.

                    Equations
                    Instances For
                      def Complexity.WitnessTM.Verifier.suffix {k : ℕ} (r : ℕ) (M : TM k) :
                      TM (tapes r k)

                      Once a certificate is stored, pair construction and verification are ordinary deterministic phases with no further witness-stream access.

                      Equations
                      • One or more equations did not get rendered due to their size.
                      Instances For
                        def Complexity.WitnessTM.Verifier.guessPrefix {r : ℕ} {bound : ℕ → ℕ} (setup : WitnessBoundSetup r bound) (k : ℕ) :

                        The only witness-consuming prefix: realize the numeric bound, then store a finite certificate. Later verification can reread that charged copy freely.

                        Equations
                        • One or more equations did not get rendered due to their size.
                        Instances For
                          def Complexity.WitnessTM.Verifier.compile {r : ℕ} {bound : ℕ → ℕ} {k : ℕ} (setup : WitnessBoundSetup r bound) (M : TM k) :

                          The ordinary finite-verifier compiler. Every data-bearing intermediate tape is charged; the sole free tape provides online choices for materialization.

                          Equations
                          Instances For