Unbalanced Naor–Reingold Feistel blocks and Arbitman–Naor–Segev sharding #
This module constructs unbalanced 3-round Feistel Naor–Reingold blocks and t-round compositions on
Fin (2 ^ a') ([NR99], Sections 3.2, 5.2, 6, and 8), combines them with the
Arbitman–Naor–Segev 1-round Feistel shard router (caseBEquiv, [ANS10], Section 5.2
construction for intra-shard injectivity and Section 5.4 Claim 5.7 for bin load bounds), and proves
abstract k-tuple statistical-distance contraction and intra-shard suffix bijectivity for
CslibFrontier.DataStructure.Dictionary.KickTree.QuotientPerm.
Main definitions #
Cslib.DataStructure.Dictionary.KickTree.nrHalfLow,Cslib.DataStructure.Dictionary.KickTree.nrHalfHigh,Cslib.DataStructure.Dictionary.KickTree.nrSplitEquiv,Cslib.DataStructure.Dictionary.KickTree.NRBlockFuncs,Cslib.DataStructure.Dictionary.KickTree.nrBlockEquiv,Cslib.DataStructure.Dictionary.KickTree.nrComposedEquiv,Cslib.DataStructure.Dictionary.KickTree.NRBlockSeed,Cslib.DataStructure.Dictionary.KickTree.nrBlockSeedDist,Cslib.DataStructure.Dictionary.KickTree.NRComposedSeed,Cslib.DataStructure.Dictionary.KickTree.nrComposedSeedDist: unbalanced 3-round Feistel Naor–Reingold blocks and composed permutation laws.Cslib.DataStructure.Dictionary.KickTree.CaseBRounds,Cslib.DataStructure.Dictionary.KickTree.caseBEquiv,Cslib.DataStructure.Dictionary.KickTree.bucketShard,Cslib.DataStructure.Dictionary.KickTree.bucketLocal,Cslib.DataStructure.Dictionary.KickTree.keySuffix,Cslib.DataStructure.Dictionary.KickTree.caseBShard,Cslib.DataStructure.Dictionary.KickTree.intraShardSuffixSet: Case B sharded bijection and intra-shard suffix preimage.
Main results #
Cslib.DataStructure.Dictionary.KickTree.dist_permTupleKernel_nrBlock_le,Cslib.DataStructure.Dictionary.KickTree.dist_permTupleKernel_nrComposed_le: single-block andt-composed Naor–Reingoldk-tuple statistical-distance bounds.Cslib.DataStructure.Dictionary.KickTree.injOn_yR_of_caseBShard_eq,Cslib.DataStructure.Dictionary.KickTree.dist_caseB_shardTuple_le: intra-shard suffix injectivity and abstract Case B shard-tuple statistical-distance transfer.
References #
Section 1: Single-block Naor–Reingold Feistel permutations #
Low-half bit-width ⌊a' / 2⌋ of an unbalanced Naor–Reingold block on Fin (2 ^ a').
High-half bit-width a' - ⌊a' / 2⌋ = ⌈a' / 2⌉ of an unbalanced Naor–Reingold block.
Reversing f₀ and f₂ in an NRBlockFuncs inverts the 3-round Feistel block.
Pair-domain 3-round Feistel Naor–Reingold permutation.
Flat 3-round Feistel Naor–Reingold permutation on Fin (2 ^ a').
Composition of t Naor–Reingold blocks on Fin (2 ^ a') in index order 0, 1, …, t - 1.
Seed triple (s₀, s₁, s₂) for one Naor–Reingold block over seed spaces ι₀, ι₁, ι₂.
- s₀ : ι₀
Pre-whitening round seed.
- s₁ : ι₁
Middle round seed.
- s₂ : ι₂
Final round seed.
Instances For
Equivalence between NRBlockSeed ι₀ ι₁ ι₂ and ι₀ × ι₁ × ι₂.
Random Naor–Reingold block on Fin (2 ^ a') induced by uniform independent seeds in
NRBlockSeed ι₀ ι₁ ι₂.
Single-block Naor–Reingold k-tuple statistical-distance bound ([NR99],
Section 3.2 Definition 3.1, Section 5.2, Section 6 Definition 6.1, and Section 8 Corollary 8.1,
printed pp. 38, 49–50, 52, 60–61 / PDF pp. 10, 21–22, 24, 32–33).
Per Definition 2.10 item 2 of [NR99], the uniform embedding distribution
PMF.uniformOfFintype (T ↪ Fin (2 ^ a')) models the uniform distribution on tuples of distinct
elements, and this theorem bounds distinguishing advantage from that ideal distribution.
Section 2: Composed Naor–Reingold blocks and Case B sharded bijection #
Seed tuple Fin t → NRBlockSeed ι₀ ι₁ ι₂ for t independent Naor–Reingold blocks.
- blocks : Fin t → NRBlockSeed ι₀ ι₁ ι₂
Per-round block seeds.
Instances For
Equivalence between NRComposedSeed t ι₀ ι₁ ι₂ and Fin t → NRBlockSeed ι₀ ι₁ ι₂.
Random t-composed Naor–Reingold permutation on Fin (2 ^ a') under a uniform
NRComposedSeed.
t-composed Naor–Reingold k-tuple statistical-distance contraction: composing t ≥ 1
independent 3-round Feistel Naor–Reingold blocks with 2-wise independent h₀ and k-wise
independent h₁, h₂ achieves statistical distance at most
(1 / 2) * (3 * k ^ 2 / 2 ^ ⌊a' / 2⌋) ^ t from uniform on T ↪ Fin (2 ^ a').
Shard-index bit-width ⌊m / 2⌋ for Arbitman–Naor–Segev 1-round Feistel sharding in Case B.
Intra-shard local bucket bit-width m - shardBits m = ⌈m / 2⌉ in Case B.
Right-coordinate suffix bit-width a' = a - ⌊m / 2⌋ permuted by Naor–Reingold in Case B.
Round-function bundle for Case B: 1-round Feistel shard router fShard plus t composed
3-round Feistel Naor–Reingold blocks on Fin (2 ^ suffixBits a m).
tNaor–Reingold 3-round Feistel blocks onFin (2 ^ a').
Split Fin (2 ^ suffixBits a m) ≃ Fin (2 ^ localBucketBits m) × Fin (2 ^ (a - m)).
Case B bijection (u : Fin (2 ^ a)) ≃ Fin (2 ^ m) × Fin (2 ^ (a - m)):
1-round Feistel shard σ = x_L ^^^ fShard y_R followed by t-round Naor–Reingold permutation
z = nrComposedEquiv a' t nrBlocks y_R split into (localBucket, quot).
Local intra-shard bucket Fin (2 ^ localBucketBits m) extracted from b : Fin (2 ^ m).
Right-coordinate suffix y_R : Fin (2 ^ suffixBits a m) of u : Fin (2 ^ a).
Shard σ(u) = x_L ^^^ fShard y_R assigned to u by caseBEquiv.
Deterministic shard collision-freedom ([ANS10], arXiv:0912.5424v3,
Section 5.2 construction, PDF pp. 21–23 / printed pp. 20–22): for every CaseBRounds r and shard
σ : Fin (2 ^ shardBits m), the suffix projection keySuffix hma (y_R) is strictly injective on
all keys routed into shard σ. (Section 5.4 Claim 5.7 provides bin load bounds for this
construction.)
Abstract Case B shard-tuple statistical-distance transfer: on any T : Finset (Fin (2 ^ a))
with #T ≤ κ and yEmb : T ↪ Fin (2 ^ suffixBits a m), under a (1 - δ_top)-good top seed
τ ∈ GoodTop, the joint distribution of (shard(u), nrPerm(y_R u), aux(u))_{u ∈ T} is within
δ_top + (1 / 2) * (3 * κ ^ 2 / 2 ^ ⌊a' / 2⌋) ^ t of Uniform × UniformInj × Uniform.
Suffix-space preimage (B.image (bucketLocal m) ×ˢ univ) of an intra-shard bucket set B.