Documentation

CslibFrontier.Computability.Machines.Turing.MultiTape.Probabilistic.CoinTape.QueryBounds

Query budgets for saved coins #

Each saved coin executes at most one external query. The bounds hold for every supplied tape, including tapes outside any intended sampling law, and for arbitrary oracle replies.

Main results #

References #

Original structural bounds for the existing saved-coin interpreter.

theorem Turing.MultiTapePTM.isCostBounded_runConfigFromCoins {k : ℕ} {Symbol Control Operation Query : Type} [DecidableEq Operation] {spec : Cslib.OracleSpec Query} {cost : Query → ℕ} (machine : MultiTapePTM k Symbol Control Operation) (query : Operation → List Symbol → Cslib.OracleComp spec (List Symbol)) (budget : ℕ) (hquery : ∀ (op : Operation) (word : List Symbol), Cslib.OracleComp.IsCostBounded cost (query op word) budget) (coins : List Bool) {input : List Symbol} (cfg : MultiTapeMachine.Config k Symbol Control Operation input) :
Cslib.OracleComp.IsCostBounded cost (machine.runConfigFromCoins query coins cfg) (coins.length * budget)

Replaying a fixed tape charges at most one query-handler budget per coin.

theorem Turing.MultiTapePTM.isCostBounded_runCoins {k : ℕ} {Symbol Control Operation Query : Type} [DecidableEq Operation] {spec : Cslib.OracleSpec Query} {cost : Query → ℕ} (machine : MultiTapePTM k Symbol Control Operation) (query : Operation → List Symbol → Cslib.OracleComp spec (List Symbol)) (budget : ℕ) (hquery : ∀ (op : Operation) (word : List Symbol), Cslib.OracleComp.IsCostBounded cost (query op word) budget) (coins : List Bool) (input : List Symbol) :
Cslib.OracleComp.IsCostBounded cost (machine.runCoins query coins input) (coins.length * budget)

Observing the replay output does not add queries.