Documentation

CslibFrontier.DataStructure.Dictionary.CellProbe.Consistency

Single-Level Qualification, Capped Consistency, and Binomial Log Estimates #

Single-level segment qualification and consistency predicates, Claim 4.1's good-segment expectation lower bound, candidate segment simulations, global-value HardKeyValSeed seeds, and binomial logarithm estimates from Sections 4–5 and 8 of Li, Liang, Yu, and Zhou ([LLYZ23b]; locators follow arXiv:2306.02253v3, printed page p = PDF page p + 1).

Pinned source: [LLYZ23b] (arXiv:2306.02253v3), Section 4.2, pp. 14–16 (PDF pp. 15–17); Section 4.3, Claim 4.1, Eq. (5), Definition 4.3, p. 17 (PDF p. 18), Claim 4.2, pp. 17–18 (PDF pp. 18–19), and Claim 4.6, Eq. (7), p. 19 (PDF p. 20); Section 5.1, Step 1, p. 22 (PDF p. 23); Section 5.2, Eq. (11) and binomial log bounds, pp. 24–25 (PDF pp. 25–26); Section 8, p. 28 (PDF p. 29).

Original formalization adaptation (c = 1 deterministic probe cap): MetaTree.IsGoodSeg, IsQualified, and IsCappedConsistent include |S_A| ≤ m * t and |S_B| ≤ m * t to prevent {W = 1} conditional probe inflation in Eq. (11), adding at most λ_{ℓ+1} / 16 failure mass via Markov's inequality on nodeProbes so Claim 4.1 (λ_{ℓ+1} / 4) and Eq. (11) (2 (β + 1) m t) hold.

Main definitions #

Main results #

References #

Qualification, c = 1 capped consistency, and Claim 4.1 #

def Cslib.DataStructure.Dictionary.CellProbe.IsQualified {Op : Type u_1} {Result : Op → Type} {cells w : ℕ} (D : CellProbe.IndexedScheme Op Result cells w) (step₀ : ℕ) (C_bef C_end : CellProbe.Mem cells w) (γ : ℝ) (m : ℕ) (t : ℝ) (ops_B : List Op) :

Bob's candidate-segment qualification predicate ([LLYZ23b], Section 4.2, pp. 15–16 / PDF pp. 16–17, adapted with the deterministic |S_B| ≤ m * t probe cap).

def Cslib.DataStructure.Dictionary.CellProbe.IsCappedConsistent {Op : Type u_1} {Result : Op → Type} {cells w : ℕ} (D : CellProbe.IndexedScheme Op Result cells w) (step₀ : ℕ) (C_bef : CellProbe.Mem cells w) (γ : ℝ) (m : ℕ) (t : ℝ) (ops_A ops_B : List Op) :

Probe-capped consistency between two candidate segment executions ([LLYZ23b], Section 4.3, Definition 4.3, p. 17 / PDF p. 18 and Section 5.1, Step 1, p. 22 / PDF p. 23, adapted with |S_A| ≤ m * t and |S_B| ≤ m * t).

theorem Cslib.DataStructure.Dictionary.CellProbe.IsCappedConsistent.symm {Op : Type u_1} {Result : Op → Type} {cells w : ℕ} {D : CellProbe.IndexedScheme Op Result cells w} {step₀ : ℕ} {C_bef : CellProbe.Mem cells w} {γ : ℝ} {m : ℕ} {t : ℝ} {ops_A ops_B : List Op} (h : IsCappedConsistent D step₀ C_bef γ m t ops_A ops_B) :
IsCappedConsistent D step₀ C_bef γ m t ops_B ops_A

Capped consistency is symmetric in the two operation sequences ops_A and ops_B.

theorem Cslib.DataStructure.Dictionary.CellProbe.IsQualified.isCappedConsistent {Op : Type u_1} {Result : Op → Type} {cells w : ℕ} {D : CellProbe.IndexedScheme Op Result cells w} {step₀ : ℕ} {C_bef C_end : CellProbe.Mem cells w} {γ : ℝ} {m : ℕ} {t : ℝ} {ops_A ops_B : List Op} (hA : IsQualified D step₀ C_bef C_end γ m t ops_A) (hB : IsQualified D step₀ C_bef C_end γ m t ops_B) :
IsCappedConsistent D step₀ C_bef γ m t ops_A ops_B

Two segment executions qualified against the same C_end are capped-consistent ([LLYZ23b], Section 4.3, proof of Claim 4.2, p. 17 / PDF p. 18).

def Cslib.DataStructure.Dictionary.CellProbe.MetaTree.IsGoodSeg {Op : Type u_1} {Result : Op → Type} {cells w : ℕ} (T : MetaTree) (D : CellProbe.IndexedScheme Op Result cells w) (initLen stride : ℕ) (ops : List Op) (γ t : ℝ) (ℓ b : ℕ) (i : Fin (T.fanout (ℓ + 1))) :

Alice's good child-segment predicate X_i = 1 at child i of internal node (ℓ + 1, b) ([LLYZ23b], Section 4.2, p. 15 / PDF p. 16, adapted with |S_A^{[i]}| ≤ m_ℓ * t).

theorem Cslib.DataStructure.Dictionary.CellProbe.MetaTree.isQualified_elemSlice_of_isGoodSeg {Op : Type u_1} {Result : Op → Type} {cells w : ℕ} (T : MetaTree) (D : CellProbe.IndexedScheme Op Result cells w) (initLen stride : ℕ) (ops : List Op) {γ t : ℝ} (ℓ b : ℕ) (i : Fin (T.fanout (ℓ + 1))) (hgood : T.IsGoodSeg D initLen stride ops γ t ℓ b i) :
have segIdx := b * T.fanout (ℓ + 1) + ↑i; IsQualified D (initLen + stride * T.nodeStart ℓ segIdx) (memAt D ops (initLen + stride * T.nodeStart ℓ segIdx)) (memAt D ops (initLen + stride * T.nodeStop (ℓ + 1) b)) γ (T.blockSize ℓ) t (elemSlice initLen stride ops (T.nodeStart ℓ segIdx) (T.nodeStop ℓ segIdx))

When T.IsGoodSeg holds, the true child-segment slice elemSlice is qualified against C_end ([LLYZ23b], Section 4.2, pp. 15–16 / PDF pp. 16–17).

theorem Cslib.DataStructure.Dictionary.CellProbe.MetaTree.isCappedConsistent_of_isGoodSeg {Op : Type u_1} {Result : Op → Type} {cells w : ℕ} (T : MetaTree) (D : CellProbe.IndexedScheme Op Result cells w) (initLen stride : ℕ) (ops : List Op) {γ t : ℝ} (ℓ b : ℕ) (i : Fin (T.fanout (ℓ + 1))) {ops_B : List Op} (hgood : T.IsGoodSeg D initLen stride ops γ t ℓ b i) (hqualB : IsQualified D (initLen + stride * T.nodeStart ℓ (b * T.fanout (ℓ + 1) + ↑i)) (memAt D ops (initLen + stride * T.nodeStart ℓ (b * T.fanout (ℓ + 1) + ↑i))) (memAt D ops (initLen + stride * T.nodeStop (ℓ + 1) b)) γ (T.blockSize ℓ) t ops_B) :
IsCappedConsistent D (initLen + stride * T.nodeStart ℓ (b * T.fanout (ℓ + 1) + ↑i)) (memAt D ops (initLen + stride * T.nodeStart ℓ (b * T.fanout (ℓ + 1) + ↑i))) γ (T.blockSize ℓ) t (elemSlice initLen stride ops (T.nodeStart ℓ (b * T.fanout (ℓ + 1) + ↑i)) (T.nodeStop ℓ (b * T.fanout (ℓ + 1) + ↑i))) ops_B

When T.IsGoodSeg holds and ops_B is qualified against C_end, the true segment slice and ops_B are capped-consistent ([LLYZ23b], Section 4.3, p. 17 / PDF p. 18).

theorem Cslib.DataStructure.Dictionary.CellProbe.MetaTree.sum_prob_not_isGoodSeg_le {Op : Type u_1} {Result : Op → Type} {cells w : ℕ} {Ω : Type u_2} [Fintype Ω] (T : MetaTree) (D : CellProbe.IndexedScheme Op Result cells w) (initLen stride : ℕ) (p : PMF Ω) (opsOf : Ω → List Op) {γ t : ℝ} (hγ : 0 < γ) (ht : 0 < t) (ℓ b : ℕ) (hcost : ∑ ω : Ω, (p ω).toReal * ↑(T.nodeCost D initLen stride (opsOf ω) ℓ b) ≤ γ / 100 * ↑(T.blockSize (ℓ + 1))) (hprobe : ∑ ω : Ω, (p ω).toReal * ↑(T.nodeProbes D initLen stride (opsOf ω) (ℓ + 1) b) ≤ 1 / 16 * ↑(T.blockSize (ℓ + 1)) * t) :
(∑ i : Fin (T.fanout (ℓ + 1)), ∑ ω : Ω, (p ω).toReal * if T.IsGoodSeg D initLen stride (opsOf ω) γ t ℓ b i then 0 else 1) ≤ 41 / 400 * ↑(T.fanout (ℓ + 1))

Total bad-segment probability across all λ_{ℓ+1} child segments of internal node (ℓ + 1, b) is at most (41 / 400) * λ_{ℓ+1} ([LLYZ23b], Section 4.3, Claim 4.1 and Eq. (5), p. 17 / PDF p. 18, extended with Markov's inequality on nodeProbes for the c = 1 probe cap).

theorem Cslib.DataStructure.Dictionary.CellProbe.MetaTree.quarter_fanout_le_sum_prob_isGoodSeg {Op : Type u_1} {Result : Op → Type} {cells w : ℕ} {Ω : Type u_2} [Fintype Ω] (T : MetaTree) (D : CellProbe.IndexedScheme Op Result cells w) (initLen stride : ℕ) (p : PMF Ω) (opsOf : Ω → List Op) {γ t : ℝ} (hγ : 0 < γ) (ht : 0 < t) (ℓ b : ℕ) (hcost : ∑ ω : Ω, (p ω).toReal * ↑(T.nodeCost D initLen stride (opsOf ω) ℓ b) ≤ γ / 100 * ↑(T.blockSize (ℓ + 1))) (hprobe : ∑ ω : Ω, (p ω).toReal * ↑(T.nodeProbes D initLen stride (opsOf ω) (ℓ + 1) b) ≤ 1 / 16 * ↑(T.blockSize (ℓ + 1)) * t) :
↑(T.fanout (ℓ + 1)) / 4 ≤ ∑ i : Fin (T.fanout (ℓ + 1)) with ↑i < T.fanout (ℓ + 1) / 2, ∑ ω : Ω, (p ω).toReal * if T.IsGoodSeg D initLen stride (opsOf ω) γ t ℓ b i then 1 else 0

Claim 4.1 under the c = 1 probe cap ([LLYZ23b], Section 4.3, Claim 4.1, p. 17 / PDF p. 18, adapted with |S_A^{[i]}| ≤ m_ℓ * t): across the first λ_{ℓ+1} / 2 child segments of internal node (ℓ + 1, b), the expected number of good segments is at least λ_{ℓ+1} / 4.

Candidate segment simulations and HardKeyValSeed #

Candidate [query, delete, insert] segment sequence of length 3 * m ([LLYZ23b], Section 4.2, p. 15 / PDF p. 16 and Section 5, p. 21 / PDF p. 22).

Candidate [delete, insert] update-only segment sequence of length 2 * m ([LLYZ23b], Section 8, p. 28 / PDF p. 29).

theorem Cslib.DataStructure.Dictionary.CellProbe.candidateQueryDeleteInsertOps_congr {U V m : ℕ} (d : Fin m → Fin U) {B : Finset (Fin U)} (hB : B.card = m) (π : Equiv.Perm (Fin m)) {kv₁ kv₂ : Fin U → Fin V} (hkv : ∀ x ∈ B, kv₁ x = kv₂ x) :
def Cslib.DataStructure.Dictionary.CellProbe.segDeletedKeys {U n : ℕ} (keys : Fin (2 * n) ↪ Fin U) (delPerm : Equiv.Perm (Fin n)) (t₀ m : ℕ) (ht : t₀ + m ≤ n) :
Fin m ↪ Fin U

Injective sequence of m keys deleted during meta-operations [t₀, t₀ + m).

@[simp]
theorem Cslib.DataStructure.Dictionary.CellProbe.segDeletedKeys_apply {U n : ℕ} (keys : Fin (2 * n) ↪ Fin U) (delPerm : Equiv.Perm (Fin n)) (t₀ m : ℕ) (ht : t₀ + m ≤ n) (r : Fin m) :
(segDeletedKeys keys delPerm t₀ m ht) r = keys ⟨↑(delPerm ⟨t₀ + ↑r, ⋯⟩), ⋯⟩
def Cslib.DataStructure.Dictionary.CellProbe.segInsertedKeys {U n : ℕ} (keys : Fin (2 * n) ↪ Fin U) (t₀ m : ℕ) (ht : t₀ + m ≤ n) :
Fin m ↪ Fin U

Injective sequence of m keys inserted during meta-operations [t₀, t₀ + m).

@[simp]
theorem Cslib.DataStructure.Dictionary.CellProbe.segInsertedKeys_apply {U n : ℕ} (keys : Fin (2 * n) ↪ Fin U) (t₀ m : ℕ) (ht : t₀ + m ≤ n) (r : Fin m) :
(segInsertedKeys keys t₀ m ht) r = keys ⟨n + (t₀ + ↑r), ⋯⟩
theorem Cslib.DataStructure.Dictionary.CellProbe.elemSlice_insertQueryDeleteSeq_eq_candidate {U V n t₀ m : ℕ} (keys : Fin (2 * n) ↪ Fin U) (kv : Fin U → Fin V) (delPerm : Equiv.Perm (Fin n)) (ht : t₀ + m ≤ n) :
elemSlice n 3 (insertQueryDeleteSeq keys (fun (idx : Fin (2 * n)) => kv (keys idx)) delPerm) t₀ (t₀ + m) = candidateQueryDeleteInsertOps (⇑(segDeletedKeys keys delPerm t₀ m ht)) (⇑(segInsertedKeys keys t₀ m ht)) kv

When per-step values are induced by kv : Fin U → Fin V, elemSlice on insertQueryDeleteSeq over [t₀, t₀ + m) equals candidateQueryDeleteInsertOps on the true deleted and inserted keys.

theorem Cslib.DataStructure.Dictionary.CellProbe.elemSlice_insertDeleteSeq_eq_candidate {U V n t₀ m : ℕ} (keys : Fin (2 * n) ↪ Fin U) (kv : Fin U → Fin V) (delPerm : Equiv.Perm (Fin n)) (ht : t₀ + m ≤ n) :
elemSlice n 2 (insertDeleteSeq keys (fun (idx : Fin (2 * n)) => kv (keys idx)) delPerm) t₀ (t₀ + m) = candidateDeleteInsertOps (⇑(segDeletedKeys keys delPerm t₀ m ht)) (⇑(segInsertedKeys keys t₀ m ht)) kv

Update-only counterpart of elemSlice_insertQueryDeleteSeq_eq_candidate.

theorem Cslib.DataStructure.Dictionary.CellProbe.insertQueryDeleteDist_eq_bind_keyVals {U V n : ℕ} (hU : 2 * n ≤ U) (hV : 1 ≤ V) :
insertQueryDeleteDist U V n hU hV = (Probability.PMF.uniformOfFintype (Fin (2 * n) ↪ Fin U)).bind fun (keys : Fin (2 * n) ↪ Fin U) => (Probability.PMF.uniformOfFintype (Fin U → Fin V)).bind fun (kv : Fin U → Fin V) => PMF.map (fun (delPerm : Equiv.Perm (Fin n)) => insertQueryDeleteSeq keys (fun (idx : Fin (2 * n)) => kv (keys idx)) delPerm) (Probability.PMF.uniformOfFintype (Equiv.Perm (Fin n)))

Global-value representation of insertQueryDeleteDist ([LLYZ23b], Section 8, p. 28 / PDF p. 29).

theorem Cslib.DataStructure.Dictionary.CellProbe.insertDeleteDist_eq_bind_keyVals {U V n : ℕ} (hU : 2 * n ≤ U) (hV : 1 ≤ V) :
insertDeleteDist U V n hU hV = (Probability.PMF.uniformOfFintype (Fin (2 * n) ↪ Fin U)).bind fun (keys : Fin (2 * n) ↪ Fin U) => (Probability.PMF.uniformOfFintype (Fin U → Fin V)).bind fun (kv : Fin U → Fin V) => PMF.map (fun (delPerm : Equiv.Perm (Fin n)) => insertDeleteSeq keys (fun (idx : Fin (2 * n)) => kv (keys idx)) delPerm) (Probability.PMF.uniformOfFintype (Equiv.Perm (Fin n)))

Update-only counterpart of insertQueryDeleteDist_eq_bind_keyVals.

Global-value seed (keys, kv, delPerm) underlying insertQueryDeleteDist.

  • keys : Fin (2 * n) ↪ Fin U

    Injective sequence of 2 * n distinct keys drawn from Fin U.

  • kv : Fin U → Fin V

    Global value assignment mapping every universe key in Fin U to Fin V.

  • delPerm : Equiv.Perm (Fin n)

    Permutation of Fin n ordering deletions among the n initially inserted keys.

Instances For
    theorem Cslib.DataStructure.Dictionary.CellProbe.HardKeyValSeed.ext {U V n : ℕ} {x y : HardKeyValSeed U V n} (keys : x.keys = y.keys) (kv : x.kv = y.kv) (delPerm : x.delPerm = y.delPerm) :
    x = y
    @[instance_reducible]
    def Cslib.DataStructure.Dictionary.CellProbe.instDecidableEqHardKeyValSeed.decEq {U✝ V✝ n✝ : ℕ} (x✝ x✝¹ : HardKeyValSeed U✝ V✝ n✝) :
    Decidable (x✝ = x✝¹)

    Deletion-ordered key embedding (liftDelPerm s.delPerm).toEmbedding.trans s.keys.

    @[instance_reducible]

    Elementary-step stride per meta-operation: 3 ([query, delete, insert]) when withQueries = true, and 2 ([delete, insert]) when withQueries = false.

    Correctness horizon n + modeStride withQueries * n (4 * n vs. 3 * n).

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

    Mode-parametric hard operational sequence distribution (insertQueryDeleteDist vs. insertDeleteDist).

    @[simp]
    theorem Cslib.DataStructure.Dictionary.CellProbe.modeDist_true (U V n : ℕ) (hU : 2 * n ≤ U) (hV : 1 ≤ V) :
    modeDist true U V n hU hV = insertQueryDeleteDist U V n hU hV
    @[simp]
    theorem Cslib.DataStructure.Dictionary.CellProbe.modeDist_false (U V n : ℕ) (hU : 2 * n ≤ U) (hV : 1 ≤ V) :
    modeDist false U V n hU hV = insertDeleteDist U V n hU hV

    Full 4 * n-operation [query, delete, insert] sequence generated by s.

    Full 3 * n-operation [delete, insert] update-only sequence generated by s.

    Mode-parametric full sequence generated by s (s.ops vs. s.updateOps).

    Active size-n key set K before meta-operation t₀ ≤ n.

    Size-r key set inserted during meta-operations [t₀, t₀ + r).

    noncomputable def Cslib.DataStructure.Dictionary.CellProbe.HardKeyValSeed.candidateOps {U V n : ℕ} (s : HardKeyValSeed U V n) (t₀ m : ℕ) (ht : t₀ + m ≤ n) (B : Finset (Fin U)) (hB : B.card = m) :

    Candidate [query, delete, insert] segment sequence for candidate set B (B.card = m).

    @[simp]
    theorem Cslib.DataStructure.Dictionary.CellProbe.HardKeyValSeed.candidateOps_eq {U V n : ℕ} (s : HardKeyValSeed U V n) (t₀ m : ℕ) (ht : t₀ + m ≤ n) (B : Finset (Fin U)) (hB : B.card = m) :
    s.candidateOps t₀ m ht B hB = candidateQueryDeleteInsertOps (⇑(segDeletedKeys s.keys s.delPerm t₀ m ht)) (⇑(B.orderSubset hB ((Finset.embSetPermEquiv (Fin U) m) (segInsertedKeys s.keys t₀ m ht)).2)) s.kv
    noncomputable def Cslib.DataStructure.Dictionary.CellProbe.HardKeyValSeed.candidateUpdateOps {U V n : ℕ} (s : HardKeyValSeed U V n) (t₀ m : ℕ) (ht : t₀ + m ≤ n) (B : Finset (Fin U)) (hB : B.card = m) :

    Candidate [delete, insert] segment sequence for candidate set B (B.card = m).

    theorem Cslib.DataStructure.Dictionary.CellProbe.HardKeyValSeed.candidateUpdateOps_eq {U V n : ℕ} (s : HardKeyValSeed U V n) (t₀ m : ℕ) (ht : t₀ + m ≤ n) (B : Finset (Fin U)) (hB : B.card = m) :
    s.candidateUpdateOps t₀ m ht B hB = candidateDeleteInsertOps (⇑(segDeletedKeys s.keys s.delPerm t₀ m ht)) (⇑(B.orderSubset hB ((Finset.embSetPermEquiv (Fin U) m) (segInsertedKeys s.keys t₀ m ht)).2)) s.kv
    noncomputable def Cslib.DataStructure.Dictionary.CellProbe.HardKeyValSeed.modeCandidateOps {U V n : ℕ} (withQueries : Bool) (s : HardKeyValSeed U V n) (t₀ m : ℕ) (ht : t₀ + m ≤ n) (B : Finset (Fin U)) (hB : B.card = m) :

    Mode-parametric candidate segment sequence for candidate set B (B.card = m).

    theorem Cslib.DataStructure.Dictionary.CellProbe.HardKeyValSeed.modeCandidateOps_eq {U V n : ℕ} (withQueries : Bool) (s : HardKeyValSeed U V n) (t₀ m : ℕ) (ht : t₀ + m ≤ n) (B : Finset (Fin U)) (hB : B.card = m) :
    modeCandidateOps withQueries s t₀ m ht B hB = if withQueries = true then s.candidateOps t₀ m ht B hB else s.candidateUpdateOps t₀ m ht B hB
    theorem Cslib.DataStructure.Dictionary.CellProbe.HardKeyValSeed.run_take_modeOps_fst (withQueries : Bool) {U V n t : ℕ} (s : HardKeyValSeed U V n) (ht : t ≤ n) :
    ((Dynamic.spec U V n).run (empty U) (List.take (n + modeStride withQueries * t) (modeOps withQueries s))).1 = ↑(windowDict s.permKeyEmb (fun (idx : Fin (2 * n)) => s.kv (s.permKeyEmb idx)) t ht)

    Dictionary state reached after n initial insertions and t ≤ n meta-operations of s.modeOps withQueries.

    theorem Cslib.DataStructure.Dictionary.CellProbe.HardKeyValSeed.run_take_ops_fst {U V n t : ℕ} (s : HardKeyValSeed U V n) (ht : t ≤ n) :
    ((Dynamic.spec U V n).run (empty U) (List.take (n + 3 * t) s.ops)).1 = ↑(windowDict s.permKeyEmb (fun (idx : Fin (2 * n)) => s.kv (s.permKeyEmb idx)) t ht)

    Dictionary state reached after n initial insertions and t ≤ n meta-operations of s.ops.

    theorem Cslib.DataStructure.Dictionary.CellProbe.HardKeyValSeed.validHistory_take_modeOps (withQueries : Bool) {U V n t : ℕ} (s : HardKeyValSeed U V n) (ht : t ≤ n) :
    (Dynamic.spec U V n).ValidHistory (empty U) (List.take (n + modeStride withQueries * t) (modeOps withQueries s))

    Any prefix n + modeStride withQueries * t (t ≤ n) of s.modeOps withQueries is admissible under Dynamic.spec U V n.

    theorem Cslib.DataStructure.Dictionary.CellProbe.HardKeyValSeed.length_take_modeOps (withQueries : Bool) {U V n t : ℕ} (s : HardKeyValSeed U V n) (ht : t ≤ n) :
    (List.take (n + modeStride withQueries * t) (modeOps withQueries s)).length = n + modeStride withQueries * t

    Length of the t-meta-operation prefix of s.modeOps withQueries for t ≤ n.

    theorem Cslib.DataStructure.Dictionary.CellProbe.HardKeyValSeed.elemSlice_modeOps_eq_trueCandidate (withQueries : Bool) {U V n t₀ m : ℕ} (s : HardKeyValSeed U V n) (ht : t₀ + m ≤ n) :
    elemSlice n (modeStride withQueries) (modeOps withQueries s) t₀ (t₀ + m) = modeCandidateOps withQueries s t₀ m ht (s.insertedSet t₀ m ht) ⋯

    Segment slice [t₀, t₀ + m) of s.modeOps withQueries equals s.modeCandidateOps on the true inserted key set s.insertedSet t₀ m ht.

    Pushing PMF.uniformOfFintype (HardKeyValSeed U V n) forward by HardKeyValSeed.ops recovers insertQueryDeleteDist U V n hU hV.

    Pushing PMF.uniformOfFintype (HardKeyValSeed U V n) forward by HardKeyValSeed.modeOps recovers modeDist withQueries U V n hU hV.