Accumulating bad-event probability with two query costs #
A stateful oracle may have two independently bounded kinds of calls, where each channel can charge
against its own growing bad-event budget (toOuterMeasure_bad_le_two_budgets), or where one
channel charges against a growing budget and the other charges a fixed error
(toOuterMeasure_bad_le_two). This extends the single-cost bound in
CslibFrontier/Languages/Probabilistic/UntilBad.lean without introducing a cryptographic protocol
dependency.
Main results #
Cslib.OracleComp.toOuterMeasure_bad_le_two_budgets: bound the probability of a bad final state byk₁ * (budget₁ s + k₁ * δ₁₁ + k₂ * δ₁₂) + k₂ * (budget₂ s + k₁ * δ₂₁ + k₂ * δ₂₂)for two query-cost budgetsk₁andk₂with growing per-channel budgetsbudget₁andbudget₂.Cslib.OracleComp.toOuterMeasure_bad_le_two: specialization when the second channel charges a constant per-call errorε.
Two-channel accumulated bad-state probability with two growing budgets: let each call q
from a good state ¬bad s turn bad with probability at most
cost₁ q * budget₁ s + cost₂ q * budget₂ s, raising budget₁ by at most
cost₁ q * δ₁₁ + cost₂ q * δ₁₂ and budget₂ by at most cost₁ q * δ₂₁ + cost₂ q * δ₂₂. Then a
program with IsCostBounded cost₁ program k₁ and IsCostBounded cost₂ program k₂, started in a
good state s, ends in a bad state with probability at most
k₁ * (budget₁ s + k₁ * δ₁₁ + k₂ * δ₁₂) + k₂ * (budget₂ s + k₁ * δ₂₁ + k₂ * δ₂₂).
Two-channel accumulated bad-state probability: let each call q from a good state ¬bad s
turn bad with probability at most cost₁ q * budget s + cost₂ q * ε, and raise budget by at most
cost₁ q * δ₁ + cost₂ q * δ₂. Then a program with IsCostBounded cost₁ program k₁ and
IsCostBounded cost₂ program k₂, started in a good state s, ends in a bad state with probability
at most
k₁ * (budget s + k₁ * δ₁ + k₂ * δ₂) + k₂ * ε.