Documentation

MIPRE.Foundations.Introspection.SourceCompilerCost

Composed execution cost of the actual source component #

This accounts for parameter generation, the clocked sampler dimension query, format checks, source-question unpadding, and the clocked original decider. The bound applies to all raw inputs and arbitrary source program texts.

Equations
  • One or more equations did not get rendered due to their size.
Instances For
    theorem MIPRE.Introspection.SourceCompiler.call_runs_cost (route : Cost.PolyTimeFun Cost.Data (Bool × Cost.Data)) (post : Cost.PolyTimeFun (Cost.Data × Cost.Data) Cost.Data) {p : Cost.Prog} (hp : Cost.Prog.WellScoped 1 p) (x a ctx r : Cost.Data) (T t : ℕ) (ht : t ≤ T) (hroute : route.toFun x = (true, a.cons ctx)) (hr : p.Runs a r t) :
    ∃ time ≤ callCost route post x a ctx T, (Cost.Prog.routeOneCall route p post).Runs x (post.toFun (ctx, r)) time
    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
              theorem MIPRE.Introspection.SourceCompiler.dimensionStage_runs_cost (k lam : ℕ) (U : Cost.ClockedUniversalMachine) (S : Cost.Prog) (x bounds : Cost.Data) :
              ∃ t ≤ dimensionCost k lam U S x bounds, (dimensionStage k lam U S).Runs (x.cons bounds) ((x.cons bounds).cons (dimensionResult k lam S (ClockSimulation.indexReader.toFun x))) t
              Equations
              • One or more equations did not get rendered due to their size.
              Instances For

                A compositional cost bound for every raw input, without source halting assumptions.