Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Corollary 2: bound for a dual pair of surjective hash families

Open
QAlgorithms.Papers.Independent.Intake100.P31.corollary2

by Gohan · Oct 30, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

Let n≥1n\ge1n≥1, m≤nm\le nm≤n, and let surjective linear families fr:F2n→F2mf_r:\mathbb F_2^n\to\mathbb F_2^mfr​:F2n​→F2m​ and gr:F2n→F2n−mg_r:\mathbb F_2^n\to\mathbb F_2^{n-m}gr​:F2n​→F2n−m​ use the same finite nonempty uniform seed, with ker⁡fr=(ker⁡gr)⊥\ker f_r=(\ker g_r)^\perpkerfr​=(kergr​)⊥ for every seed. If ε≥0\varepsilon\ge0ε≥0 and frf_rfr​ has collision probability at most ε2−m\varepsilon2^{-m}ε2−m on every pair of distinct inputs, then grg_rgr​ has universality parameter

ε′=2(1−2−mε)+(ε−1)2n−m.\varepsilon'=2(1-2^{-m}\varepsilon)+(\varepsilon-1)2^{n-m}.ε′=2(1−2−mε)+(ε−1)2n−m.

Surjectivity fixes the kernel dimensions exactly.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intake100_P31
Formal statement
noncomputable section

namespace QAlgorithms.Papers.Independent.Intake100.P31

open scoped BigOperators Matrix ComplexConjugate

open QAlgorithms

local instance {n : ℕ} (C : BinaryLinearCode n) : Fintype C := Fintype.ofFinite C

/-- PDF p.6, Corollary 2: exact kernel dimensions follow from surjectivity. -/
theorem corollary2 {n m : ℕ} (hn : 0 < n) (hm : m ≤ n)
    {I : Type*} [Fintype I] [Nonempty I]
    (f : I → BinaryBlock n →ₗ[ZMod 2] BinaryBlock m)
    (g : I → BinaryBlock n →ₗ[ZMod 2] BinaryBlock (n - m))
    (hf : ∀ r, Function.Surjective (f r)) (hg : ∀ r, Function.Surjective (g r))
    (hdual : ∀ r, LinearMap.ker (f r) = binDual (LinearMap.ker (g r)))
    (eps : ℝ) (heps : 0 ≤ eps) (hu : HashUniversal f eps) :
    HashUniversal g (2 * (1 - (2 : ℝ) ^ (-(m : ℝ)) * eps) +
      (eps - 1) * (2 : ℝ) ^ (n - m)) := by sorry

end QAlgorithms.Papers.Independent.Intake100.P31

end
Source
Dual universality of hash functions and its applications to quantum cryptography, arXiv:1101.0064v4, PDF p. 6, Corollary 2: bound for a dual pair of surjective hash families
Read-back

What the Lean code literally says, in plain math · gpt-6.1-sol

Let n,mn,mn,m be natural numbers with n>0n>0n>0 and m≤nm\le nm≤n, let III be finite and nonempty, and let fr:F2n→F2mf_r:\mathbb F_2^n\to\mathbb F_2^mfr​:F2n​→F2m​ and gr:F2n→F2n−mg_r:\mathbb F_2^n\to\mathbb F_2^{n-m}gr​:F2n​→F2n−m​ be surjective linear maps for every r∈Ir\in Ir∈I. Assume ker⁡fr=(ker⁡gr)⊥\ker f_r=(\ker g_r)^\perpkerfr​=(kergr​)⊥ for every seed, where orthogonality means that the coordinate dot product in F2\mathbb F_2F2​ vanishes against every vector of the subspace. Let ε≥0\varepsilon\ge0ε≥0 be real and assume, for every distinct a,b∈F2na,b\in\mathbb F_2^na,b∈F2n​, that the uniform seed probability satisfies Pr⁡r[fr(a)=fr(b)]≤ε/2m\Pr_r[f_r(a)=f_r(b)]\le\varepsilon/2^mPrr​[fr​(a)=fr​(b)]≤ε/2m. Then every such pair satisfies

Pr⁡r[gr(a)=gr(b)]≤2(1−2−mε)+(ε−1)2n−m2n−m.\Pr_r[g_r(a)=g_r(b)] \le \frac{2(1-2^{-m}\varepsilon)+(\varepsilon-1)2^{n-m}}{2^{n-m}}.rPr​[gr​(a)=gr​(b)]≤2n−m2(1−2−mε)+(ε−1)2n−m​.

The cases m=0m=0m=0 and m=nm=nm=n are included; no upper bound on ε\varepsilonε is assumed.

Human review
  • Endorsed by Shuze Chen · Oct 31, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 31, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me