Documentation

MIPRE.Background.Introspection.DecisionCompilerZero

Constant-resource branches of the introspection decider #

At zero parameter or index, the sampler has dimension zero. These branches inspect the answer payload without copying the index or source metadata.

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

      Test the encoded index before entering a program containing source metadata.

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        theorem MIPRE.Introspection.DecisionCompiler.zeroWrap_runs_pos {p : Cost.Prog} (hp : Cost.Prog.WellScoped 1 p) {n : ℕ} (hn : 1 ≤ n) (d r : Cost.Data) (t : ℕ) (hr : p.Runs ((Cost.encode n).cons d) r t) :
        (zeroWrap p).Runs ((Cost.encode n).cons d) r (t + ((Cost.encode n).cons d).size + 4)
        Equations
        • One or more equations did not get rendered due to their size.
        Instances For
          theorem MIPRE.Introspection.DecisionCompiler.zero_time_bound :
          ∃ (C : ℕ), ∀ (n d : Cost.Data), ∃ t ≤ 2 * (d.size + 1) ^ C, zeroProg.Runs (n.cons d) (Cost.encode (zeroTest.toFun d)) t