Documentation

MIPRE.Tailored.Halting.Cost

The tailored halting verifier: the accounting #

Paper II, lem:lambda (II:2002), for the three programs of a tailored verifier, along the route of MIPRE/Foundations/Halting/Paper/{Size,Cost}.lean, which this file parallels: the verifier Vhalt M λ is λ-bounded (TailoredVerifier.IsBounded λ) as soon as λ ≥ Λ₀ + 4|M|, for a threshold Λ₀ depending on the compression, the universal machines and the search program alone (exists_lamBound, Lam0).

Sizes #

The size of the code of F beyond |M| + |λ|.

Equations
Instances For

    The size of kleeneProg U.univ F beyond |M| + |λ|.

    Equations
    Instances For

      The size of the processor lp M λ beyond 2 (|M| + |λ|).

      Equations
      Instances For
        theorem MIPRE.Tailored.Halting.esize_lpProg {ℓ : ℕ} (TG : TailoredGapCompression ℓ) (U : Cost.UniversalMachine) (UT : Cost.ClockedUniversalMachine) (S' M : Cost.Prog) (lam : ℕ) :
        Cost.esize (lpProg TG U UT S' M lam) = 2 * (Cost.esize M + Cost.esize lam) + cD TG U UT S'
        theorem MIPRE.Tailored.Halting.esize_F_apply {ℓ : ℕ} (TG : TailoredGapCompression ℓ) (U : Cost.UniversalMachine) (UT : Cost.ClockedUniversalMachine) (S' M : Cost.Prog) (lam : ℕ) (e : Cost.Prog) :
        Cost.esize ((F TG U UT S' M lam).toFun e) = Cost.esize (body TG U UT S') + Cost.esize M + Cost.esize lam + Cost.esize e + 37

        F e = hardcode body (M, (λ, e)) has size |body| + |M| + |λ| + |e| + 37.

        theorem MIPRE.Tailored.Halting.F_timeBound_eval {ℓ : ℕ} (TG : TailoredGapCompression ℓ) (U : Cost.UniversalMachine) (UT : Cost.ClockedUniversalMachine) (S' M : Cost.Prog) (lam x : ℕ) :
        Polynomial.eval x (F TG U UT S' M lam).timeBound = 2 * (Cost.esize (body TG U UT S') + Cost.esize M + Cost.esize lam + x) + 47

        The time bound of F: affine in the argument and in |body| + |M| + |λ|.

        The overhead of the fixed point's time transfer beyond 21 (|M| + |λ|).

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

          What prep returns #

          The cost of the two constant programs: the sizes of the two constant outputs.

          Equations
          Instances For
            noncomputable def MIPRE.Tailored.Halting.progSize {ℓ : ℕ} (TG : TailoredGapCompression ℓ) (lam : ℕ) (e : Cost.Prog) :

            The size of the program prep returns, at the parameter λ and the processor e: the compressed processor's, from compress's time bound at the size of its input.

            Equations
            • One or more equations did not get rendered due to their size.
            Instances For
              theorem MIPRE.Tailored.Halting.prep_output {ℓ : ℕ} (TG : TailoredGapCompression ℓ) (UT : Cost.ClockedUniversalMachine) (S' M : Cost.Prog) (lam : ℕ) (e : Cost.Prog) (n : ℕ) (d : Cost.Data) :
              Cost.esize ((prep TG UT S').toFun ((M, lam, e), n, d)).1 ≤ progSize TG lam e ∧ ((prep TG UT S').toFun ((M, lam, e), n, d)).2.size ≤ Cost.esize n + d.size + 1 ∧ ∃ (r : Cost.Data), ∃ t ≤ Polynomial.eval (n + lam) TG.bound * (d.size + 1) ^ TG.deg + constCost, ((prep TG UT S').toFun ((M, lam, e), n, d)).1.Runs ((prep TG UT S').toFun ((M, lam, e), n, d)).2 r t

              What prep returns, on the description (M, (λ, e)) and the input (n, d): a program of size at most progSize λ e, an input of size at most |n| + |d| + 1, and the program runs on the input within the compressed processor's time plus a constant.

              The processor's run #

              Every atom of the cost — |n|, |M| + |λ|, |λ|, n, λ — is at most muZ z = 5z + 1 or z at z = n + |M| + λ.

              The size of the processor, in z.

              Equations
              Instances For

                The size of the description (M, (λ, lp M λ)), in z.

                Equations
                Instances For

                  The size of F (lp M λ), in z.

                  Equations
                  Instances For

                    The time of prep, in z and |d|.

                    Equations
                    Instances For

                      The size of the program prep returns, in z.

                      Equations
                      • One or more equations did not get rendered due to their size.
                      Instances For
                        noncomputable def MIPRE.Tailored.Halting.tcZ {ℓ : ℕ} (TG : TailoredGapCompression ℓ) (z s : ℕ) :

                        The time of the program prep returns, in z and |d|.

                        Equations
                        Instances For

                          The time of the universal machine on it, in z and |d|.

                          Equations
                          Instances For

                            The time of body, in z and |d|.

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

                              The time of F (lp M λ), in z and |d|.

                              Equations
                              Instances For

                                The overhead of the fixed point's transfer, in z.

                                Equations
                                Instances For

                                  The master bound on the processor's run, in z and |d|.

                                  Equations
                                  • One or more equations did not get rendered due to their size.
                                  Instances For
                                    theorem MIPRE.Tailored.Halting.lp_cost {ℓ : ℕ} (TG : TailoredGapCompression ℓ) (U : Cost.UniversalMachine) (UT : Cost.ClockedUniversalMachine) (S' M : Cost.Prog) (lam n : ℕ) (d : Cost.Data) :
                                    ∃ (r : Cost.Data), ∃ t ≤ lpRunZ TG U UT S' (n + Cost.esize M + lam) d.size, (lpProg TG U UT S' M lam).Runs ((Cost.encode n).cons d) r t

                                    The processor's run: on (n, d), lp M λ halts within lpRunZ (n + |M| + λ) |d|.

                                    The polynomial form #

                                    theorem MIPRE.Tailored.Halting.exists_lp_cost_poly {ℓ : ℕ} (TG : TailoredGapCompression ℓ) (U : Cost.UniversalMachine) (UT : Cost.ClockedUniversalMachine) (S' : Cost.Prog) :
                                    ∃ (Q : Polynomial ℕ) (k : ℕ), ∀ (M : Cost.Prog) (lam n : ℕ) (d : Cost.Data), ∃ (r : Cost.Data), ∃ t ≤ Polynomial.eval (n + Cost.esize M + lam) Q * (d.size + 1) ^ k, (lpProg TG U UT S' M lam).Runs ((Cost.encode n).cons d) r t

                                    The processor's cost, in polynomial form: a polynomial Q and a degree k, depending on TG, U, UT and S' alone, with lp M λ halting on (n, d) within Q (n + |M| + λ) · (|d| + 1) ^ k.

                                    The clauses of IsBounded #

                                    theorem MIPRE.Tailored.Halting.sampler_len_clauses {ℓ : ℕ} (TG : TailoredGapCompression ℓ) :
                                    ∃ (n₀ : ℕ), ∀ (lam : ℕ), n₀ ≤ lam → ∀ (m : ℕ), 2 ≤ m → Polynomial.eval (m + lam) TG.bound ≤ m ^ lam ∧ (TG.sampler lam).dim m ≤ m ^ lam ∧ (TG.sampler lam).TimeBoundAt m (m ^ lam) lam ∧ (TG.len lam).TimeBoundAt m (m ^ lam) lam ∧ LenBound (TG.len lam) m (m ^ lam)

                                    The sampler and answer-length clauses, and the parameter inequality: past a threshold on λ, at every index m ≥ 2, the compression's bound poly(m, λ) is below m ^ λ, so the compressed sampler at λ has dimension at most m ^ λ and runs within m ^ λ · (|d| + 1) ^ λ, and the compressed answer-length calculator runs within the same bound and outputs lengths at most m ^ λ.

                                    theorem MIPRE.Tailored.Halting.lp_clause {ℓ : ℕ} (TG : TailoredGapCompression ℓ) (U : Cost.UniversalMachine) (UT : Cost.ClockedUniversalMachine) (S' : Cost.Prog) :
                                    ∃ (n₀ : ℕ), ∀ (M : Cost.Prog) (lam : ℕ), n₀ ≤ lam → Cost.esize M ≤ lam → ∀ (m : ℕ), 2 ≤ m → (Vhalt TG U UT S' M lam).lp.TimeBoundAt m (m ^ lam) lam

                                    The processor clause: past a threshold on λ, for |M| ≤ λ, the processor of V^{M,λ} runs within m ^ λ · (|d| + 1) ^ λ at every index m ≥ 2.

                                    The size of V^{M,λ} beyond 2|M|, as a function of |λ|.

                                    Equations
                                    Instances For
                                      theorem MIPRE.Tailored.Halting.Vhalt_size_le {ℓ : ℕ} (TG : TailoredGapCompression ℓ) (U : Cost.UniversalMachine) (UT : Cost.ClockedUniversalMachine) (S' M : Cost.Prog) (lam : ℕ) :
                                      (Vhalt TG U UT S' M lam).size ≤ 2 * Cost.esize M + vsizeZ TG U UT S' (Cost.esize lam)

                                      The size of V^{M,λ} is at most 2|M| + vsizeZ |λ|.

                                      theorem MIPRE.Tailored.Halting.size_clause {ℓ : ℕ} (TG : TailoredGapCompression ℓ) (U : Cost.UniversalMachine) (UT : Cost.ClockedUniversalMachine) (S' : Cost.Prog) :
                                      ∃ (n₀ : ℕ), ∀ (M : Cost.Prog) (lam : ℕ), n₀ ≤ lam → 4 * Cost.esize M ≤ lam → (Vhalt TG U UT S' M lam).size ≤ lam

                                      The size clause: past a threshold on λ, for 4|M| ≤ λ, |V^{M,λ}| ≤ λ.

                                      lem:lambda #

                                      theorem MIPRE.Tailored.Halting.exists_lamBound {ℓ : ℕ} (TG : TailoredGapCompression ℓ) (U : Cost.UniversalMachine) (UT : Cost.ClockedUniversalMachine) (S' : Cost.Prog) :
                                      ∃ (Λ₀ : ℕ), ∀ (M : Cost.Prog) (lam : ℕ), Λ₀ + 4 * Cost.esize M ≤ lam → (Vhalt TG U UT S' M lam).IsBounded lam

                                      lem:lambda for tailored verifiers: there is a threshold Λ₀, depending on TG, U, UT and S' alone, such that for every machine M and every λ ≥ Λ₀ + 4|M|, the verifier V^{M,λ} is λ-bounded.

                                      The threshold of lem:lambda.

                                      Equations
                                      Instances For
                                        theorem MIPRE.Tailored.Halting.Lam0_spec {ℓ : ℕ} (TG : TailoredGapCompression ℓ) (U : Cost.UniversalMachine) (UT : Cost.ClockedUniversalMachine) (S' M : Cost.Prog) (lam : ℕ) (h : Lam0 TG U UT S' + 4 * Cost.esize M ≤ lam) :
                                        (Vhalt TG U UT S' M lam).IsBounded lam