Documentation

CslibFrontier.Crypto.Computational.InaccessibleEntropy.Amplify

Gap amplification and candidate grid for logarithmic-bit shrinking collision resistance #

Combining parallel repetition (Repetition.lean, Lemma 5.3), two-universal input hashing, and $(\lfloor \log_2 n \rfloor + 1)$-bit shrinking output hashing (EntropyReduction.lean, Lemmas 5.4 and 5.5), this module formalizes STEPS 1–3 of [HHRVW2020], Section 5.1.5, Proof of Theorem 5.1 (pp. 30–31):

  1. Concrete parameter schedule (ampSlack, ampReps, ampGridCount, ampShrinkLen): from any AdversaryInaccessibleEntropyFamily $F$ ([HHRVW2020], Definition 3.9, p. 15) with input width $n_0(n)$ and gap denominator $D(n) \ge 1$, set $$\Delta(n) = 3 (n + 2) D(n) (n_0(n) + 1)^2, \qquad t(n) = 6 D(n) \Delta(n), \qquad \kappa(n) = 6 D(n) (n_0(n) + 1) + 3,$$ and logarithmic output shrinkage $s(n) = \lfloor \log_2 n \rfloor + 1$ (ampShrinkLen n). None of these schedules or evaluators mention any accessible-set family. At security parameters $n \ge N_0$ where $H(Z \mid F_0(Z)) - \mathbb{E}[\log_2 |L_A(Z)|] \ge 1 / D(n)$, repeating $t(n)$ times amplifies the expected entropy gap to at least $6 \Delta(n)$, while the Hoeffding exponent $2 \Delta(n)^2 / (t(n) \cdot n_0(n)^2)$ exceeds $n + 2$, and the output-hash factor $2^{s(n)} \le 2(n + 1)$ leaves total error $(4 n + 6) \cdot 2^{-n}$ negligible.
  2. Uniform polynomial-time candidate grid (ShrinkingCollisionGrid): because the real entropy $k_0(n) = H(Z \mid F_0(Z))$ need not be efficiently computable and the accessible-set family $L_A$ may depend on the collision-finder, the grid exposes $\kappa(n)$ uniformly polynomial-time candidates $F_3^{(q \cdot \Delta(n))}$ ($0 \le q < \kappa(n)$), all sharing the same input width inLen n, output width outLen n, and shrinkage shrinkLen n ≥ 1 with outLen n + shrinkLen n = inLen n and n + 1 ≤ outLen n.
  3. Adversary-dependent collision-resistant candidate on random inputs (AdversaryInaccessibleEntropyFamily.exists_shrinkingCollisionGrid_log, AdversaryInaccessibleEntropyFamily.exists_shrinkingCollisionGrid, InaccessibleEntropyFamily.exists_shrinkingCollisionGrid, OneWay.exists_shrinkingCollisionGrid): because neither shrunkHashEscapeInverter nor repEscapeInverter reads the candidate index, each uniform strict-PPT adversary B against the grid induces a single uniform strict-PPT adversary $A_0(B)$ against $F_0$; applying Definition 3.9 to $A_0(B)$ yields a witnessing family $L_{A_0(B)}$ whose mean $a_0(n)$ places $q^*_B(n) = \lfloor t(n) a_0(n) / \Delta(n) \rfloor_+ + 3 < \kappa(n)$ inside $[t a_0 + 2 \Delta, t k_0 - 3 \Delta]$, making candidate $q^*_B(n)$ collision-resistant on random inputs against B. Target shifts, Shoup-masked cascades, and $\kappa(n)$-way concatenation for target collision resistance and Rompel's signature theorem build on ShrinkingCollisionGrid in CslibFrontier.Crypto.Computational.InaccessibleEntropy.TargetCollision and CslibFrontier.Crypto.Computational.Rompel.

Main definitions #

Main results #

References #

Amplification parameter schedule and candidate-grid interface #

Concentration and hash-truncation slack $\Delta(n) = 3 (n + 2) D(n) (n_0(n) + 1)^2$ ([HHRVW2020], Section 5.1.5, STEP 1, p. 30).

Parallel repetition count $t(n) = 6 D(n) \Delta(n)$ ([HHRVW2020], Section 5.1.5, STEP 1, p. 30).

Number of candidate truncation indices $\kappa(n) = 6 D(n) (n_0(n) + 1) + 3$ ([HHRVW2020], Section 5.1.5, STEP 5, p. 31).

Logarithmic output shrinkage $\lfloor \log_2 n \rfloor + 1$ bits ([HHRVW2020], Section 5.1.3, Lemma 5.5, p. 29, and Section 5.1.5, STEP 3, p. 31). Reuses rompelTruncWidth.

Effective repeated input bit width: equals ampReps F n * F.inLen n whenever 1 ≤ F.inLen n (in particular for all n ≥ N₀), with a fallback n + 2 when F.inLen n = 0 so nontrivial shrinkage holds unconditionally at every n : ℕ.

Effective repeated output bit width matching ampRepInLen.

Effective repeated word evaluator matching ampRepInLen and ampRepOutLen.

A uniform polynomial-time candidate grid of shrinking hash functions $F_3^{(n, q)} : \{0, 1\}^{\mathrm{inLen}(n)} \to \{0, 1\}^{\mathrm{outLen}(n)}$ ($0 \le q < \mathrm{gridCount}(n)$) with shrinkage shrinkLen n ≥ 1 such that every uniform strict-PPT adversary B has an in-range candidate sequence goodIdx (which may depend on B) that is collision-resistant on random inputs against B ([HHRVW2020], Section 5.1.5, STEPS 1–3 and STEP 5, pp. 30–31).

Polynomial-time certificates and dimension bounds #

Main grid theorem: STEPS 1–3 of Theorem 5.1 #

[HHRVW2020], Section 5.1.5, Proof of Theorem 5.1, STEPS 1–3 (pp. 30–31) from Definition 3.9: every AdversaryInaccessibleEntropyFamily yields a uniform polynomial-time ShrinkingCollisionGrid of strictly (Nat.log 2 n + 1)-bit shrinking hash candidates.

[HHRVW2020], Section 4.2, Theorem 4.5 (p. 21) composed with Section 5.1.5, Theorem 5.1, STEPS 1–3 (pp. 30–31): every uniform OneWay function yields a uniform polynomial-time ShrinkingCollisionGrid with G.shrinkLen n = Nat.log 2 n + 1.