Documentation

MIPRE.Foundations.Introspection.SourceCompilerGuard

Dynamic source-question projection and internal answer cutoff #

The input carries (n,Q,R,s,answerA,answerB) with all four numbers in binary. The guard validates the paper's tuple encoding, the separate original-answer cutoff, and membership of both register strings in the zero-padded source question space. Only then does it invoke the source on the first s bits.

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
        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
            @[instance_reducible]
            Equations
            • One or more equations did not get rendered due to their size.
            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

                Projection produces questions of exactly the original sampler dimension.

                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
                    @[instance_reducible]
                    Equations
                    • One or more equations did not get rendered due to their size.
                    Equations
                    • One or more equations did not get rendered due to their size.
                    Instances For

                      Rejection evaluates no source code, even if that code diverges.

                      theorem MIPRE.Introspection.SourceCompiler.projectedProg_call {source : Cost.Prog} (hs : Cost.Prog.WellScoped 1 source) (x r : Cost.Data) (t : ℕ) (h : RawReady x) (hr : source.Runs (projectedCall.toFun (readInput.toFun x)) r t) :
                      ∃ (time : ℕ), (projectedProg source).Runs x r time
                      theorem MIPRE.Introspection.SourceCompiler.projectedProg_accepts_iff {source : Cost.Prog} (hs : Cost.Prog.WellScoped 1 source) (halts : ∀ (x : Cost.Data), Cost.Halts source x) (x : Cost.Data) :
                      (∃ (t : ℕ), (projectedProg source).Runs x (Cost.encode true) t) ↔ RawReady x ∧ ∃ (t : ℕ), source.Runs (projectedCall.toFun (readInput.toFun x)) (Cost.encode true) t