Documentation

CslibFrontier.DataStructure.Dictionary.CellProbe.HardDist

Hard Operational Sequence Distributions and Yao Setup for Dynamic Dictionaries #

This module formalizes the hard operational distributions, uniform dictionary marginals, zero-error Yao coin-fixing specializations, and parallel single-timestamp state decoder used in the dynamic succinct dictionary cell-probe lower bounds of Li, Liang, Yu, and Zhou ([LLYZ23b]; locators below follow arXiv:2306.02253v3, where printed page p is PDF page p + 1).

  1. Finite operation alphabet (validOps U V): Because Dynamic.Op.insert u v carries an unbounded v : ℕ constrained to v < V by (Dynamic.spec U V n).valid, Dynamic.Op U is not finite. validOps U V restricts to all .query u, .delete u, and .insert u v with v < V (cardinality 2 * U + U * V), containing every admissible operation history.
  2. Hard operational distributions (insertQueryDeleteDist and insertDeleteDist): For 2 * n ≤ U and 1 ≤ V, sampling an injective key sequence keys : Fin (2 * n) ↪ Fin U, an independent value vector vals : Fin (2 * n) → Fin V, and an independent deletion permutation delPerm : Equiv.Perm (Fin n) uniformly produces:
    • insertQueryDeleteDist U V n hU hV ([LLYZ23b], Section 3, Distribution 1, p. 11 / PDF p. 12, extended to key-value pairs over [U] × [V] as in Section 7, Definition 7.1, p. 26 / PDF p. 27, with associated values sampled independently and uniformly from Fin V as in Section 8, proof of Theorem 1.3 and Lemma 8.1, p. 28 / PDF p. 29; V = 1 recovers key-only membership): n initial insertions of keys 0, …, keys (n - 1) followed by n three-step [query, delete, insert] meta-operations where meta-operation j queries and deletes keys (delPerm j) and inserts keys (n + j) (4 * n elementary operations).
    • insertDeleteDist U V n hU hV ([LLYZ23b], Section 8, proof of Theorem 1.3 and Lemma 8.1, p. 28 / PDF p. 29): n initial insertions followed by n two-step [delete, insert] update-only meta-operations (3 * n elementary operations, issuing zero .query operations).
  3. Admissibility, non-FIFO deletion order, and uniform size-n state marginals (SizedDict, sizedDictEquiv, reparamDelPermEquiv): Every supported sequence of either distribution is admissible for Dynamic.spec U V n from Dictionary.empty U; each meta-operation deletion targets any of the n initial insertions with uniform probability 1 / n (map_deletedKey_eq_insertedKey_insertQueryDeleteDist); and after the n initial insertions plus any t ≤ n complete meta-operations, the reached dictionary state has n keys, values < V, and uniform marginal distribution over the U.choose n * V ^ n valid size-n dictionaries (SizedDict U V n, bijecting via sizedDictEquiv with { K : Finset (Fin U) // K.card = n } × (Fin n → Fin V)).
  4. All-history zero-error Yao reduction and decodeDict: Specializing DataStructure.CellProbe.Randomized.exists_det_indexedScheme_le_expectedSeqProbes (and its ObliviousSequenceImpl and StateTransitionImpl companions) over validOps U V with correctness horizon 4 * n + 1 (resp. 3 * n + 1) yields a deterministic step-indexed IndexedScheme exact on every admissible history of length ≤ 4 * n + 1 (resp. ≤ 3 * n + 1), not merely on the hard distribution's support. Evaluating single-step .query u mathematically at fixed step index t (decodeDict D_det t C_t, our local formalization adaptation for step-indexed IndexedScheme making the time-indexed state recovery of Sections 4.2, 5.1, and 8 explicit without advancing the step clock across keys) recovers the exact abstract state s_t after any admissible prefix of length t ≤ 4 * n (resp. ≤ 3 * n).

Main definitions #

Main results #

References #

Finite alphabet of value-bounded dynamic dictionary operations #

Finite operation alphabet of all .query u, .delete u, and .insert u v with u : Fin U and v < V (size 2 * U + U * V).

theorem Cslib.DataStructure.Dictionary.CellProbe.mem_validOps_iff {U V : ℕ} {o : Dynamic.Op U} :
o ∈ validOps U V ↔ (∃ (u : Fin U), o = Dynamic.Op.query u) ∨ (∃ (u : Fin U), o = Dynamic.Op.delete u) ∨ ∃ (u : Fin U), ∃ v < V, o = Dynamic.Op.insert u v

Membership characterization for validOps U V.

validOps U V contains 2 * U + U * V distinct operations.

theorem Cslib.DataStructure.Dictionary.CellProbe.mem_validOps_of_valid {U V n_max : ℕ} {s : State U} {o : Dynamic.Op U} (hv : (Dynamic.spec U V n_max).valid s o) :

Every operation admissible under Dynamic.spec U V n_max from any state s belongs to validOps U V.

theorem Cslib.DataStructure.Dictionary.CellProbe.forall_mem_validOps_of_validHistory {U V n_max : ℕ} {s : State U} {ops : List (Dynamic.Op U)} (hvh : (Dynamic.spec U V n_max).ValidHistory s ops) (o : Dynamic.Op U) :
o ∈ ops → o ∈ validOps U V

Every operation along an admissible Dynamic.spec U V n_max history belongs to validOps U V.

Finite subtype of size-n, V-bounded dictionary states #

@[reducible, inline]

Subtype of Dictionary.State U storing n keys with all values strictly below V.

Instances For
    def Cslib.DataStructure.Dictionary.CellProbe.dictOfKeySetVals {U V n : ℕ} (K : { K : Finset (Fin U) // K.card = n }) (vals : Fin n → Fin V) :

    Reconstruct a Dictionary.State U from a size-n key set K and a value vector vals : Fin n → Fin V indexed along the strictly increasing enumeration K.1.orderEmbOfFin K.2.

    @[simp]
    theorem Cslib.DataStructure.Dictionary.CellProbe.dom_dictOfKeySetVals {U V n : ℕ} (K : { K : Finset (Fin U) // K.card = n }) (vals : Fin n → Fin V) :
    dom (dictOfKeySetVals K vals) = ↑K
    @[simp]
    theorem Cslib.DataStructure.Dictionary.CellProbe.dictOfKeySetVals_orderEmbOfFin {U V n : ℕ} (K : { K : Finset (Fin U) // K.card = n }) (vals : Fin n → Fin V) (i : Fin n) :
    dictOfKeySetVals K vals (((↑K).orderEmbOfFin ⋯) i) = some ↑(vals i)
    @[simp]
    theorem Cslib.DataStructure.Dictionary.CellProbe.dictOfKeySetVals_eq_none_of_notMem {U V n : ℕ} (K : { K : Finset (Fin U) // K.card = n }) (vals : Fin n → Fin V) {u : Fin U} (hu : u ∉ ↑K) :

    Domain-cardinality proof carried by s : SizedDict U V n.

    Canonical bijection between size-n, V-bounded dictionary states (SizedDict U V n) and pairs (K, vals) consisting of a size-n key subset K ⊆ Fin U and its ordered value vector vals : Fin n → Fin V.

    @[simp]
    @[simp]
    theorem Cslib.DataStructure.Dictionary.CellProbe.some_val_sizedDictEquiv_snd (U V n : ℕ) (s : SizedDict U V n) (i : Fin n) :
    some ↑(((sizedDictEquiv U V n) s).2 i) = ↑s (((dom ↑s).orderEmbOfFin ⋯) i)
    @[simp]
    theorem Cslib.DataStructure.Dictionary.CellProbe.sizedDictEquiv_symm_coe (U V n : ℕ) (kv : { K : Finset (Fin U) // K.card = n } × (Fin n → Fin V)) :
    ↑((sizedDictEquiv U V n).symm kv) = dictOfKeySetVals kv.1 kv.2

    There are U.choose n * V ^ n valid size-n, V-bounded dictionaries over Fin U.

    SizedDict U V n is nonempty whenever n ≤ U and 1 ≤ V.

    noncomputable def Cslib.DataStructure.Dictionary.CellProbe.extractKeySetVals {U V n : ℕ} (hU : n ≤ U) (hV : 1 ≤ V) (s : State U) :
    { K : Finset (Fin U) // K.card = n } × (Fin n → Fin V)

    Total projection extracting the (keySet, orderedVals) pair in the finite type { K : Finset (Fin U) // K.card = n } × (Fin n → Fin V) from any s : Dictionary.State U (agreeing with sizedDictEquiv U V n whenever (dom s).card = n and ValuesBounded V s).

    @[simp]
    theorem Cslib.DataStructure.Dictionary.CellProbe.extractKeySetVals_coe {U V n : ℕ} (hU : n ≤ U) (hV : 1 ≤ V) (s : SizedDict U V n) :
    extractKeySetVals hU hV ↑s = (sizedDictEquiv U V n) s

    Deterministic hard operational sequence builders and sliding-window state #

    Dictionary state mapping f i ↦ some (v i).1 for i : Fin n and none elsewhere.

    @[simp]
    theorem Cslib.DataStructure.Dictionary.CellProbe.dictOfEmb_apply_self {U V n : ℕ} (f : Fin n ↪ Fin U) (v : Fin n → Fin V) (i : Fin n) :
    dictOfEmb f v (f i) = some ↑(v i)
    theorem Cslib.DataStructure.Dictionary.CellProbe.dictOfEmb_apply_eq_none {U V n : ℕ} (f : Fin n ↪ Fin U) (v : Fin n → Fin V) {u : Fin U} (hu : ∀ (i : Fin n), f i ≠ u) :
    def Cslib.DataStructure.Dictionary.CellProbe.windowEmb {U n : ℕ} (keys : Fin (2 * n) ↪ Fin U) (t : ℕ) (ht : t ≤ n) :
    Fin n ↪ Fin U

    Active size-n key embedding [t, t + n) inside keys : Fin (2 * n) ↪ Fin U after t ≤ n meta-operations (under identity deletion order).

    @[simp]
    theorem Cslib.DataStructure.Dictionary.CellProbe.windowEmb_apply {U n : ℕ} (keys : Fin (2 * n) ↪ Fin U) (t : ℕ) (ht : t ≤ n) (k : Fin n) :
    (windowEmb keys t ht) k = keys ⟨t + ↑k, ⋯⟩
    def Cslib.DataStructure.Dictionary.CellProbe.windowVals {V n : ℕ} (vals : Fin (2 * n) → Fin V) (t : ℕ) (ht : t ≤ n) :
    Fin n → Fin V

    Active size-n value slice [t, t + n) inside vals : Fin (2 * n) → Fin V after t ≤ n meta-operations (under identity deletion order).

    @[simp]
    theorem Cslib.DataStructure.Dictionary.CellProbe.windowVals_apply {V n : ℕ} (vals : Fin (2 * n) → Fin V) (t : ℕ) (ht : t ≤ n) (k : Fin n) :
    windowVals vals t ht k = vals ⟨t + ↑k, ⋯⟩
    def Cslib.DataStructure.Dictionary.CellProbe.windowDict {U V n : ℕ} (keys : Fin (2 * n) ↪ Fin U) (vals : Fin (2 * n) → Fin V) (t : ℕ) (ht : t ≤ n) :
    SizedDict U V n

    Sliding-window size-n dictionary state on [t, t + n).

    @[simp]
    theorem Cslib.DataStructure.Dictionary.CellProbe.windowDict_coe {U V n : ℕ} (keys : Fin (2 * n) ↪ Fin U) (vals : Fin (2 * n) → Fin V) (t : ℕ) (ht : t ≤ n) :
    ↑(windowDict keys vals t ht) = dictOfEmb (windowEmb keys t ht) (windowVals vals t ht)

    Lift a deletion permutation delPerm : Equiv.Perm (Fin n) on the initial n indices [0, n) to Equiv.Perm (Fin (2 * n)) by acting as the identity on [n, 2 * n).

    @[simp]
    theorem Cslib.DataStructure.Dictionary.CellProbe.liftDelPerm_apply_lt {n : ℕ} (delPerm : Equiv.Perm (Fin n)) {i : ℕ} (hi : i < n) :
    (liftDelPerm delPerm) ⟨i, ⋯⟩ = ⟨↑(delPerm ⟨i, hi⟩), ⋯⟩
    @[simp]
    theorem Cslib.DataStructure.Dictionary.CellProbe.liftDelPerm_apply_ge {n : ℕ} (delPerm : Equiv.Perm (Fin n)) {i : ℕ} (hi : n ≤ i) (hi2 : i < 2 * n) :
    (liftDelPerm delPerm) ⟨i, hi2⟩ = ⟨i, hi2⟩
    def Cslib.DataStructure.Dictionary.CellProbe.permKeys {U n : ℕ} (keys : Fin (2 * n) ↪ Fin U) (delPerm : Equiv.Perm (Fin n)) :
    Fin (2 * n) ↪ Fin U

    Reparametrized key embedding placing the j-th deleted initial key keys (delPerm j) at index j < n while leaving the n newly inserted keys keys (n + j) at [n, 2 * n).

    def Cslib.DataStructure.Dictionary.CellProbe.permVals {V n : ℕ} (vals : Fin (2 * n) → Fin V) (delPerm : Equiv.Perm (Fin n)) :
    Fin (2 * n) → Fin V

    Reparametrized value vector aligned with permKeys keys delPerm.

    @[simp]
    @[simp]
    theorem Cslib.DataStructure.Dictionary.CellProbe.permVals_refl {V n : ℕ} (vals : Fin (2 * n) → Fin V) :
    permVals vals (Equiv.refl (Fin n)) = vals
    def Cslib.DataStructure.Dictionary.CellProbe.reparamDelPermEquiv (U V n : ℕ) :
    ((Fin (2 * n) ↪ Fin U) × (Fin (2 * n) → Fin V)) × Equiv.Perm (Fin n) ≃ ((Fin (2 * n) ↪ Fin U) × (Fin (2 * n) → Fin V)) × Equiv.Perm (Fin n)

    Measure-preserving reparametrization equivalence sending ((keys, vals), delPerm) to ((permKeys keys delPerm, permVals vals delPerm), delPerm), decoupling deletion-ordered active windows (permKeys keys delPerm, permVals vals delPerm) from the initial insertion order.

    def Cslib.DataStructure.Dictionary.CellProbe.activeWindowDict {U V n : ℕ} (keys : Fin (2 * n) ↪ Fin U) (vals : Fin (2 * n) → Fin V) (delPerm : Equiv.Perm (Fin n)) (t : ℕ) (ht : t ≤ n) :
    SizedDict U V n

    Dictionary state reached after the n initial insertions of (keys, vals) and t ≤ n meta-operations under deletion permutation delPerm.

    @[simp]
    theorem Cslib.DataStructure.Dictionary.CellProbe.activeWindowDict_refl {U V n : ℕ} (keys : Fin (2 * n) ↪ Fin U) (vals : Fin (2 * n) → Fin V) (t : ℕ) (ht : t ≤ n) :
    activeWindowDict keys vals (Equiv.refl (Fin n)) t ht = windowDict keys vals t ht
    theorem Cslib.DataStructure.Dictionary.CellProbe.activeWindowDict_zero {U V n : ℕ} (keys : Fin (2 * n) ↪ Fin U) (vals : Fin (2 * n) → Fin V) (delPerm : Equiv.Perm (Fin n)) :
    activeWindowDict keys vals delPerm 0 ⋯ = windowDict keys vals 0 ⋯

    Permuting the initial n key-value pairs by delPerm leaves the t = 0 dictionary state unchanged because the n keys are distinct.

    def Cslib.DataStructure.Dictionary.CellProbe.initInsertSeq {U V n : ℕ} (keys : Fin (2 * n) ↪ Fin U) (vals : Fin (2 * n) → Fin V) :

    Initial phase of n key-value insertions keys 0, …, keys (n - 1).

    def Cslib.DataStructure.Dictionary.CellProbe.queryDeleteInsertMetaOp {U V n : ℕ} (keys : Fin (2 * n) ↪ Fin U) (vals : Fin (2 * n) → Fin V) (delPerm : Equiv.Perm (Fin n)) (j : Fin n) :

    Single three-step [query, delete, insert] meta-operation j : Fin n from Distribution 1 ([LLYZ23b], Section 3, p. 11 / PDF p. 12): queries and deletes keys (delPerm j) and inserts keys (n + j) with value (vals (n + j)).1.

    def Cslib.DataStructure.Dictionary.CellProbe.deleteInsertMetaOp {U V n : ℕ} (keys : Fin (2 * n) ↪ Fin U) (vals : Fin (2 * n) → Fin V) (delPerm : Equiv.Perm (Fin n)) (j : Fin n) :

    Single two-step [delete, insert] update-only meta-operation j : Fin n ([LLYZ23b], Section 8, p. 28 / PDF p. 29): deletes keys (delPerm j) and inserts keys (n + j) with value (vals (n + j)).1.

    theorem Cslib.DataStructure.Dictionary.CellProbe.queryDeleteInsertMetaOp_eq_perm {U V n : ℕ} (keys : Fin (2 * n) ↪ Fin U) (vals : Fin (2 * n) → Fin V) (delPerm : Equiv.Perm (Fin n)) (j : Fin n) :
    queryDeleteInsertMetaOp keys vals delPerm j = queryDeleteInsertMetaOp (permKeys keys delPerm) (permVals vals delPerm) (Equiv.refl (Fin n)) j
    theorem Cslib.DataStructure.Dictionary.CellProbe.deleteInsertMetaOp_eq_perm {U V n : ℕ} (keys : Fin (2 * n) ↪ Fin U) (vals : Fin (2 * n) → Fin V) (delPerm : Equiv.Perm (Fin n)) (j : Fin n) :
    deleteInsertMetaOp keys vals delPerm j = deleteInsertMetaOp (permKeys keys delPerm) (permVals vals delPerm) (Equiv.refl (Fin n)) j
    def Cslib.DataStructure.Dictionary.CellProbe.insertQueryDeleteSeq {U V n : ℕ} (keys : Fin (2 * n) ↪ Fin U) (vals : Fin (2 * n) → Fin V) (delPerm : Equiv.Perm (Fin n)) :

    Full 4 * n-operation sequence for Distribution 1: n initial insertions followed by n [query, delete, insert] meta-operations governed by delPerm.

    def Cslib.DataStructure.Dictionary.CellProbe.insertDeleteSeq {U V n : ℕ} (keys : Fin (2 * n) ↪ Fin U) (vals : Fin (2 * n) → Fin V) (delPerm : Equiv.Perm (Fin n)) :

    Full 3 * n-operation update-only sequence: n initial insertions followed by n [delete, insert] meta-operations governed by delPerm (containing zero .query operations).

    Key inserted by elementary operation ops[i]?, when that operation is .insert u _.

    Sequence of keys targeted by .delete operations in ops, in execution order.

    @[simp]
    theorem Cslib.DataStructure.Dictionary.CellProbe.length_initInsertSeq {U V n : ℕ} (keys : Fin (2 * n) ↪ Fin U) (vals : Fin (2 * n) → Fin V) :
    (initInsertSeq keys vals).length = n
    @[simp]
    theorem Cslib.DataStructure.Dictionary.CellProbe.length_insertQueryDeleteSeq {U V n : ℕ} (keys : Fin (2 * n) ↪ Fin U) (vals : Fin (2 * n) → Fin V) (delPerm : Equiv.Perm (Fin n)) :
    (insertQueryDeleteSeq keys vals delPerm).length = 4 * n
    @[simp]
    theorem Cslib.DataStructure.Dictionary.CellProbe.length_insertDeleteSeq {U V n : ℕ} (keys : Fin (2 * n) ↪ Fin U) (vals : Fin (2 * n) → Fin V) (delPerm : Equiv.Perm (Fin n)) :
    (insertDeleteSeq keys vals delPerm).length = 3 * n
    @[simp]
    theorem Cslib.DataStructure.Dictionary.CellProbe.insertedKeyAt?_insertQueryDeleteSeq {U V n : ℕ} (keys : Fin (2 * n) ↪ Fin U) (vals : Fin (2 * n) → Fin V) (delPerm : Equiv.Perm (Fin n)) (i : Fin n) :
    insertedKeyAt? (insertQueryDeleteSeq keys vals delPerm) ↑i = some (keys ⟨↑i, ⋯⟩)
    @[simp]
    theorem Cslib.DataStructure.Dictionary.CellProbe.insertedKeyAt?_insertDeleteSeq {U V n : ℕ} (keys : Fin (2 * n) ↪ Fin U) (vals : Fin (2 * n) → Fin V) (delPerm : Equiv.Perm (Fin n)) (i : Fin n) :
    insertedKeyAt? (insertDeleteSeq keys vals delPerm) ↑i = some (keys ⟨↑i, ⋯⟩)
    @[simp]
    theorem Cslib.DataStructure.Dictionary.CellProbe.deletedKeys_insertQueryDeleteSeq {U V n : ℕ} (keys : Fin (2 * n) ↪ Fin U) (vals : Fin (2 * n) → Fin V) (delPerm : Equiv.Perm (Fin n)) :
    deletedKeys (insertQueryDeleteSeq keys vals delPerm) = List.map (fun (j : Fin n) => keys ⟨↑(delPerm j), ⋯⟩) (List.finRange n)
    @[simp]
    theorem Cslib.DataStructure.Dictionary.CellProbe.deletedKeys_insertDeleteSeq {U V n : ℕ} (keys : Fin (2 * n) ↪ Fin U) (vals : Fin (2 * n) → Fin V) (delPerm : Equiv.Perm (Fin n)) :
    deletedKeys (insertDeleteSeq keys vals delPerm) = List.map (fun (j : Fin n) => keys ⟨↑(delPerm j), ⋯⟩) (List.finRange n)
    theorem Cslib.DataStructure.Dictionary.CellProbe.not_isQuery_of_mem_insertDeleteSeq {U V n : ℕ} (keys : Fin (2 * n) ↪ Fin U) (vals : Fin (2 * n) → Fin V) (delPerm : Equiv.Perm (Fin n)) {o : Dynamic.Op U} (ho : o ∈ insertDeleteSeq keys vals delPerm) :
    ¬∃ (u : Fin U), o = Dynamic.Op.query u

    insertDeleteSeq issues zero .query operations.

    Admissibility and sliding-window state evolution #

    theorem Cslib.DataStructure.Dictionary.CellProbe.validHistory_initInsertSeq {U V n : ℕ} (keys : Fin (2 * n) ↪ Fin U) (vals : Fin (2 * n) → Fin V) :
    theorem Cslib.DataStructure.Dictionary.CellProbe.run_initInsertSeq_fst {U V n : ℕ} (keys : Fin (2 * n) ↪ Fin U) (vals : Fin (2 * n) → Fin V) :
    ((Dynamic.spec U V n).run (empty U) (initInsertSeq keys vals)).1 = ↑(windowDict keys vals 0 ⋯)
    theorem Cslib.DataStructure.Dictionary.CellProbe.take_insertQueryDeleteSeq {U V n t : ℕ} (keys : Fin (2 * n) ↪ Fin U) (vals : Fin (2 * n) → Fin V) (delPerm : Equiv.Perm (Fin n)) :
    List.take (n + 3 * t) (insertQueryDeleteSeq keys vals delPerm) = initInsertSeq keys vals ++ List.flatMap (queryDeleteInsertMetaOp keys vals delPerm) (List.take t (List.finRange n))
    theorem Cslib.DataStructure.Dictionary.CellProbe.take_insertDeleteSeq {U V n t : ℕ} (keys : Fin (2 * n) ↪ Fin U) (vals : Fin (2 * n) → Fin V) (delPerm : Equiv.Perm (Fin n)) :
    List.take (n + 2 * t) (insertDeleteSeq keys vals delPerm) = initInsertSeq keys vals ++ List.flatMap (deleteInsertMetaOp keys vals delPerm) (List.take t (List.finRange n))
    @[simp]
    theorem Cslib.DataStructure.Dictionary.CellProbe.take_init_insertQueryDeleteSeq {U V n : ℕ} (keys : Fin (2 * n) ↪ Fin U) (vals : Fin (2 * n) → Fin V) (delPerm : Equiv.Perm (Fin n)) :
    List.take n (insertQueryDeleteSeq keys vals delPerm) = initInsertSeq keys vals
    @[simp]
    theorem Cslib.DataStructure.Dictionary.CellProbe.take_init_insertDeleteSeq {U V n : ℕ} (keys : Fin (2 * n) ↪ Fin U) (vals : Fin (2 * n) → Fin V) (delPerm : Equiv.Perm (Fin n)) :
    List.take n (insertDeleteSeq keys vals delPerm) = initInsertSeq keys vals
    @[simp]
    theorem Cslib.DataStructure.Dictionary.CellProbe.drop_take_insertQueryDeleteSeq {U V n : ℕ} (keys : Fin (2 * n) ↪ Fin U) (vals : Fin (2 * n) → Fin V) (delPerm : Equiv.Perm (Fin n)) (j : Fin n) :
    List.take 3 (List.drop (n + 3 * ↑j) (insertQueryDeleteSeq keys vals delPerm)) = queryDeleteInsertMetaOp keys vals delPerm j

    Elementary slice [n + 3 * j, n + 3 * (j + 1)) of insertQueryDeleteSeq recovers queryDeleteInsertMetaOp keys vals delPerm j.

    @[simp]
    theorem Cslib.DataStructure.Dictionary.CellProbe.drop_take_insertDeleteSeq {U V n : ℕ} (keys : Fin (2 * n) ↪ Fin U) (vals : Fin (2 * n) → Fin V) (delPerm : Equiv.Perm (Fin n)) (j : Fin n) :
    List.take 2 (List.drop (n + 2 * ↑j) (insertDeleteSeq keys vals delPerm)) = deleteInsertMetaOp keys vals delPerm j

    Elementary slice [n + 2 * j, n + 2 * (j + 1)) of insertDeleteSeq recovers deleteInsertMetaOp keys vals delPerm j.

    theorem Cslib.DataStructure.Dictionary.CellProbe.validHistory_insertQueryDeleteSeq {U V n : ℕ} (keys : Fin (2 * n) ↪ Fin U) (vals : Fin (2 * n) → Fin V) (delPerm : Equiv.Perm (Fin n)) :
    (Dynamic.spec U V n).ValidHistory (empty U) (insertQueryDeleteSeq keys vals delPerm)

    Every insertQueryDeleteSeq is an admissible history for Dynamic.spec U V n.

    theorem Cslib.DataStructure.Dictionary.CellProbe.validHistory_insertDeleteSeq {U V n : ℕ} (keys : Fin (2 * n) ↪ Fin U) (vals : Fin (2 * n) → Fin V) (delPerm : Equiv.Perm (Fin n)) :
    (Dynamic.spec U V n).ValidHistory (empty U) (insertDeleteSeq keys vals delPerm)

    Every insertDeleteSeq is an admissible history for Dynamic.spec U V n.

    theorem Cslib.DataStructure.Dictionary.CellProbe.validHistory_and_run_take_insertQueryDeleteSeq {U V n t : ℕ} (keys : Fin (2 * n) ↪ Fin U) (vals : Fin (2 * n) → Fin V) (delPerm : Equiv.Perm (Fin n)) (ht : t ≤ n) :
    (Dynamic.spec U V n).ValidHistory (empty U) (List.take (n + 3 * t) (insertQueryDeleteSeq keys vals delPerm)) ∧ ((Dynamic.spec U V n).run (empty U) (List.take (n + 3 * t) (insertQueryDeleteSeq keys vals delPerm))).1 = ↑(activeWindowDict keys vals delPerm t ht)

    Prefix admissibility and exact state activeWindowDict keys vals delPerm t ht after n initial insertions and t ≤ n complete meta-operations of insertQueryDeleteSeq.

    theorem Cslib.DataStructure.Dictionary.CellProbe.validHistory_and_run_take_insertDeleteSeq {U V n t : ℕ} (keys : Fin (2 * n) ↪ Fin U) (vals : Fin (2 * n) → Fin V) (delPerm : Equiv.Perm (Fin n)) (ht : t ≤ n) :
    (Dynamic.spec U V n).ValidHistory (empty U) (List.take (n + 2 * t) (insertDeleteSeq keys vals delPerm)) ∧ ((Dynamic.spec U V n).run (empty U) (List.take (n + 2 * t) (insertDeleteSeq keys vals delPerm))).1 = ↑(activeWindowDict keys vals delPerm t ht)

    Prefix admissibility and exact state activeWindowDict keys vals delPerm t ht after n initial insertions and t ≤ n complete meta-operations of insertDeleteSeq.

    Hard operational distributions and uniform size-n state marginals #

    noncomputable def Cslib.DataStructure.Dictionary.CellProbe.insertQueryDeleteDist (U V n : ℕ) (hU : 2 * n ≤ U) (hV : 1 ≤ V) :

    Distribution 1 of [LLYZ23b], Section 3, p. 11 (PDF p. 12), extended to key-value pairs over [U] × [V] (Section 7, Definition 7.1, p. 26 / PDF p. 27) with associated values sampled independently and uniformly from Fin V (Section 8, proof of Theorem 1.3 and Lemma 8.1, p. 28 / PDF p. 29): samples keys : Fin (2 * n) ↪ Fin U, vals : Fin (2 * n) → Fin V, and deletion permutation delPerm : Equiv.Perm (Fin n) independently and uniformly, then emits insertQueryDeleteSeq keys vals delPerm (4 * n operations).

    noncomputable def Cslib.DataStructure.Dictionary.CellProbe.insertDeleteDist (U V n : ℕ) (hU : 2 * n ≤ U) (hV : 1 ≤ V) :

    Update-only hard distribution of [LLYZ23b], Section 8, proof of Theorem 1.3 and Lemma 8.1, p. 28 (PDF p. 29): samples keys : Fin (2 * n) ↪ Fin U, vals : Fin (2 * n) → Fin V, and deletion permutation delPerm : Equiv.Perm (Fin n) independently and uniformly, then emits insertDeleteSeq keys vals delPerm (3 * n operations, zero .query calls).

    theorem Cslib.DataStructure.Dictionary.CellProbe.insertQueryDeleteDist_eq_uniformOfFintype_map {U V n : ℕ} (hU : 2 * n ≤ U) (hV : 1 ≤ V) :
    insertQueryDeleteDist U V n hU hV = PMF.map (fun (x : ((Fin (2 * n) ↪ Fin U) × (Fin (2 * n) → Fin V)) × Equiv.Perm (Fin n)) => match x with | ((keys, vals), delPerm) => insertQueryDeleteSeq keys vals delPerm) (Probability.PMF.uniformOfFintype (((Fin (2 * n) ↪ Fin U) × (Fin (2 * n) → Fin V)) × Equiv.Perm (Fin n)))
    theorem Cslib.DataStructure.Dictionary.CellProbe.insertDeleteDist_eq_uniformOfFintype_map {U V n : ℕ} (hU : 2 * n ≤ U) (hV : 1 ≤ V) :
    insertDeleteDist U V n hU hV = PMF.map (fun (x : ((Fin (2 * n) ↪ Fin U) × (Fin (2 * n) → Fin V)) × Equiv.Perm (Fin n)) => match x with | ((keys, vals), delPerm) => insertDeleteSeq keys vals delPerm) (Probability.PMF.uniformOfFintype (((Fin (2 * n) ↪ Fin U) × (Fin (2 * n) → Fin V)) × Equiv.Perm (Fin n)))
    theorem Cslib.DataStructure.Dictionary.CellProbe.mem_support_insertQueryDeleteDist_iff {U V n : ℕ} (hU : 2 * n ≤ U) (hV : 1 ≤ V) {ops : List (Dynamic.Op U)} :
    ops ∈ (insertQueryDeleteDist U V n hU hV).support ↔ ∃ (keys : Fin (2 * n) ↪ Fin U) (vals : Fin (2 * n) → Fin V) (delPerm : Equiv.Perm (Fin n)), insertQueryDeleteSeq keys vals delPerm = ops
    theorem Cslib.DataStructure.Dictionary.CellProbe.mem_support_insertDeleteDist_iff {U V n : ℕ} (hU : 2 * n ≤ U) (hV : 1 ≤ V) {ops : List (Dynamic.Op U)} :
    ops ∈ (insertDeleteDist U V n hU hV).support ↔ ∃ (keys : Fin (2 * n) ↪ Fin U) (vals : Fin (2 * n) → Fin V) (delPerm : Equiv.Perm (Fin n)), insertDeleteSeq keys vals delPerm = ops
    theorem Cslib.DataStructure.Dictionary.CellProbe.length_of_mem_support_insertQueryDeleteDist {U V n : ℕ} {hU : 2 * n ≤ U} {hV : 1 ≤ V} {ops : List (Dynamic.Op U)} (hops : ops ∈ (insertQueryDeleteDist U V n hU hV).support) :
    ops.length = 4 * n

    Every sequence in (insertQueryDeleteDist U V n hU hV).support has length 4 * n.

    theorem Cslib.DataStructure.Dictionary.CellProbe.length_of_mem_support_insertDeleteDist {U V n : ℕ} {hU : 2 * n ≤ U} {hV : 1 ≤ V} {ops : List (Dynamic.Op U)} (hops : ops ∈ (insertDeleteDist U V n hU hV).support) :
    ops.length = 3 * n

    Every sequence in (insertDeleteDist U V n hU hV).support has length 3 * n.

    theorem Cslib.DataStructure.Dictionary.CellProbe.not_isQuery_of_mem_support_insertDeleteDist {U V n : ℕ} {hU : 2 * n ≤ U} {hV : 1 ≤ V} {ops : List (Dynamic.Op U)} (hops : ops ∈ (insertDeleteDist U V n hU hV).support) {o : Dynamic.Op U} (ho : o ∈ ops) :
    ¬∃ (u : Fin U), o = Dynamic.Op.query u

    Every sequence in (insertDeleteDist U V n hU hV).support issues zero .query operations.

    theorem Cslib.DataStructure.Dictionary.CellProbe.validHistory_of_mem_support_insertQueryDeleteDist {U V n : ℕ} {hU : 2 * n ≤ U} {hV : 1 ≤ V} {ops : List (Dynamic.Op U)} (hops : ops ∈ (insertQueryDeleteDist U V n hU hV).support) :
    (Dynamic.spec U V n).ValidHistory (empty U) ops ∧ ∀ o ∈ ops, o ∈ validOps U V

    Every sequence in (insertQueryDeleteDist U V n hU hV).support is an admissible history for Dynamic.spec U V n from Dictionary.empty U and uses only operations in validOps U V.

    theorem Cslib.DataStructure.Dictionary.CellProbe.validHistory_of_mem_support_insertDeleteDist {U V n : ℕ} {hU : 2 * n ≤ U} {hV : 1 ≤ V} {ops : List (Dynamic.Op U)} (hops : ops ∈ (insertDeleteDist U V n hU hV).support) :
    (Dynamic.spec U V n).ValidHistory (empty U) ops ∧ ∀ o ∈ ops, o ∈ validOps U V

    Every sequence in (insertDeleteDist U V n hU hV).support is an admissible history for Dynamic.spec U V n from Dictionary.empty U and uses only operations in validOps U V.

    theorem Cslib.DataStructure.Dictionary.CellProbe.map_deletedKey_eq_insertedKey_insertQueryDeleteDist {U V n : ℕ} (hU : 2 * n ≤ U) (hV : 1 ≤ V) (j i : Fin n) :
    (PMF.map (fun (ops : List (Dynamic.Op U)) => decide ((deletedKeys ops)[↑j]? = insertedKeyAt? ops ↑i)) (insertQueryDeleteDist U V n hU hV)) true = (↑n)⁻¹

    Under insertQueryDeleteDist, for every meta-operation index j : Fin n and initial insertion index i : Fin n, the j-th deleted key equals the i-th initially inserted key with exact probability 1 / n (confirming non-FIFO uniform deletion order).

    theorem Cslib.DataStructure.Dictionary.CellProbe.map_deletedKey_eq_insertedKey_insertDeleteDist {U V n : ℕ} (hU : 2 * n ≤ U) (hV : 1 ≤ V) (j i : Fin n) :
    (PMF.map (fun (ops : List (Dynamic.Op U)) => decide ((deletedKeys ops)[↑j]? = insertedKeyAt? ops ↑i)) (insertDeleteDist U V n hU hV)) true = (↑n)⁻¹

    Under insertDeleteDist, for every meta-operation index j : Fin n and initial insertion index i : Fin n, the j-th deleted key equals the i-th initially inserted key with exact probability 1 / n (confirming non-FIFO uniform deletion order).

    theorem Cslib.DataStructure.Dictionary.CellProbe.map_run_take_insertQueryDeleteDist {U V n t : ℕ} (hU : 2 * n ≤ U) (hV : 1 ≤ V) (ht : t ≤ n) :
    PMF.map (fun (ops : List (Dynamic.Op U)) => ((Dynamic.spec U V n).run (empty U) (List.take (n + 3 * t) ops)).1) (insertQueryDeleteDist U V n hU hV) = PMF.map Subtype.val (Probability.PMF.uniformOfFintype (SizedDict U V n))

    After the n initial insertions and any t ≤ n complete meta-operations under insertQueryDeleteDist, the induced dictionary state is uniformly distributed over the U.choose n * V ^ n valid size-n, V-bounded dictionaries (SizedDict U V n).

    theorem Cslib.DataStructure.Dictionary.CellProbe.map_run_take_insertDeleteDist {U V n t : ℕ} (hU : 2 * n ≤ U) (hV : 1 ≤ V) (ht : t ≤ n) :
    PMF.map (fun (ops : List (Dynamic.Op U)) => ((Dynamic.spec U V n).run (empty U) (List.take (n + 2 * t) ops)).1) (insertDeleteDist U V n hU hV) = PMF.map Subtype.val (Probability.PMF.uniformOfFintype (SizedDict U V n))

    After the n initial insertions and any t ≤ n complete meta-operations under insertDeleteDist, the induced dictionary state is uniformly distributed over SizedDict U V n.

    theorem Cslib.DataStructure.Dictionary.CellProbe.map_extractKeySetVals_insertQueryDeleteDist {U V n t : ℕ} (hU : 2 * n ≤ U) (hV : 1 ≤ V) (ht : t ≤ n) (hnU : n ≤ U := by omega) :
    PMF.map (fun (ops : List (Dynamic.Op U)) => extractKeySetVals hnU hV ((Dynamic.spec U V n).run (empty U) (List.take (n + 3 * t) ops)).1) (insertQueryDeleteDist U V n hU hV) = Probability.PMF.uniformOfFintype ({ K : Finset (Fin U) // K.card = n } × (Fin n → Fin V))

    Finite-type (keySet, orderedVals) marginal version of map_run_take_insertQueryDeleteDist, typed directly in { K : Finset (Fin U) // K.card = n } × (Fin n → Fin V) for finite-PMF Shannon entropy calculations.

    theorem Cslib.DataStructure.Dictionary.CellProbe.map_extractKeySetVals_insertDeleteDist {U V n t : ℕ} (hU : 2 * n ≤ U) (hV : 1 ≤ V) (ht : t ≤ n) (hnU : n ≤ U := by omega) :
    PMF.map (fun (ops : List (Dynamic.Op U)) => extractKeySetVals hnU hV ((Dynamic.spec U V n).run (empty U) (List.take (n + 2 * t) ops)).1) (insertDeleteDist U V n hU hV) = Probability.PMF.uniformOfFintype ({ K : Finset (Fin U) // K.card = n } × (Fin n → Fin V))

    Finite-type (keySet, orderedVals) marginal version of map_run_take_insertDeleteDist.

    Parallel single-timestamp state decoder (decodeDict) and all-history Yao reduction #

    Set of all admissible Dynamic.spec U V n histories from Dictionary.empty U of length at most M (automatically contained in validOps U V by forall_mem_validOps_of_validHistory).

    theorem Cslib.DataStructure.Dictionary.CellProbe.validHistoriesUpTo_spec {U V n M : ℕ} {ops : List (Dynamic.Op U)} (hops : ops ∈ validHistoriesUpTo U V n M) :
    (Dynamic.spec U V n).ValidHistory (empty U) ops ∧ ops.length ≤ M ∧ ∀ o ∈ ops, o ∈ validOps U V

    Single-timestamp parallel dictionary state decoder: evaluates single-step .query u on D_det from memory C_t at fixed step index t for every u : Fin U, without advancing t or mutating C_t across keys (our local formalization adaptation for step-indexed IndexedScheme, making explicit the time-indexed state recovery used in [LLYZ23b], Sections 4.2, 5.1, and 8, p. 14 / PDF p. 15, pp. 22–23 / PDF pp. 23–24, and p. 29 / PDF p. 30).

    theorem Cslib.DataStructure.Dictionary.CellProbe.decodeDict_runSeq_eq {U V n M cells w : ℕ} {D_det : CellProbe.IndexedScheme (Dynamic.Op U) Dynamic.Op.Result cells w} (hcorr : ∀ ops ∈ validHistoriesUpTo U V n (M + 1), (D_det.runSeq ops).1 = ((Dynamic.spec U V n).run (empty U) ops).2) {pref : List (Dynamic.Op U)} (hpref_vh : (Dynamic.spec U V n).ValidHistory (empty U) pref) (hpref_len : pref.length ≤ M) :
    decodeDict D_det pref.length (D_det.runSeq pref).2 = ((Dynamic.spec U V n).run (empty U) pref).1

    If D_det is exact on all admissible histories up to length M + 1, then after any admissible prefix pref of length ≤ M reaching memory C_t := (D_det.runSeq pref).2 and abstract state s_t := ((Dynamic.spec U V n).run (Dictionary.empty U) pref).1, decodeDict D_det pref.length C_t equals s_t identically.

    theorem Cslib.DataStructure.Dictionary.CellProbe.step_query_eq_none_of_notMem_dom {U V n M cells w : ℕ} {D_det : CellProbe.IndexedScheme (Dynamic.Op U) Dynamic.Op.Result cells w} (hcorr : ∀ ops ∈ validHistoriesUpTo U V n (M + 1), (D_det.runSeq ops).1 = ((Dynamic.spec U V n).run (empty U) ops).2) {pref : List (Dynamic.Op U)} (hpref_vh : (Dynamic.spec U V n).ValidHistory (empty U) pref) (hpref_len : pref.length ≤ M) {u : Fin U} (hu : u ∉ dom ((Dynamic.spec U V n).run (empty U) pref).1) :
    ((D_det.step pref.length (Dynamic.Op.query u)).run (D_det.runSeq pref).2).1 = none

    Out-of-domain query rejection: after any admissible prefix pref of length ≤ M, querying any absent key u ∉ Dictionary.dom s_t at step pref.length returns none.

    theorem Cslib.DataStructure.Dictionary.CellProbe.exists_det_indexedScheme_insertQueryDeleteDist {U V n cells w : ℕ} (hU : 2 * n ≤ U) (hV : 1 ≤ V) (P : CellProbe.Randomized.Scheme (Dynamic.Op U) Dynamic.Op.Result cells w) (hcorr : ∀ ops ∈ validHistoriesUpTo U V n (4 * n + 1), ((Dynamic.spec U V n).toObliviousSequenceSpec (empty U)).Contract ops (PMF.map Prod.fst (P.runSeq ops))) :
    ∃ D_det ∈ (P.indexedSchemeLaw (4 * n + 1) (validOps U V)).support, (∀ ops ∈ validHistoriesUpTo U V n (4 * n + 1), (D_det.runSeq ops).1 = ((Dynamic.spec U V n).run (empty U) ops).2) ∧ ∑' (ops : List (Dynamic.Op U)), (insertQueryDeleteDist U V n hU hV) ops * ↑(D_det.seqProbes ops) ≤ ∑' (ops : List (Dynamic.Op U)), (insertQueryDeleteDist U V n hU hV) ops * P.expectedSeqProbes ops

    Zero-error Yao coin-fixing on insertQueryDeleteDist preserving exactness across all admissible histories up to horizon 4 * n + 1 (so decodeDict is exact after every prefix of length ≤ 4 * n).

    theorem Cslib.DataStructure.Dictionary.CellProbe.exists_det_indexedScheme_insertDeleteDist {U V n cells w : ℕ} (hU : 2 * n ≤ U) (hV : 1 ≤ V) (P : CellProbe.Randomized.Scheme (Dynamic.Op U) Dynamic.Op.Result cells w) (hcorr : ∀ ops ∈ validHistoriesUpTo U V n (3 * n + 1), ((Dynamic.spec U V n).toObliviousSequenceSpec (empty U)).Contract ops (PMF.map Prod.fst (P.runSeq ops))) :
    ∃ D_det ∈ (P.indexedSchemeLaw (3 * n + 1) (validOps U V)).support, (∀ ops ∈ validHistoriesUpTo U V n (3 * n + 1), (D_det.runSeq ops).1 = ((Dynamic.spec U V n).run (empty U) ops).2) ∧ ∑' (ops : List (Dynamic.Op U)), (insertDeleteDist U V n hU hV) ops * ↑(D_det.seqProbes ops) ≤ ∑' (ops : List (Dynamic.Op U)), (insertDeleteDist U V n hU hV) ops * P.expectedSeqProbes ops

    Zero-error Yao coin-fixing on insertDeleteDist preserving exactness across all admissible histories up to horizon 3 * n + 1 (including .query extensions outside insertDeleteDist's update-only support, so decodeDict remains exact after every prefix of length ≤ 3 * n).

    theorem Cslib.DataStructure.Dictionary.CellProbe.le_expected_charge_insertQueryDeleteDist_of_det_indexedScheme {U V n cells w : ℕ} (hU : 2 * n ≤ U) (hV : 1 ≤ V) {P : CellProbe.Randomized.Scheme (Dynamic.Op U) Dynamic.Op.Result cells w} (C : CellProbe.Randomized.ObliviousSequenceImpl ((Dynamic.spec U V n).toObliviousSequenceSpec (empty U)) P) {L : ENNReal} (hlb : ∀ (D_det : CellProbe.IndexedScheme (Dynamic.Op U) Dynamic.Op.Result cells w), (∀ ops ∈ validHistoriesUpTo U V n (4 * n + 1), (D_det.runSeq ops).1 = ((Dynamic.spec U V n).run (empty U) ops).2) → L ≤ ∑' (ops : List (Dynamic.Op U)), (insertQueryDeleteDist U V n hU hV) ops * ↑(D_det.seqProbes ops)) :
    L ≤ ↑C.initPotential + ∑' (ops : List (Dynamic.Op U)), (insertQueryDeleteDist U V n hU hV) ops * ↑(List.map C.charge ops).sum

    Lower-bound transfer for ObliviousSequenceImpl on Dynamic.spec U V n over insertQueryDeleteDist.

    theorem Cslib.DataStructure.Dictionary.CellProbe.le_expected_charge_insertDeleteDist_of_det_indexedScheme {U V n cells w : ℕ} (hU : 2 * n ≤ U) (hV : 1 ≤ V) {P : CellProbe.Randomized.Scheme (Dynamic.Op U) Dynamic.Op.Result cells w} (C : CellProbe.Randomized.ObliviousSequenceImpl ((Dynamic.spec U V n).toObliviousSequenceSpec (empty U)) P) {L : ENNReal} (hlb : ∀ (D_det : CellProbe.IndexedScheme (Dynamic.Op U) Dynamic.Op.Result cells w), (∀ ops ∈ validHistoriesUpTo U V n (3 * n + 1), (D_det.runSeq ops).1 = ((Dynamic.spec U V n).run (empty U) ops).2) → L ≤ ∑' (ops : List (Dynamic.Op U)), (insertDeleteDist U V n hU hV) ops * ↑(D_det.seqProbes ops)) :
    L ≤ ↑C.initPotential + ∑' (ops : List (Dynamic.Op U)), (insertDeleteDist U V n hU hV) ops * ↑(List.map C.charge ops).sum

    Lower-bound transfer for ObliviousSequenceImpl on Dynamic.spec U V n over insertDeleteDist.

    theorem Cslib.DataStructure.Dictionary.CellProbe.le_expected_totalCost_insertQueryDeleteDist_of_det_indexedScheme {U V n cells w : ℕ} (hU : 2 * n ≤ U) (hV : 1 ≤ V) {P : CellProbe.Randomized.Scheme (Dynamic.Op U) Dynamic.Op.Result cells w} (C : CellProbe.Randomized.StateTransitionImpl (Dynamic.spec U V n) P (empty U)) {L : ENNReal} (hlb : ∀ (D_det : CellProbe.IndexedScheme (Dynamic.Op U) Dynamic.Op.Result cells w), (∀ ops ∈ validHistoriesUpTo U V n (4 * n + 1), (D_det.runSeq ops).1 = ((Dynamic.spec U V n).run (empty U) ops).2) → L ≤ ∑' (ops : List (Dynamic.Op U)), (insertQueryDeleteDist U V n hU hV) ops * ↑(D_det.seqProbes ops)) :
    L ≤ ↑C.initPotential + ∑' (ops : List (Dynamic.Op U)), (insertQueryDeleteDist U V n hU hV) ops * ↑((Dynamic.spec U V n).totalCost C.charge (empty U) ops)

    Lower-bound transfer for Randomized.StateTransitionImpl on Dynamic.spec U V n over insertQueryDeleteDist.

    theorem Cslib.DataStructure.Dictionary.CellProbe.le_expected_totalCost_insertDeleteDist_of_det_indexedScheme {U V n cells w : ℕ} (hU : 2 * n ≤ U) (hV : 1 ≤ V) {P : CellProbe.Randomized.Scheme (Dynamic.Op U) Dynamic.Op.Result cells w} (C : CellProbe.Randomized.StateTransitionImpl (Dynamic.spec U V n) P (empty U)) {L : ENNReal} (hlb : ∀ (D_det : CellProbe.IndexedScheme (Dynamic.Op U) Dynamic.Op.Result cells w), (∀ ops ∈ validHistoriesUpTo U V n (3 * n + 1), (D_det.runSeq ops).1 = ((Dynamic.spec U V n).run (empty U) ops).2) → L ≤ ∑' (ops : List (Dynamic.Op U)), (insertDeleteDist U V n hU hV) ops * ↑(D_det.seqProbes ops)) :
    L ≤ ↑C.initPotential + ∑' (ops : List (Dynamic.Op U)), (insertDeleteDist U V n hU hV) ops * ↑((Dynamic.spec U V n).totalCost C.charge (empty U) ops)

    Lower-bound transfer for Randomized.StateTransitionImpl on Dynamic.spec U V n over insertDeleteDist.