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):
- Concrete parameter schedule (
ampSlack,ampReps,ampGridCount,ampShrinkLen): from anyAdversaryInaccessibleEntropyFamily$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. - 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 widthinLen n, output widthoutLen n, and shrinkageshrinkLen n ≥ 1withoutLen n + shrinkLen n = inLen nandn + 1 ≤ outLen n. - Adversary-dependent collision-resistant candidate on random inputs
(
AdversaryInaccessibleEntropyFamily.exists_shrinkingCollisionGrid_log,AdversaryInaccessibleEntropyFamily.exists_shrinkingCollisionGrid,InaccessibleEntropyFamily.exists_shrinkingCollisionGrid,OneWay.exists_shrinkingCollisionGrid): because neithershrunkHashEscapeInverternorrepEscapeInverterreads the candidate index, each uniform strict-PPT adversaryBagainst 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 againstB. Target shifts, Shoup-masked cascades, and $\kappa(n)$-way concatenation for target collision resistance and Rompel's signature theorem build onShrinkingCollisionGridinCslibFrontier.Crypto.Computational.InaccessibleEntropy.TargetCollisionandCslibFrontier.Crypto.Computational.Rompel.
Main definitions #
Cslib.Crypto.ampSlack,Cslib.Crypto.ampReps,Cslib.Crypto.ampGridCount,Cslib.Crypto.ampShrinkLen: pure-ℕamplification, shrinkage, and grid-size schedule for anAdversaryInaccessibleEntropyFamily.Cslib.Crypto.ShrinkingCollisionGrid: uniform polynomial-time grid of shrinking candidates (shrinkLen n ≥ 1) admitting an adversary-dependent collision-resistant candidate sequence on random inputs.Cslib.Crypto.AdversaryInaccessibleEntropyFamily.exists_shrinkingCollisionGrid_log:log n-bit shrinking grid witness (shrinkLen n = Nat.log 2 n + 1).
Main results #
Cslib.Crypto.AdversaryInaccessibleEntropyFamily.exists_shrinkingCollisionGrid_log,Cslib.Crypto.InaccessibleEntropyFamily.exists_shrinkingCollisionGrid_log,Cslib.Crypto.OneWay.exists_shrinkingCollisionGrid_log: STEPS 1–3 of Theorem 5.1 from Definition 3.9, fixedInaccessibleEntropyFamily, andOneWaywithshrinkLen n = Nat.log 2 n + 1.Cslib.Crypto.AdversaryInaccessibleEntropyFamily.exists_shrinkingCollisionGrid,Cslib.Crypto.InaccessibleEntropyFamily.exists_shrinkingCollisionGrid,Cslib.Crypto.OneWay.exists_shrinkingCollisionGrid:Nonempty ShrinkingCollisionGrid(1 ≤ shrinkLen n) corollaries.
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 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).
Input bit width $N_3(n)$ shared by all candidates at security parameter $n$.
Output bit width $M_3(n) = N_3(n) - \mathrm{shrinkLen}(n)$ shared by all candidates.
Per-evaluation bit shrinkage $s(n) \ge 1$ shared by all candidates.
Polynomially bounded number of candidate indices $\kappa(n) \ge 1$.
Uniform word-level evaluator
(n, q, raw) ↦ evalGrid n q raw.- polyTime_inLen : Turing.MultiTapeTM.ComputableInPolyTime self.inLen Turing.MultiTapeTM.encUnary Turing.MultiTapeTM.encUnary
Plain polynomial-time unary input-length certificate.
- polyTime_outLen : Turing.MultiTapeTM.ComputableInPolyTime self.outLen Turing.MultiTapeTM.encUnary Turing.MultiTapeTM.encUnary
Plain polynomial-time unary output-length certificate.
- polyTime_shrinkLen : Turing.MultiTapeTM.ComputableInPolyTime self.shrinkLen Turing.MultiTapeTM.encUnary Turing.MultiTapeTM.encUnary
Plain polynomial-time unary shrinkage-width certificate.
- polyTime_gridCount : Turing.MultiTapeTM.ComputableInPolyTime self.gridCount Turing.MultiTapeTM.encUnary Turing.MultiTapeTM.encUnary
Plain polynomial-time unary grid-count certificate.
- polyTime_evalGrid : Turing.MultiTapeTM.ComputableInPolyTime (fun (x : ℕ × ℕ × List Bool) => match x with | (n, q, raw) => self.evalGrid n q raw) (Turing.MultiTapeTM.encPair Turing.MultiTapeTM.encUnary (Turing.MultiTapeTM.encPair Turing.MultiTapeTM.encUnary Turing.MultiTapeTM.encBits)) Turing.MultiTapeTM.encBits
Plain polynomial-time uniform grid-evaluation certificate.
Nonempty candidate range at every security parameter.
Strict positive shrinkage (
≥ 1bit) at every security parameter.Nontrivial output length growing with the security parameter.
Exact
shrinkLen n-bit shrinkage at every security parameter.Exact output length
outLen nfor every candidate and raw word.- exists_good_candidate (B : ℕ → List Bool → ProbComp (List Bool)) : Probability.IsPPT Turing.MultiTapeTM.encBits B → ∃ (goodIdx : ℕ → ℕ), (∀ (n : ℕ), goodIdx n < self.gridCount n) ∧ Negligible fun (n : ℕ) => Game.succProbability (randomCollisionGame (fun (k : ℕ) => self.evalGrid k (goodIdx k)) self.inLen B n).eval
Every uniform strict-PPT adversary
Badmits an in-range candidate sequencegoodIdxthat is collision-resistant on random inputs againstB.
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.
Specialization of AdversaryInaccessibleEntropyFamily.exists_shrinkingCollisionGrid_log to a
fixed InaccessibleEntropyFamily, preserving G.shrinkLen n = Nat.log 2 n + 1.
[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.
Nonempty ShrinkingCollisionGrid (1 ≤ shrinkLen n) corollary of
AdversaryInaccessibleEntropyFamily.exists_shrinkingCollisionGrid_log, forgetting the explicit
Nat.log 2 n + 1 shrinkage equation.
Nonempty ShrinkingCollisionGrid (1 ≤ shrinkLen n) specialization of
AdversaryInaccessibleEntropyFamily.exists_shrinkingCollisionGrid to a fixed
InaccessibleEntropyFamily.
Nonempty ShrinkingCollisionGrid (1 ≤ shrinkLen n) corollary of
OneWay.exists_shrinkingCollisionGrid_log, forgetting the explicit Nat.log 2 n + 1 shrinkage
equation.