Documentation

CslibFrontier.DataStructure.Dictionary.WordRAM.LowerBound

Word-RAM Time-Space Lower Bounds for Dynamic Succinct Dictionaries #

Contrapositive Word-RAM time-space trade-off lower bounds for dynamic succinct dictionaries (Dynamic.spec U V n, supporting insert, delete, and query) from Li, Liang, Yu, and Zhou ([LLYZ23b]; locators below follow arXiv:2306.02253v3, where printed page p is PDF page p + 1), obtained by combining the multi-level step-indexed cell-probe lower bounds of CslibFrontier.DataStructure.Dictionary.CellProbe.LowerBound with the zero-error machine-to-cell-probe simulation bridges of CslibFrontier.DataStructure.CellProbe.OfWordRAM ([LLYZ23b], Section 1, p. 1 footnote 1 / PDF p. 2, "a cell-probe lower bound implies the same time lower bound for RAM"; [Yao77]):

Formalization adaptations inherited from CslibFrontier.DataStructure.Dictionary.CellProbe.LowerBound ([LLYZ23b], arXiv:2306.02253v3):

  1. Deterministic c = 1 probe cap (Sections 4.2, 5.1, 5.2, and 8.1): arXiv:2306.02253v3 §4.2 (p. 14 / PDF p. 15) 1-indexes levels ℓ ∈ {1, …, k} with segment length m_{ℓ-1} and fanout λ_ℓ, so the c = 1 cap reads |S_A|, |S_B| ≤ m_{ℓ-1} * t with Markov loss at most (1 / 16) * λ_ℓ. In MetaTree, internal parent nodes (ℓ + 1, b) for ℓ ∈ {0, …, T.height - 1} have child-segment length m_ℓ = T.blockSize ℓ and fanout λ_{ℓ+1} = T.fanout (ℓ + 1) (T.blockSize (ℓ + 1) = T.blockSize ℓ * T.fanout (ℓ + 1)), so IsModeSeedConsistent enforces |S_A|, |S_B| ≤ m_ℓ * t directly inside segment qualification (incurring at most (1 / 16) * λ_{ℓ+1} probe-cap probability loss via Markov's inequality on nodeProbes in MetaTree.sum_prob_not_isGoodSeg_le), preserving Claim 4.1 (λ_{ℓ+1} / 4) and Eq. (11) (2(β + 1) m_ℓ t) while keeping Step 5 separator messages deterministically bounded on {W = 1}.
  2. Internal Markov sub-conditioning in Step 6 (Section 8.1, Lemma 8.1): sub-conditions on state-fiber multiplicity c(T_B) ≤ 2 ^ (R + 1) * U ^ (γ * m) over the uniform marginal of T_B (Pr[bad] ≤ (1 / 2) * U ^ (-γ * m)), costing R + 2 + γ * m * log₂ U bits in Step 6 while preserving Theorem 1.3's U ^ (2 + α_V) ≤ V * n ^ 2 threshold.

Word-RAM model and boundary conventions:

Main results #

References #

1. Positive body-instruction lower bounds, initial-data construction, and ℝ≥0∞ helpers #

theorem Cslib.DataStructure.Dictionary.WordRAM.exists_flat_exec_of_stateTransitionImpl {B : WordRAM.Basis} {U V n r_ds k_init w base : ℕ} {P : WordRAM.SubroutineCode B r_ds k_init} {params : Fin k_init → ℕ} (C : WordRAM.Randomized.StateTransitionImpl P (Dynamic.spec U V n) w base params (empty U)) (hbase : WordRAM.Fits w base) (hparams_fit : ∀ (j : Fin k_init), WordRAM.Fits w (params j)) (hparams_fr : ∀ (j : Fin k_init), P.initParams j = P.frontierReg → params j = base) (hparams_agree : ∀ (i j : Fin k_init), P.initParams i = P.initParams j → params i = params j) :
∃ (ν₀ : PMF (C.Seed × WordRAM.Data r_ds)), (∀ p ∈ ν₀.support, WordRAM.Data.Bounded w p.2 ∧ ∀ a ∉ { base := base, length := C.space }.footprint, p.2.mem a = 0) ∧ ∀ (ops : List (Dynamic.spec U V n).Op), (Dynamic.spec U V n).ValidHistory (empty U) ops → have T_act := CellProbe.flatExpectedBodyTime w (P.code.program P.output) P.input C.encode (PMF.map Prod.snd ν₀) ops; T_act ≤ ↑C.initPotential + ↑((Dynamic.spec U V n).totalCost C.charge (empty U) ops) ∧ T_act ≠ ⊤ ∧ ∃ (ν_final : PMF (C.Seed × WordRAM.Data r_ds)), CellProbe.ExecFlatProgramOps (Dynamic.spec U V n) C.Seed w base C.space (P.code.program P.output) P.input C.encode (fun (o : (Dynamic.spec U V n).Op) (x : ℕ) (regs : Fin r_ds → ℕ) => C.decode o regs) (empty U) ops ν₀ ν_final T_act

Extract an initialized latent-state distribution ν₀ from any zero-error WordRAM.Randomized.StateTransitionImpl, witnessing ExecFlatProgramOps along every valid dictionary history at its exact intrinsic expected non-halt body-instruction count flatExpectedBodyTime w (P.code.program P.output) P.input C.encode (ν₀.map Prod.snd) ops bounded by C.initPotential + totalCost C.charge. Delegates initialization and amortization to StateTransitionImpl.exists_init_and_flat_steps and tightens to the exact count via ExecFlatProgramOps.tighten_actualBodyTime.

2. Generic Dictionary Cell-Probe-to-Word-RAM Lower-Bound Transfer Bridges #

theorem Cslib.DataStructure.Dictionary.WordRAM.expectedFlatTime_ge_of_indexedScheme {B : WordRAM.Basis} {U V n r w base space S_max : ℕ} {input : Fin r → Bool} {Latent : Type z} (hn : 1 ≤ n) (hU : 2 * n ≤ U) (hV : 1 ≤ V) (hspace : space + CellProbe.persCount input ≤ S_max) (p_op : WordRAM.Program B r) (encode : Dynamic.Op U → Fin r → ℕ) (decode : (o : Dynamic.Op U) → ℕ → (Fin r → ℕ) → Option o.Result) (ν₀ : PMF (Latent × WordRAM.Data r)) (hsupp₀ : ∀ p ∈ ν₀.support, WordRAM.Data.Bounded w p.2 ∧ ∀ a ∉ { base := base, length := space }.footprint, p.2.mem a = 0) (hex_corr : ∀ ops ∈ CellProbe.validHistoriesUpTo U V n (4 * n + 1), ∃ (ν_final : PMF (Latent × WordRAM.Data r)) (T_ops : ENNReal), T_ops ≠ ⊤ ∧ CellProbe.ExecFlatProgramOps (Dynamic.spec U V n) Latent w base space p_op input encode decode (empty U) ops ν₀ ν_final T_ops) {LB : ℝ} (hlb : ∀ {D_det : CellProbe.IndexedScheme (Dynamic.Op U) Dynamic.Op.Result S_max w}, (∀ ops ∈ CellProbe.validHistoriesUpTo U V n (4 * n + 1), (D_det.runSeq ops).1 = ((Dynamic.spec U V n).run (empty U) ops).2) → LB ≤ ∑' (ops : List (Dynamic.Op U)), ((CellProbe.insertQueryDeleteDist U V n hU hV) ops).toReal * ↑(D_det.seqProbes ops)) :
ENNReal.ofReal (LB / (2 * ↑(CellProbe.persCount input) + 1)) ≤ ∑' (ops : List (Dynamic.Op U)), (CellProbe.insertQueryDeleteDist U V n hU hV) ops * CellProbe.flatExpectedBodyTime w p_op input encode (PMF.map Prod.snd ν₀) ops

Transfer any deterministic step-indexed IndexedScheme lower bound over insertQueryDeleteDist directly to the exact intrinsic expected non-halt body-instruction count flatExpectedBodyTime w p_op input encode (ν₀.map Prod.snd) ops (hence also to total executed instructions flatExpectedTime = flatExpectedBodyTime + ops.length and to any admissible ExecFlatProgramOps budget T_ops via ExecFlatProgramOps.flatExpectedBodyTime_le).

theorem Cslib.DataStructure.Dictionary.WordRAM.expectedFlatTime_update_ge_of_indexedScheme {B : WordRAM.Basis} {U V n r w base space S_max : ℕ} {input : Fin r → Bool} {Latent : Type z} (hn : 1 ≤ n) (hU : 2 * n ≤ U) (hV : 1 ≤ V) (hspace : space + CellProbe.persCount input ≤ S_max) (p_op : WordRAM.Program B r) (encode : Dynamic.Op U → Fin r → ℕ) (decode : (o : Dynamic.Op U) → ℕ → (Fin r → ℕ) → Option o.Result) (ν₀ : PMF (Latent × WordRAM.Data r)) (hsupp₀ : ∀ p ∈ ν₀.support, WordRAM.Data.Bounded w p.2 ∧ ∀ a ∉ { base := base, length := space }.footprint, p.2.mem a = 0) (hex_corr : ∀ ops ∈ CellProbe.validHistoriesUpTo U V n (3 * n + 1), ∃ (ν_final : PMF (Latent × WordRAM.Data r)) (T_ops : ENNReal), T_ops ≠ ⊤ ∧ CellProbe.ExecFlatProgramOps (Dynamic.spec U V n) Latent w base space p_op input encode decode (empty U) ops ν₀ ν_final T_ops) {LB : ℝ} (hlb : ∀ {D_det : CellProbe.IndexedScheme (Dynamic.Op U) Dynamic.Op.Result S_max w}, (∀ ops ∈ CellProbe.validHistoriesUpTo U V n (3 * n + 1), (D_det.runSeq ops).1 = ((Dynamic.spec U V n).run (empty U) ops).2) → LB ≤ ∑' (ops : List (Dynamic.Op U)), ((CellProbe.insertDeleteDist U V n hU hV) ops).toReal * ↑(D_det.seqProbes ops)) :
ENNReal.ofReal (LB / (2 * ↑(CellProbe.persCount input) + 1)) ≤ ∑' (ops : List (Dynamic.Op U)), (CellProbe.insertDeleteDist U V n hU hV) ops * CellProbe.flatExpectedBodyTime w p_op input encode (PMF.map Prod.snd ν₀) ops

Transfer any deterministic step-indexed IndexedScheme lower bound over insertDeleteDist directly to the exact intrinsic expected non-halt body-instruction count flatExpectedBodyTime w p_op input encode (ν₀.map Prod.snd) ops.

theorem Cslib.DataStructure.Dictionary.WordRAM.expectedTotalCost_ge_of_indexedScheme {B : WordRAM.Basis} {U V n r_ds k_init w base S_max : ℕ} {P : WordRAM.SubroutineCode B r_ds k_init} {params : Fin k_init → ℕ} (hU : 2 * n ≤ U) (hV : 1 ≤ V) (C : WordRAM.Randomized.StateTransitionImpl P (Dynamic.spec U V n) w base params (empty U)) (hbase : WordRAM.Fits w base) (hparams_fit : ∀ (j : Fin k_init), WordRAM.Fits w (params j)) (hparams_fr : ∀ (j : Fin k_init), P.initParams j = P.frontierReg → params j = base) (hparams_agree : ∀ (i j : Fin k_init), P.initParams i = P.initParams j → params i = params j) (hspace : C.space + CellProbe.persistentRegCount P ≤ S_max) {LB : ℝ} (hlb : ∀ {D_det : CellProbe.IndexedScheme (Dynamic.Op U) Dynamic.Op.Result S_max w}, (∀ ops ∈ CellProbe.validHistoriesUpTo U V n (4 * n + 1), (D_det.runSeq ops).1 = ((Dynamic.spec U V n).run (empty U) ops).2) → LB ≤ ∑' (ops : List (Dynamic.Op U)), ((CellProbe.insertQueryDeleteDist U V n hU hV) ops).toReal * ↑(D_det.seqProbes ops)) :

Transfer any deterministic step-indexed IndexedScheme lower bound over insertQueryDeleteDist to the certified expected-amortized instruction budget of a zero-error WordRAM.Randomized.StateTransitionImpl on Dynamic.spec U V n (including deterministic WordRAM.StateTransitionImpls via StateTransitionImpl.toRandomized).

theorem Cslib.DataStructure.Dictionary.WordRAM.expectedTotalCost_update_ge_of_indexedScheme {B : WordRAM.Basis} {U V n r_ds k_init w base S_max : ℕ} {P : WordRAM.SubroutineCode B r_ds k_init} {params : Fin k_init → ℕ} (hU : 2 * n ≤ U) (hV : 1 ≤ V) (C : WordRAM.Randomized.StateTransitionImpl P (Dynamic.spec U V n) w base params (empty U)) (hbase : WordRAM.Fits w base) (hparams_fit : ∀ (j : Fin k_init), WordRAM.Fits w (params j)) (hparams_fr : ∀ (j : Fin k_init), P.initParams j = P.frontierReg → params j = base) (hparams_agree : ∀ (i j : Fin k_init), P.initParams i = P.initParams j → params i = params j) (hspace : C.space + CellProbe.persistentRegCount P ≤ S_max) {LB : ℝ} (hlb : ∀ {D_det : CellProbe.IndexedScheme (Dynamic.Op U) Dynamic.Op.Result S_max w}, (∀ ops ∈ CellProbe.validHistoriesUpTo U V n (3 * n + 1), (D_det.runSeq ops).1 = ((Dynamic.spec U V n).run (empty U) ops).2) → LB ≤ ∑' (ops : List (Dynamic.Op U)), ((CellProbe.insertDeleteDist U V n hU hV) ops).toReal * ↑(D_det.seqProbes ops)) :

Transfer any deterministic step-indexed IndexedScheme lower bound over insertDeleteDist to the certified expected-amortized instruction budget of a zero-error WordRAM.Randomized.StateTransitionImpl on Dynamic.spec U V n (including deterministic WordRAM.StateTransitionImpls via StateTransitionImpl.toRandomized).

3. Primary Word-RAM Headline Lower Bounds: Actual Expected Running Time #

theorem Cslib.DataStructure.Dictionary.WordRAM.expectedFlatTime_ge_of_iterLog_redundancy {α c_R c_w : ℝ} (r_max : ℕ) (hα : 0 < α) (hcR : 0 ≤ c_R) (hcw : 0 ≤ c_w) :
∃ (c : ℝ), 0 < c ∧ ∀ {B : WordRAM.Basis} {U V n k r w base space : ℕ} {input : Fin r → Bool} {Latent : Type z}, 2 ≤ n → ∀ (hU : 4 * n ≤ U), ↑n ^ (1 + α) ≤ ↑U → ∀ (hV : 1 ≤ V), 1 ≤ k → k ≤ n.logStar → CellProbe.persCount input ≤ r_max → ↑w ≤ c_w * (Real.logb 2 ↑U + Real.logb 2 ↑V) → ↑((space + CellProbe.persCount input) * w) ≤ CellProbe.benchmarkBits U V n + c_R * ↑n * ↑(max (k.iterLog n) 1) → ∀ (p_op : WordRAM.Program B r) (encode : Dynamic.Op U → Fin r → ℕ) (decode : (o : Dynamic.Op U) → ℕ → (Fin r → ℕ) → Option o.Result) (ν₀ : PMF (Latent × WordRAM.Data r)), (∀ p ∈ ν₀.support, WordRAM.Data.Bounded w p.2 ∧ ∀ a ∉ { base := base, length := space }.footprint, p.2.mem a = 0) → (∀ ops ∈ CellProbe.validHistoriesUpTo U V n (4 * n + 1), ∃ (ν_final : PMF (Latent × WordRAM.Data r)) (T_ops : ENNReal), T_ops ≠ ⊤ ∧ CellProbe.ExecFlatProgramOps (Dynamic.spec U V n) Latent w base space p_op input encode decode (empty U) ops ν₀ ν_final T_ops) → ENNReal.ofReal (c * ↑n * ↑k) ≤ ∑' (ops : List (Dynamic.Op U)), (CellProbe.insertQueryDeleteDist U V n ⋯ hV) ops * CellProbe.flatExpectedBodyTime w p_op input encode (PMF.map Prod.snd ν₀) ops

Word-RAM Theorem 1.1 / Theorem 3.1 ([LLYZ23b], Section 1, p. 1 and footnote 1 / PDF p. 2, and Section 3, pp. 10–13 / PDF pp. 11–14; [Yao77]): for any α > 0, c_R ≥ 0, c_w ≥ 0, and persistent-register bound r_max, there exists c > 0 such that any zero-error (Las Vegas) or deterministic flat Word-RAM program p_op : Program B r realizing Dynamic.spec U V n from ν₀ up to horizon 4 * n + 1 with persCount input ≤ r_max and persistent bit budget (((space + persCount input) * w : ℕ) : ℝ) ≤ benchmarkBits U V n + c_R * n * max (log^{(k)} n) 1 (1 ≤ k ≤ log* n) has exact intrinsic expected non-halt body-instruction count flatExpectedBodyTime w p_op input encode (ν₀.map Prod.snd) ops at least ENNReal.ofReal (c * n * k) over oblivious insertQueryDeleteDist (hence also flatExpectedTime and any admissible ExecFlatProgramOps budget T_ops via flatExpectedBodyTime_le). Specializing k = Nat.logStar n (max (Nat.iterLog (Nat.logStar n) n) 1 = 1 for 2 ≤ n) yields Ω(n * log* n) under O(n) bits of redundancy; Monte Carlo error and adaptive sequence adversaries are out of scope.

theorem Cslib.DataStructure.Dictionary.WordRAM.expectedFlatTime_ge_of_sublinear_redundancy {α c_w : ℝ} (r_max : ℕ) (hα : 0 < α) (hcw : 0 ≤ c_w) :
∃ (c : ℝ), 0 < c ∧ ∀ {B : WordRAM.Basis} {U V n r w base space : ℕ} {R : ℝ} {input : Fin r → Bool} {Latent : Type z}, 2 ≤ n → ∀ (hU : 4 * n ≤ U), ↑n ^ (1 + α) ≤ ↑U → ∀ (hV : 1 ≤ V), R ≤ ↑n → CellProbe.persCount input ≤ r_max → ↑w ≤ c_w * (Real.logb 2 ↑U + Real.logb 2 ↑V) → ↑((space + CellProbe.persCount input) * w) ≤ CellProbe.benchmarkBits U V n + R → ∀ (p_op : WordRAM.Program B r) (encode : Dynamic.Op U → Fin r → ℕ) (decode : (o : Dynamic.Op U) → ℕ → (Fin r → ℕ) → Option o.Result) (ν₀ : PMF (Latent × WordRAM.Data r)), (∀ p ∈ ν₀.support, WordRAM.Data.Bounded w p.2 ∧ ∀ a ∉ { base := base, length := space }.footprint, p.2.mem a = 0) → (∀ ops ∈ CellProbe.validHistoriesUpTo U V n (4 * n + 1), ∃ (ν_final : PMF (Latent × WordRAM.Data r)) (T_ops : ENNReal), T_ops ≠ ⊤ ∧ CellProbe.ExecFlatProgramOps (Dynamic.spec U V n) Latent w base space p_op input encode decode (empty U) ops ν₀ ν_final T_ops) → ENNReal.ofReal (c * ↑n * Real.logb 2 (↑n / max R 1)) ≤ ∑' (ops : List (Dynamic.Op U)), (CellProbe.insertQueryDeleteDist U V n ⋯ hV) ops * CellProbe.flatExpectedBodyTime w p_op input encode (PMF.map Prod.snd ν₀) ops

Word-RAM Theorem 1.2 / Theorem 6.1 ([LLYZ23b], Section 1, p. 1 footnote 1 and p. 2 / PDF pp. 2–3, and Section 6, pp. 25–26 / PDF pp. 26–27; [Yao77]): for any α > 0, c_w ≥ 0, and persistent-register bound r_max, there exists c > 0 such that any zero-error (Las Vegas) or deterministic flat Word-RAM program p_op : Program B r realizing Dynamic.spec U V n up to horizon 4 * n + 1 with persCount input ≤ r_max and R ≤ n bits of redundancy ((((space + persCount input) * w : ℕ) : ℝ) ≤ benchmarkBits U V n + R) has exact intrinsic expected non-halt body-instruction count flatExpectedBodyTime at least ENNReal.ofReal (c * n * log₂(n / max R 1)) on oblivious insertQueryDeleteDist (vanishing at R = n; see expectedFlatTime_ge_iterLogStar_add_log_div for the combined bound across R ≤ c_R * n).

theorem Cslib.DataStructure.Dictionary.WordRAM.expectedFlatTime_ge_iterLogStar_add_log_div {α c_R c_w : ℝ} (r_max : ℕ) (hα : 0 < α) (hcR : 0 ≤ c_R) (hcw : 0 ≤ c_w) :
∃ (c : ℝ), 0 < c ∧ ∀ {B : WordRAM.Basis} {U V n r w base space : ℕ} {R : ℝ} {input : Fin r → Bool} {Latent : Type z}, 2 ≤ n → ∀ (hU : 4 * n ≤ U), ↑n ^ (1 + α) ≤ ↑U → ∀ (hV : 1 ≤ V), R ≤ c_R * ↑n → CellProbe.persCount input ≤ r_max → ↑w ≤ c_w * (Real.logb 2 ↑U + Real.logb 2 ↑V) → ↑((space + CellProbe.persCount input) * w) ≤ CellProbe.benchmarkBits U V n + R → ∀ (p_op : WordRAM.Program B r) (encode : Dynamic.Op U → Fin r → ℕ) (decode : (o : Dynamic.Op U) → ℕ → (Fin r → ℕ) → Option o.Result) (ν₀ : PMF (Latent × WordRAM.Data r)), (∀ p ∈ ν₀.support, WordRAM.Data.Bounded w p.2 ∧ ∀ a ∉ { base := base, length := space }.footprint, p.2.mem a = 0) → (∀ ops ∈ CellProbe.validHistoriesUpTo U V n (4 * n + 1), ∃ (ν_final : PMF (Latent × WordRAM.Data r)) (T_ops : ENNReal), T_ops ≠ ⊤ ∧ CellProbe.ExecFlatProgramOps (Dynamic.spec U V n) Latent w base space p_op input encode decode (empty U) ops ν₀ ν_final T_ops) → ENNReal.ofReal (c * ↑n * (↑n.logStar + max 0 (Real.logb 2 (↑n / max R 1)))) ≤ ∑' (ops : List (Dynamic.Op U)), (CellProbe.insertQueryDeleteDist U V n ⋯ hV) ops * CellProbe.flatExpectedBodyTime w p_op input encode (PMF.map Prod.snd ν₀) ops

Combined Word-RAM Theorems 1.1 & 1.2 (Ω(n * (log* n + max 0 (log₂(n / max R 1)))) exact intrinsic expected non-halt body instructions flatExpectedBodyTime) across all R ≤ c_R * n in the zero-error (Las Vegas) or deterministic oblivious model ([LLYZ23b], Section 1, pp. 1–2 and footnote 1 / PDF pp. 2–3, and Section 7, pp. 26–27 / PDF pp. 27–28; [Yao77]).

theorem Cslib.DataStructure.Dictionary.WordRAM.expectedFlatTime_update_ge_iterLog {α_V c_R c_w : ℝ} (r_max : ℕ) (hα_V : 0 < α_V) (hcR : 0 ≤ c_R) (hcw : 0 ≤ c_w) :
∃ (c : ℝ), 0 < c ∧ ∀ {B : WordRAM.Basis} {U V n k r w base space : ℕ} {input : Fin r → Bool} {Latent : Type z}, 2 ≤ n → ∀ (hU : 3 * n ≤ U) (hV : 1 ≤ V), ↑U ^ (2 + α_V) ≤ ↑V * ↑n ^ 2 → 1 ≤ k → k ≤ n.logStar → CellProbe.persCount input ≤ r_max → ↑w ≤ c_w * (Real.logb 2 ↑U + Real.logb 2 ↑V) → ↑((space + CellProbe.persCount input) * w) ≤ CellProbe.benchmarkBits U V n + c_R * ↑n * ↑(max (k.iterLog n) 1) → ∀ (p_op : WordRAM.Program B r) (encode : Dynamic.Op U → Fin r → ℕ) (decode : (o : Dynamic.Op U) → ℕ → (Fin r → ℕ) → Option o.Result) (ν₀ : PMF (Latent × WordRAM.Data r)), (∀ p ∈ ν₀.support, WordRAM.Data.Bounded w p.2 ∧ ∀ a ∉ { base := base, length := space }.footprint, p.2.mem a = 0) → (∀ ops ∈ CellProbe.validHistoriesUpTo U V n (3 * n + 1), ∃ (ν_final : PMF (Latent × WordRAM.Data r)) (T_ops : ENNReal), T_ops ≠ ⊤ ∧ CellProbe.ExecFlatProgramOps (Dynamic.spec U V n) Latent w base space p_op input encode decode (empty U) ops ν₀ ν_final T_ops) → ENNReal.ofReal (c * ↑n * ↑k) ≤ ∑' (ops : List (Dynamic.Op U)), (CellProbe.insertDeleteDist U V n ⋯ hV) ops * CellProbe.flatExpectedBodyTime w p_op input encode (PMF.map Prod.snd ν₀) ops

Word-RAM Theorem 1.3(1) ([LLYZ23b], Section 1, p. 1 footnote 1 and p. 2 / PDF pp. 2–3, and Section 8, pp. 27–30 / PDF pp. 28–31; [Yao77]): update-only (insertDeleteDist) Ω(n * k) exact intrinsic expected non-halt body-instruction (flatExpectedBodyTime) lower bound for zero-error (Las Vegas) or deterministic flat Word-RAM programs when 3 * n ≤ U and U ^ (2 + α_V) ≤ V * n ^ 2 under redundancy ≤ c_R * n * max (log^{(k)} n) 1 (with horizon 3 * n + 1 for decodeDict, no query-time constraint, and k = Nat.logStar n yielding Ω(n * log* n) under O(n) redundancy).

theorem Cslib.DataStructure.Dictionary.WordRAM.expectedFlatTime_update_ge_sublinear {α_V c_w : ℝ} (r_max : ℕ) (hα_V : 0 < α_V) (hcw : 0 ≤ c_w) :
∃ (c : ℝ), 0 < c ∧ ∀ {B : WordRAM.Basis} {U V n r w base space : ℕ} {R : ℝ} {input : Fin r → Bool} {Latent : Type z}, 2 ≤ n → ∀ (hU : 3 * n ≤ U) (hV : 1 ≤ V), ↑U ^ (2 + α_V) ≤ ↑V * ↑n ^ 2 → R ≤ ↑n → CellProbe.persCount input ≤ r_max → ↑w ≤ c_w * (Real.logb 2 ↑U + Real.logb 2 ↑V) → ↑((space + CellProbe.persCount input) * w) ≤ CellProbe.benchmarkBits U V n + R → ∀ (p_op : WordRAM.Program B r) (encode : Dynamic.Op U → Fin r → ℕ) (decode : (o : Dynamic.Op U) → ℕ → (Fin r → ℕ) → Option o.Result) (ν₀ : PMF (Latent × WordRAM.Data r)), (∀ p ∈ ν₀.support, WordRAM.Data.Bounded w p.2 ∧ ∀ a ∉ { base := base, length := space }.footprint, p.2.mem a = 0) → (∀ ops ∈ CellProbe.validHistoriesUpTo U V n (3 * n + 1), ∃ (ν_final : PMF (Latent × WordRAM.Data r)) (T_ops : ENNReal), T_ops ≠ ⊤ ∧ CellProbe.ExecFlatProgramOps (Dynamic.spec U V n) Latent w base space p_op input encode decode (empty U) ops ν₀ ν_final T_ops) → ENNReal.ofReal (c * ↑n * Real.logb 2 (↑n / max R 1)) ≤ ∑' (ops : List (Dynamic.Op U)), (CellProbe.insertDeleteDist U V n ⋯ hV) ops * CellProbe.flatExpectedBodyTime w p_op input encode (PMF.map Prod.snd ν₀) ops

Word-RAM Theorem 1.3(2) ([LLYZ23b], Section 1, p. 1 footnote 1 and p. 2 / PDF pp. 2–3, and Section 8, pp. 27–30 / PDF pp. 28–31; [Yao77]): update-only (insertDeleteDist) Ω(n * log₂(n / max R 1)) exact intrinsic expected non-halt body-instruction (flatExpectedBodyTime) lower bound for zero-error (Las Vegas) or deterministic flat Word-RAM programs when 3 * n ≤ U, U ^ (2 + α_V) ≤ V * n ^ 2, and R ≤ n (vanishing at R = n).

theorem Cslib.DataStructure.Dictionary.WordRAM.expectedFlatTime_update_ge_iterLogStar_add_log_div {α_V c_R c_w : ℝ} (r_max : ℕ) (hα_V : 0 < α_V) (hcR : 0 ≤ c_R) (hcw : 0 ≤ c_w) :
∃ (c : ℝ), 0 < c ∧ ∀ {B : WordRAM.Basis} {U V n r w base space : ℕ} {R : ℝ} {input : Fin r → Bool} {Latent : Type z}, 2 ≤ n → ∀ (hU : 3 * n ≤ U) (hV : 1 ≤ V), ↑U ^ (2 + α_V) ≤ ↑V * ↑n ^ 2 → R ≤ c_R * ↑n → CellProbe.persCount input ≤ r_max → ↑w ≤ c_w * (Real.logb 2 ↑U + Real.logb 2 ↑V) → ↑((space + CellProbe.persCount input) * w) ≤ CellProbe.benchmarkBits U V n + R → ∀ (p_op : WordRAM.Program B r) (encode : Dynamic.Op U → Fin r → ℕ) (decode : (o : Dynamic.Op U) → ℕ → (Fin r → ℕ) → Option o.Result) (ν₀ : PMF (Latent × WordRAM.Data r)), (∀ p ∈ ν₀.support, WordRAM.Data.Bounded w p.2 ∧ ∀ a ∉ { base := base, length := space }.footprint, p.2.mem a = 0) → (∀ ops ∈ CellProbe.validHistoriesUpTo U V n (3 * n + 1), ∃ (ν_final : PMF (Latent × WordRAM.Data r)) (T_ops : ENNReal), T_ops ≠ ⊤ ∧ CellProbe.ExecFlatProgramOps (Dynamic.spec U V n) Latent w base space p_op input encode decode (empty U) ops ν₀ ν_final T_ops) → ENNReal.ofReal (c * ↑n * (↑n.logStar + max 0 (Real.logb 2 (↑n / max R 1)))) ≤ ∑' (ops : List (Dynamic.Op U)), (CellProbe.insertDeleteDist U V n ⋯ hV) ops * CellProbe.flatExpectedBodyTime w p_op input encode (PMF.map Prod.snd ν₀) ops

Combined Word-RAM Theorem 1.3(1)–(2) (Ω(n * (log* n + max 0 (log₂(n / max R 1)))) exact intrinsic expected non-halt body instructions flatExpectedBodyTime) on insertDeleteDist across all R ≤ c_R * n in the zero-error (Las Vegas) or deterministic oblivious model ([LLYZ23b], Section 1, pp. 1–2 and footnote 1 / PDF pp. 2–3, and Section 8, pp. 27–30 / PDF pp. 28–31; [Yao77]).

4. Certified-Budget Corollaries for WordRAM.Randomized.StateTransitionImpl #

theorem Cslib.DataStructure.Dictionary.WordRAM.expectedTotalCost_ge_of_iterLog_redundancy {α c_R c_w : ℝ} (r_max : ℕ) (hα : 0 < α) (hcR : 0 ≤ c_R) (hcw : 0 ≤ c_w) :
∃ (c : ℝ), 0 < c ∧ ∀ {B : WordRAM.Basis} {U V n k r_ds k_init w base : ℕ} {P : WordRAM.SubroutineCode B r_ds k_init} {params : Fin k_init → ℕ}, 2 ≤ n → ∀ (hU : 4 * n ≤ U), ↑n ^ (1 + α) ≤ ↑U → ∀ (hV : 1 ≤ V), 1 ≤ k → k ≤ n.logStar → CellProbe.persistentRegCount P ≤ r_max → ↑w ≤ c_w * (Real.logb 2 ↑U + Real.logb 2 ↑V) → ∀ (C : WordRAM.Randomized.StateTransitionImpl P (Dynamic.spec U V n) w base params (empty U)), ↑((C.space + CellProbe.persistentRegCount P) * w) ≤ CellProbe.benchmarkBits U V n + c_R * ↑n * ↑(max (k.iterLog n) 1) → WordRAM.Fits w base → (∀ (j : Fin k_init), WordRAM.Fits w (params j)) → (∀ (j : Fin k_init), P.initParams j = P.frontierReg → params j = base) → (∀ (i j : Fin k_init), P.initParams i = P.initParams j → params i = params j) → ENNReal.ofReal (c * ↑n * ↑k) ≤ ↑C.initPotential + ∑' (ops : List (Dynamic.Op U)), (CellProbe.insertQueryDeleteDist U V n ⋯ hV) ops * ↑((Dynamic.spec U V n).totalCost C.charge (empty U) ops)

Certified-budget corollary of expectedFlatTime_ge_of_iterLog_redundancy ([CLRS09], Section 17.3): lower-bounds the potential-amortized instruction budget C.initPotential + E[totalCost C.charge] of any zero-error WordRAM.Randomized.StateTransitionImpl (including deterministic WordRAM.StateTransitionImpls via StateTransitionImpl.toRandomized) on insertQueryDeleteDist.

theorem Cslib.DataStructure.Dictionary.WordRAM.expectedTotalCost_ge_of_sublinear_redundancy {α c_w : ℝ} (r_max : ℕ) (hα : 0 < α) (hcw : 0 ≤ c_w) :
∃ (c : ℝ), 0 < c ∧ ∀ {B : WordRAM.Basis} {U V n r_ds k_init w base : ℕ} {R : ℝ} {P : WordRAM.SubroutineCode B r_ds k_init} {params : Fin k_init → ℕ}, 2 ≤ n → ∀ (hU : 4 * n ≤ U), ↑n ^ (1 + α) ≤ ↑U → ∀ (hV : 1 ≤ V), R ≤ ↑n → CellProbe.persistentRegCount P ≤ r_max → ↑w ≤ c_w * (Real.logb 2 ↑U + Real.logb 2 ↑V) → ∀ (C : WordRAM.Randomized.StateTransitionImpl P (Dynamic.spec U V n) w base params (empty U)), ↑((C.space + CellProbe.persistentRegCount P) * w) ≤ CellProbe.benchmarkBits U V n + R → WordRAM.Fits w base → (∀ (j : Fin k_init), WordRAM.Fits w (params j)) → (∀ (j : Fin k_init), P.initParams j = P.frontierReg → params j = base) → (∀ (i j : Fin k_init), P.initParams i = P.initParams j → params i = params j) → ENNReal.ofReal (c * ↑n * Real.logb 2 (↑n / max R 1)) ≤ ↑C.initPotential + ∑' (ops : List (Dynamic.Op U)), (CellProbe.insertQueryDeleteDist U V n ⋯ hV) ops * ↑((Dynamic.spec U V n).totalCost C.charge (empty U) ops)

Certified-budget corollary of expectedFlatTime_ge_of_sublinear_redundancy ([CLRS09], Section 17.3): lower-bounds C.initPotential + E[totalCost C.charge] for any zero-error WordRAM.Randomized.StateTransitionImpl (or StateTransitionImpl.toRandomized) under R ≤ n bits of redundancy on insertQueryDeleteDist (vanishing at R = n).

theorem Cslib.DataStructure.Dictionary.WordRAM.expectedTotalCost_ge_iterLogStar_add_log_div {α c_R c_w : ℝ} (r_max : ℕ) (hα : 0 < α) (hcR : 0 ≤ c_R) (hcw : 0 ≤ c_w) :
∃ (c : ℝ), 0 < c ∧ ∀ {B : WordRAM.Basis} {U V n r_ds k_init w base : ℕ} {R : ℝ} {P : WordRAM.SubroutineCode B r_ds k_init} {params : Fin k_init → ℕ}, 2 ≤ n → ∀ (hU : 4 * n ≤ U), ↑n ^ (1 + α) ≤ ↑U → ∀ (hV : 1 ≤ V), R ≤ c_R * ↑n → CellProbe.persistentRegCount P ≤ r_max → ↑w ≤ c_w * (Real.logb 2 ↑U + Real.logb 2 ↑V) → ∀ (C : WordRAM.Randomized.StateTransitionImpl P (Dynamic.spec U V n) w base params (empty U)), ↑((C.space + CellProbe.persistentRegCount P) * w) ≤ CellProbe.benchmarkBits U V n + R → WordRAM.Fits w base → (∀ (j : Fin k_init), WordRAM.Fits w (params j)) → (∀ (j : Fin k_init), P.initParams j = P.frontierReg → params j = base) → (∀ (i j : Fin k_init), P.initParams i = P.initParams j → params i = params j) → ENNReal.ofReal (c * ↑n * (↑n.logStar + max 0 (Real.logb 2 (↑n / max R 1)))) ≤ ↑C.initPotential + ∑' (ops : List (Dynamic.Op U)), (CellProbe.insertQueryDeleteDist U V n ⋯ hV) ops * ↑((Dynamic.spec U V n).totalCost C.charge (empty U) ops)

Certified-budget corollary of expectedFlatTime_ge_iterLogStar_add_log_div ([CLRS09], Section 17.3): lower-bounds C.initPotential + E[totalCost C.charge] across all R ≤ c_R * n on insertQueryDeleteDist for any zero-error WordRAM.Randomized.StateTransitionImpl (or StateTransitionImpl.toRandomized).

theorem Cslib.DataStructure.Dictionary.WordRAM.expectedTotalCost_update_ge_iterLog {α_V c_R c_w : ℝ} (r_max : ℕ) (hα_V : 0 < α_V) (hcR : 0 ≤ c_R) (hcw : 0 ≤ c_w) :
∃ (c : ℝ), 0 < c ∧ ∀ {B : WordRAM.Basis} {U V n k r_ds k_init w base : ℕ} {P : WordRAM.SubroutineCode B r_ds k_init} {params : Fin k_init → ℕ}, 2 ≤ n → ∀ (hU : 3 * n ≤ U) (hV : 1 ≤ V), ↑U ^ (2 + α_V) ≤ ↑V * ↑n ^ 2 → 1 ≤ k → k ≤ n.logStar → CellProbe.persistentRegCount P ≤ r_max → ↑w ≤ c_w * (Real.logb 2 ↑U + Real.logb 2 ↑V) → ∀ (C : WordRAM.Randomized.StateTransitionImpl P (Dynamic.spec U V n) w base params (empty U)), ↑((C.space + CellProbe.persistentRegCount P) * w) ≤ CellProbe.benchmarkBits U V n + c_R * ↑n * ↑(max (k.iterLog n) 1) → WordRAM.Fits w base → (∀ (j : Fin k_init), WordRAM.Fits w (params j)) → (∀ (j : Fin k_init), P.initParams j = P.frontierReg → params j = base) → (∀ (i j : Fin k_init), P.initParams i = P.initParams j → params i = params j) → ENNReal.ofReal (c * ↑n * ↑k) ≤ ↑C.initPotential + ∑' (ops : List (Dynamic.Op U)), (CellProbe.insertDeleteDist U V n ⋯ hV) ops * ↑((Dynamic.spec U V n).totalCost C.charge (empty U) ops)

Certified-budget corollary of expectedFlatTime_update_ge_iterLog ([CLRS09], Section 17.3): lower-bounds C.initPotential + E[totalCost C.charge] on update-only insertDeleteDist for any zero-error WordRAM.Randomized.StateTransitionImpl (or StateTransitionImpl.toRandomized).

theorem Cslib.DataStructure.Dictionary.WordRAM.expectedTotalCost_update_ge_sublinear {α_V c_w : ℝ} (r_max : ℕ) (hα_V : 0 < α_V) (hcw : 0 ≤ c_w) :
∃ (c : ℝ), 0 < c ∧ ∀ {B : WordRAM.Basis} {U V n r_ds k_init w base : ℕ} {R : ℝ} {P : WordRAM.SubroutineCode B r_ds k_init} {params : Fin k_init → ℕ}, 2 ≤ n → ∀ (hU : 3 * n ≤ U) (hV : 1 ≤ V), ↑U ^ (2 + α_V) ≤ ↑V * ↑n ^ 2 → R ≤ ↑n → CellProbe.persistentRegCount P ≤ r_max → ↑w ≤ c_w * (Real.logb 2 ↑U + Real.logb 2 ↑V) → ∀ (C : WordRAM.Randomized.StateTransitionImpl P (Dynamic.spec U V n) w base params (empty U)), ↑((C.space + CellProbe.persistentRegCount P) * w) ≤ CellProbe.benchmarkBits U V n + R → WordRAM.Fits w base → (∀ (j : Fin k_init), WordRAM.Fits w (params j)) → (∀ (j : Fin k_init), P.initParams j = P.frontierReg → params j = base) → (∀ (i j : Fin k_init), P.initParams i = P.initParams j → params i = params j) → ENNReal.ofReal (c * ↑n * Real.logb 2 (↑n / max R 1)) ≤ ↑C.initPotential + ∑' (ops : List (Dynamic.Op U)), (CellProbe.insertDeleteDist U V n ⋯ hV) ops * ↑((Dynamic.spec U V n).totalCost C.charge (empty U) ops)

Certified-budget corollary of expectedFlatTime_update_ge_sublinear ([CLRS09], Section 17.3): lower-bounds C.initPotential + E[totalCost C.charge] on update-only insertDeleteDist under R ≤ n bits of redundancy (vanishing at R = n) for any zero-error WordRAM.Randomized.StateTransitionImpl (or StateTransitionImpl.toRandomized).

theorem Cslib.DataStructure.Dictionary.WordRAM.expectedTotalCost_update_ge_iterLogStar_add_log_div {α_V c_R c_w : ℝ} (r_max : ℕ) (hα_V : 0 < α_V) (hcR : 0 ≤ c_R) (hcw : 0 ≤ c_w) :
∃ (c : ℝ), 0 < c ∧ ∀ {B : WordRAM.Basis} {U V n r_ds k_init w base : ℕ} {R : ℝ} {P : WordRAM.SubroutineCode B r_ds k_init} {params : Fin k_init → ℕ}, 2 ≤ n → ∀ (hU : 3 * n ≤ U) (hV : 1 ≤ V), ↑U ^ (2 + α_V) ≤ ↑V * ↑n ^ 2 → R ≤ c_R * ↑n → CellProbe.persistentRegCount P ≤ r_max → ↑w ≤ c_w * (Real.logb 2 ↑U + Real.logb 2 ↑V) → ∀ (C : WordRAM.Randomized.StateTransitionImpl P (Dynamic.spec U V n) w base params (empty U)), ↑((C.space + CellProbe.persistentRegCount P) * w) ≤ CellProbe.benchmarkBits U V n + R → WordRAM.Fits w base → (∀ (j : Fin k_init), WordRAM.Fits w (params j)) → (∀ (j : Fin k_init), P.initParams j = P.frontierReg → params j = base) → (∀ (i j : Fin k_init), P.initParams i = P.initParams j → params i = params j) → ENNReal.ofReal (c * ↑n * (↑n.logStar + max 0 (Real.logb 2 (↑n / max R 1)))) ≤ ↑C.initPotential + ∑' (ops : List (Dynamic.Op U)), (CellProbe.insertDeleteDist U V n ⋯ hV) ops * ↑((Dynamic.spec U V n).totalCost C.charge (empty U) ops)

Certified-budget corollary of expectedFlatTime_update_ge_iterLogStar_add_log_div ([CLRS09], Section 17.3): lower-bounds C.initPotential + E[totalCost C.charge] on update-only insertDeleteDist across all R ≤ c_R * n for any zero-error WordRAM.Randomized.StateTransitionImpl (or StateTransitionImpl.toRandomized).