Oblivious-Sequence Cell-Probe Implementations and Zero-Error Yao Averaging #
This file connects state-free oblivious-sequence specifications
(Cslib.DataStructure.ObliviousSequenceSpec) to randomized cell-probe schemes
(Cslib.CellProbe.Randomized.Scheme, [Mil99]) and provides the DataStructure-level
averaging (coin-fixing) corollaries, the easy direction of Yao's principle [Yao77], for
zero-error (Las Vegas) schemes against oblivious operation sequences:
ObliviousSequenceImpl: certifies thatP : Cslib.CellProbe.Randomized.Scheme S.Op S.Result cells wsatisfiesS.Contract ops ((P.runSeq ops).map Prod.fst)andP.expectedSeqProbes ops ≤ initPotential + (ops.map charge).sumon everyS.ValidOpSeq ops(covering both zero-error contracts viaD.toObliviousSequenceSpec s₀and bounded-error Monte Carlo contracts via generalObliviousSequenceSpec), with cell paddingpadCellsand contract weakeningweaken.- State-transition lift (
StateTransitionImpl.toObliviousSequenceImpl): canonically embeds anyRandomized.StateTransitionImpl(and any deterministicCellProbe.StateTransitionImpl) whosechargeis bounded byopCharge : D.Op → ℕintoObliviousSequenceImpl. - Averaging (easy) direction of Yao's principle [Yao77] for zero-error schemes on oblivious
sequences: wraps
Scheme.exists_det_indexedScheme_le_expectedSeqProbesandScheme.exists_det_scheme_le_expectedSeqProbesoverD.toObliviousSequenceSpec s₀on deterministic specifications ([D.HasStepFn f]):- Parameterized over an explicit finite
opsAlphabet : Finset D.Opandhorizon : ℕ, withcorrectSeqsseparated fromhardDist, so infinite operation types such asDictionary.Op U(carryingv : ℕ) work directly without[Fintype D.Op]; bounded-error Monte Carlo schemes and adaptive sequence adversaries are out of scope. - Fixing per-operation coins yields a step-indexed
Cslib.CellProbe.IndexedScheme(the time-aware relaxation with a free step clock outside cell memory), so any deterministic cell-probe lower bound paired withexists_det_indexedScheme_le_expectedSeqProbesmust hold against step-indexedIndexedSchemes. - In the random initial memory / coin-free steps specialization (
IsCoinFree, where randomness lives only inP.initand operations observe it only by probing cells),exists_det_scheme_le_expectedSeqProbesproduces a time-invariantCslib.CellProbe.SchemewithoutopsAlphabetorhorizon.
- Parameterized over an explicit finite
Main definitions #
Cslib.DataStructure.CellProbe.Randomized.ObliviousSequenceImpl: certified randomized cell-probe implementation ofS : ObliviousSequenceSpec.Cslib.DataStructure.CellProbe.Randomized.ObliviousSequenceImpl.padCells,Cslib.DataStructure.CellProbe.Randomized.ObliviousSequenceImpl.weaken: cell-space monotonicity and specification weakening onObliviousSequenceImpl.Cslib.DataStructure.CellProbe.Randomized.StateTransitionImpl.toObliviousSequenceImpl,Cslib.DataStructure.CellProbe.StateTransitionImpl.toObliviousSequenceImpl: canonical embeddings intoObliviousSequenceImploverD.toObliviousSequenceSpec s₀.
Main results #
Cslib.DataStructure.CellProbe.Randomized.exists_det_indexedScheme_le_expectedSeqProbesandCslib.DataStructure.CellProbe.Randomized.exists_det_indexedScheme_le_expectedSeqProbes_of_fintype— averaging (easy) direction of Yao's principle [Yao77] for zero-error schemes onD.toObliviousSequenceSpec s₀, producing a step-indexedIndexedSchemeover an explicit finiteopsAlphabet(or[Fintype D.Op]).Cslib.DataStructure.CellProbe.Randomized.exists_det_scheme_le_expectedSeqProbes: random initial memory / coin-free steps specialization producing a time-invariantCslib.CellProbe.Scheme.Randomized.ObliviousSequenceImpl.exists_det_indexedScheme,Randomized.ObliviousSequenceImpl.le_expected_charge_of_det_indexedScheme,Randomized.StateTransitionImpl.exists_det_indexedScheme,Randomized.StateTransitionImpl.exists_det_scheme, andRandomized.StateTransitionImpl.le_expected_totalCost_of_det_indexedScheme: end-to-end coin-fixing and lower-bound transfer corollaries inCslib.DataStructure.CellProbe.Randomized(bounding the certified budgetinitPotential + E[totalCost], not rawE[P.expectedSeqProbes]).
References #
ObliviousSequenceImpl: randomized cell-probe implementation of ObliviousSequenceSpec #
Certified randomized cell-probe implementation of S : ObliviousSequenceSpec in cells cells
of w-bit words (cells * w bits total).
- initPotential : ℕ
Upper bound on initial potential (
0when unamortized). Per-operation expected probe charge.
- contract_runSeq ⦃ops : List S.Op⦄ : S.ValidOpSeq ops → S.Contract ops (PMF.map Prod.fst (P.runSeq ops))
Distributional transcript correctness across every admissible sequence
ops. - expectedSeqProbes_le ⦃ops : List S.Op⦄ : S.ValidOpSeq ops → P.expectedSeqProbes ops ≤ ↑self.initPotential + ↑(List.map self.charge ops).sum
Expected total probe bound across every admissible sequence
ops.
Lift an ObliviousSequenceImpl from cells cells to cells' cells (cells ≤ cells') via
Cslib.CellProbe.Randomized.Scheme.padCells.
Transport an ObliviousSequenceImpl along ObliviousSequenceSpec.weaken.
Canonical embeddings of StateTransitionImpl into ObliviousSequenceImpl #
Canonical embedding of any relational Randomized.StateTransitionImpl into
ObliviousSequenceImpl over D.toObliviousSequenceSpec s₀, given a state-independent operation
charge bound opCharge : D.Op → ℕ with ∀ s o, D.valid s o → C.charge s o ≤ opCharge o.
Canonical embedding of any deterministic CellProbe.StateTransitionImpl into
Randomized.ObliviousSequenceImpl over D.toObliviousSequenceSpec s₀.
Averaging (coin-fixing) argument, the easy direction of Yao's principle [Yao77], for
zero-error schemes on oblivious sequences (IndexedScheme over explicit finite opsAlphabet):
Suppose D : StateTransitionSpec is deterministic ([D.HasStepFn f]), opsAlphabet : Finset D.Op
is a finite set of admissible operations, correctSeqs is any set of admissible histories
(D.ValidHistory s₀ ops) of length ≤ horizon over opsAlphabet on which P satisfies the
zero-error contract (D.toObliviousSequenceSpec s₀).Contract ops ((P.runSeq ops).map Prod.fst)
(bounded-error Monte Carlo schemes and adaptive sequence adversaries are out of scope), and
hardDist : PMF (List D.Op) is any sequence distribution supported on sequences of length
≤ horizon over opsAlphabet.
Then there exists a deterministic D_det in (P.indexedSchemeLaw horizon opsAlphabet).support
(the time-aware relaxation with a free step clock outside cell memory; deterministic lower
bounds paired with this theorem must hold against step-indexed IndexedSchemes) that returns the
canonical transcript (D.run s₀ ops).2 on all ops ∈ correctSeqs and incurs expected probes over
hardDist at most that of P.
[Fintype D.Op] convenience corollary of exists_det_indexedScheme_le_expectedSeqProbes,
instantiating opsAlphabet := Finset.univ.
Random initial memory / coin-free steps averaging argument [Yao77] (CellProbe.Scheme):
when randomness lives only in initial memory P.init and per-operation trees draw no private coins
(∀ o, (P.step o).IsCoinFree, so operations observe P.init only by probing cells), zero-error
averaging over D.toObliviousSequenceSpec s₀ produces a time-invariant deterministic
D_det : Cslib.CellProbe.Scheme D.Op D.Result cells w in (P.schemeLaw hstep).support without
requiring [DecidableEq D.Op], [∀ o, Inhabited (D.Result o)], opsAlphabet, or horizon.
Zero-error Yao averaging (easy direction [Yao77]) packaged directly for an
ObliviousSequenceImpl (D.toObliviousSequenceSpec s₀) P on a deterministic specification
([D.HasStepFn f]): produces a step-indexed IndexedScheme (in the time-aware relaxation with a
free step clock) correct on correctSeqs with expected probes bounded by C's amortized budget.
Lower-bound transfer for ObliviousSequenceImpl (D.toObliviousSequenceSpec s₀) P: any
distributional lower bound L proved against all deterministic step-indexed IndexedSchemes
correct on correctSeqs transfers directly to C.initPotential + E_{hardDist}[sum charge].
Zero-error Yao averaging (easy direction [Yao77]) packaged directly for a
Randomized.StateTransitionImpl D P s₀ on a deterministic specification ([D.HasStepFn f]),
producing a step-indexed IndexedScheme (in the time-aware relaxation with a free step clock)
bounded by C.initPotential + E_{hardDist}[D.totalCost C.charge s₀ ops].
Random initial memory / coin-free steps averaging specialization [Yao77] for
Randomized.StateTransitionImpl D P s₀ ([D.HasStepFn f]), returning a time-invariant
Cslib.CellProbe.Scheme without opsAlphabet or horizon.
Lower-bound transfer for Randomized.StateTransitionImpl D P s₀: any distributional lower bound
L proved against all deterministic step-indexed IndexedSchemes correct on correctSeqs
transfers directly to C.initPotential + E_{hardDist}[D.totalCost C.charge s₀ ops].