Lemma 2.1 — phase lengths: nonfinal phase j has between ⌊|T_{i−1}|/(10j²)⌋ and |T_{i−1}|/(5j²)+1 insertions; the final phase at least |T_{i−1}| − ⌊(1−η)|T_{i−1}|⌋
ProvedIncrOpenAddr.NoTradeoff.lemma_2_1hashingopen-addressingp2o-gran-per-chapterp2o-plan-paperp2o-v1
Lemma 2.1 (Phase lengths). In the schedule (1) with a sufficiently small constant , for every table size and every epoch with , writing and for the height of :
- every nonfinal phase of epoch consists of at least and at most insertions;
- the final phase of epoch consists of at least insertions.
Here (phaseLength n η i j) is the number of insertions with whose phase is . The second part is what lets the final phase alone finish cleaning up (Lemma 2.2); the first gives each nonfinal phase a share of the epoch.
Differences from the source:
- reading: η is a small constant, fixed by (6) η ≤ 1/(400(λ+1)^6) for a sufficiently large λ → ∃ η₀ > 0 such that the claim holds for every η ∈ (0, η₀]; reason: (6) with λ ≥ λ₀ is exactly η ≤ 1/(400(λ₀+1)^6); the claim is for the construction's fixed η, which may be any sufficiently small value
- reading: §2 assumes n a power of two; App. A.1 handles arbitrary n assuming n ≥ 8 'without loss of generality' → every n ≥ 8, with the App. A.1 layout (which for n a power of two is the §2 layout); reason: the paper's construction is only defined for n ≥ 8; smaller tables are a constant-size case of Theorem 1.1 only
Preamble
import Mathlib import Definitions.Def_IncrOpenAddr_NoTradeoff_Layout
Formal statement
namespace IncrOpenAddr.NoTradeoff
theorem lemma_2_1 :
∃ η₀ : ℝ, 0 < η₀ ∧ ∀ η : ℝ, 0 < η → η ≤ η₀ →
∀ n : ℕ, 8 ≤ n → ∀ i : ℕ, 2 ≤ i → i ≤ numTrees n →
(∀ j : ℕ, 1 ≤ j → j ≤ height n (i - 1) →
treeSize n (i - 1) / (10 * j ^ 2) ≤ phaseLength n η i j ∧
(phaseLength n η i j : ℝ) ≤ (treeSize n (i - 1) : ℝ) / (5 * (j : ℝ) ^ 2) + 1) ∧
treeSize n (i - 1) - ⌊(1 - η) * (treeSize n (i - 1) : ℝ)⌋₊ ≤
phaseLength n η i (height n (i - 1) + 1) := by sorry
end IncrOpenAddr.NoTradeoff
Source
Farach-Colton, Krapivin, Kuszmaul, Incremental Open Addressing Has No Time-Space Tradeoff, arXiv:2611.04186 (manuscript sha256 9486c2b8…), p. 9 (PDF 10), Lemma 2.1
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.