Formally Verified Discrepancy Bounds for Balanced Bucket Permutations and Permutation-Based Consistent Hashing
We establish and formally verify five structural theorems on load balancing in permutation-based consistent hashing (MathOverflow Question 110769), where each of m items ranks n buckets and selects the first live bucket in an arbitrary nonempty subset S. Finite obstructions for 32 buckets: For m = 1024 rows on 32 buckets, (i) a Popoviciu variance bound coupled with a p = 2/3 biased level-2 Walsh-Fourier Bessel inequality forces an item-load gap strictly greater than 2 (at least 3 items), and (ii) a 0/1/2/3-deletion finite counting argument forces a gap strictly greater than 1 after at most three bucket failures (37 ≤ winSet ≤ 36). For m = 840 rows on 32 buckets, linear dependence of 4,495 = C(31,3) triple-indicator vectors in R^840 and a pure polynomial Beta-integral positivity identity (∫_0^1 x^3(1-x)^3 dx = 1/140) force a gap > 1 on some live subset of size 4 to 7. Asymptotic lower bound and exact constructions: For 2b+1 buckets and 2m ≤ C(b,t) rows, a spectrum-free Gram-matrix Frobenius/Cauchy-Schwarz rank bound proves g ≥ c_t √m / (4 · 4^t) where c_t = 2^t (t!)^2 / (2t+1)!, ruling out bounded discrepancy for any polynomially growing number of rows. Complementarily, a deterministic builder characterizes all feasible (n, m, g) triples, and two opposite linear orderings achieve gap 1 for every n. Verification: Complete 2,843-line Lean 4.33.1 + Mathlib proof checked strictly inside the Lean kernel (zero sorry, zero axiom, zero native_decide; standard axioms propext, Classical.choice, Quot.sound) accompanied by an independent stdlib-only Python verifier checking all exact rational bounds, Beta integrals, and exhaustive subset cases. Verification, Scope Audit & AI Assistance Disclosure Catalog Tier: Tier 1 — Selected Highlight (Litang Academic Club Curated Archive) (Curated Index · llms.txt) Frozen Third-Party Statement: lean/OMAStatements/S_mo_110769.lean (authored by @strickvl in lefttosolve2/open-math-agents; SHA-256 422bf50939ae82ad…, Git blob SHA-1 32c0b673f832296c…) Scope & Deviations Audit: Matches the 5-part formalized benchmark specification OMA.S_mo_110769.main (combining finite-bucket obstructions at n=32, m=840/1024 with a general asymptotic lower bound in m and t). Does not claim a single universal closed-form optimal constant for all (n,m) beyond those 5 formalized clauses. (Full audit: DEVIATIONS.md) Live Lean 4.33.1 Kernel CI: Continuously typechecked on GitHub-hosted Ubuntu runners against the frozen target statement (runtime audit nonce, zero sorry/axiom/native_decide/metaprogramming tokens, standard axioms propext/Classical.choice/Quot.sound only): lean-verify.yml AI Assistance & Publication Disclosure: Problem exploration, proof decomposition, Lean 4 formalization, and manuscript drafting involved AI/LLM workflows under human curation and verification. Mathematical correctness does not rely on any LLM output and rests strictly on Lean 4.33.1 kernel verification and the independent zero-dependency Python verifier. This open-access Zenodo preprint has not yet undergone traditional journal peer review; linked upstream benchmark PRs on lefttosolve2/open-math-agents are currently open pending maintainer review and cited solely as timestamped provenance.
Authors
- YAN SANG (ORCID: https://orcid.org/0009-0001-8935-8572)
- hanhai bei (ORCID: https://orcid.org/0009-0002-3372-995X)
- litangking (ORCID: https://orcid.org/0009-0004-8721-354X)
- 12gg (ORCID: https://orcid.org/0009-0001-2046-7703)
- JKLORI (ORCID: https://orcid.org/0009-0003-8860-3972)
- yv bian (ORCID: https://orcid.org/0009-0002-6149-1264)
- freeman (ORCID: https://orcid.org/0009-0004-0913-7297)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-12-03
- DOI
- https://doi.org/10.5281/zenodo.24770128
- Primary Topic
- Mathematical Approximation and Integration
- Type
- preprint