Documentation

MIPRE.Background.Tailored.Intro.LpIntro

The linear-constraints processor of the introspection verifier #

Issue #281 (Phase 3 of planning/aldous-lyons-track.md): the linear-constraints processor P^intro of the tailored presentation of Introspection.seven, at the input's three programs (S, L, P) and the parameter λ. On (n, x, y, a^R, b^R), for λ ≥ 1 and n ≥ 1, its program

  1. prepares the shared resources as the decision kernel of seven does (DecisionPreparation.prog): the clock 2^{(λn + 1)^5} in unary, the index 2^n, the Pauli parameters (k, j, 2^j) in unary, Q and R;
  2. puts Q and R in unary (ClockArithmetic.bothUnary);
  3. runs the core mainP (LpIntroCons.lean) on the environment, with the input's description clamped to λ (InputRuns.clamp) stored in the program (hardcode).

At λ = 0 it is the empty program, and at n = 0 it inspects the index in place (LenIntro.lenWrap) and outputs nil: both output the empty list of constraints.

The kernel input #

The resources DecisionPreparation.prog prepares from cons (encode M) x.

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

    The pair (Q, R) in the encoded resources.

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

          The core's input, from the resources and (Q, R) in unary.

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

            The core program on cons (encode M) (n, x, y, a, b).

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

              The processor #

              The program of the processor at the input's programs V and λ: empty at λ = 0, otherwise the core with the clamped description stored, behind the index test.

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

                The linear-constraints processor of the introspection verifier at the constant c, the clocked universal machine U, the input's programs V and the level λ.

                Equations
                Instances For

                  The processor's program from (V, λ), in polynomial time.

                  Equations
                  • One or more equations did not get rendered due to their size.
                  Instances For
                    theorem MIPRE.Tailored.Intro.LpIntro.lpIntroC_lpIs (c : ℕ) (U : Cost.ClockedUniversalMachine) (V : Cost.Prog × Cost.Prog × Cost.Prog) {lam n : ℕ} (hl : 1 ≤ lam) (hn : 1 ≤ n) (xs ys aR bR : Cost.BitStr) :
                    LpIs (lpIntroC c U V lam) n xs ys aR bR ((mainP U).toFun ((envOf c lam n (InputRuns.clamp.toFun (V, lam)), aR, bR), xs, ys))

                    What the processor outputs at positive λ and n: the core on the environment of the clamped description.

                    theorem MIPRE.Tailored.Intro.LpIntro.lpIntroC_lpIs_zero (c : ℕ) (U : Cost.ClockedUniversalMachine) (V : Cost.Prog × Cost.Prog × Cost.Prog) {lam n : ℕ} (h : lam = 0 ∨ n = 0) (xs ys aR bR : Cost.BitStr) :
                    LpIs (lpIntroC c U V lam) n xs ys aR bR []

                    At λ = 0 or n = 0 the processor outputs no constraint.

                    At the constant of Introspection.seven #

                    The linear-constraints processor P^intro_λ of the tailored presentation of Introspection.seven, at the input's programs V.

                    Equations
                    Instances For
                      theorem MIPRE.Tailored.Intro.LpIntro.lpIntro_lpIs_zero {V : Cost.Prog × Cost.Prog × Cost.Prog} {lam n : ℕ} (h : lam = 0 ∨ n = 0) (xs ys aR bR : Cost.BitStr) :
                      LpIs (lpIntro V lam) n xs ys aR bR []

                      At λ = 0 or n = 0, the processor outputs no constraint.

                      The specification #

                      theorem MIPRE.Tailored.Intro.LpIntro.lpIntroC_cons_eq {c : ℕ} (hc : 1 ≤ c) (he : Even c) {lam n : ℕ} (U : Cost.ClockedUniversalMachine) (T : TailoredVerifier 7) (V : Verifier 7) (hT : T.IsBounded lam) (hV : V.IsBounded lam) (hl : 1 ≤ lam) (hn : 1 ≤ n) (hsamp : V.sampler.prog = T.sampler.prog) (hs : V.sampler.dim (2 ^ n) ≤ Introspection.SourceCompiler.registerBits c lam n) (x y : CL.Detyping.Coord Label (Fin (Introspection.PauliSampler.dimension c lam n)) → ZMod 2) (aR bR : Cost.BitStr) :
                      LpIs (lpIntroC c U T.progs lam) n (CL.toBits ((Output.qe c hc he U V hl hn) x)) (CL.toBits ((Output.qe c hc he U V hl hn) y)) aR bR ((presented Introspection.DecisionCompiler.graph (Sound.H c hc he lam n U V) (Sound.tdata c hc he lam n T V hs (regKerGens (Introspection.SourceCompiler.registerBits c lam n)))).cons x y aR bR)

                      The cons_eq clause of the specification, at a constant c: for a λ-bounded input T and a λ-bounded normal form verifier V with T's sampler program, at n ≥ 1, the processor outputs at every pair of detyped questions the presented game's constraints.

                      The specification Output.IntroSpec of the output's two programs, with LenIntro.lenIntro and lpIntro: for a λ-bounded tailored input T whose normal form verifier T.ofTNFVT U0 is λ-bounded, at n ≥ 1, with the kernel generators regKerGens.