Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Exercise 4.4.3(a) — Quadratic form on a net

Proved
HighDimProb.RandomMatrices.quadratic_form_on_net

by mikedeng1 · Sep 19, 2026 · Mathlib 0df444a (Lean v4.33.1)

covering-numbersmetric-geometryoperator-normprobability

This is Exercise 4.4.3(a): the reduction of the operator norm to a supremum over a pair of finite nets, which the goal theorem's proof invokes directly ("By Exercise 4.4.3, the operator norm of AAA can be bounded using these nets") to turn the union bound over the (infinite) unit spheres into a union bound over finite sets.

Let AAA be an m×nm \times nm×n matrix and ε∈[0,1/2)\varepsilon \in [0, 1/2)ε∈[0,1/2). For any ε-net NNN of the sphere Sn−1⊂RnS^{n-1} \subset \mathbb R^nSn−1⊂Rn and any ε-net MMM of the sphere Sm−1⊂RmS^{m-1} \subset \mathbb R^mSm−1⊂Rm (companion definition IsEpsNet),

sup⁡x∈N, y∈M⟨Ax,y⟩  ≤  ∥A∥  ≤  11−2ε sup⁡x∈N, y∈M⟨Ax,y⟩,\sup_{x \in N,\, y \in M} \langle Ax, y\rangle \;\le\; \|A\| \;\le\; \frac{1}{1 - 2\varepsilon}\, \sup_{x \in N,\, y \in M} \langle Ax, y\rangle,x∈N,y∈Msup​⟨Ax,y⟩≤∥A∥≤1−2ε1​x∈N,y∈Msup​⟨Ax,y⟩,

where ∥A∥\|A\|∥A∥ is the operator norm (companion definition matrixOpNorm) and ⟨⋅,⋅⟩\langle \cdot,\cdot\rangle⟨⋅,⋅⟩ is the Euclidean inner product.

Formalization Note m,nm, nm,n are required positive so that the unit spheres Sn−1S^{n-1}Sn−1, Sm−1S^{m-1}Sm−1 are nonempty, which (together with the ε-net hypotheses) makes NNN and MMM nonempty and the supremum on the right a supremum of a nonempty, bounded set — avoiding the real sSup/sInf junk-value convention (Mathlib's sSup ∅ = 0) from silently altering the statement's content. ⟨Ax,y⟩\langle Ax, y \rangle⟨Ax,y⟩ is inner ℝ (Matrix.toEuclideanLin A x) y.

Preamble
import Mathlib
import Definitions.Def_HighDimProb_RandomMatrices_IsEpsNet
import Definitions.Def_HighDimProb_RandomMatrices_matrixOpNorm
Formal statement
namespace HighDimProb.RandomMatrices

/-- **Exercise 4.4.3(a)** (Quadratic form on a net), Vershynin, *High-Dimensional Probability*
(2018), p. 90.

Let `A` be an `m × n` matrix and `ε ∈ [0, 1/2)`. Then for any `ε`-net `N` of the sphere
`Sⁿ⁻¹` and any `ε`-net `M` of the sphere `Sᵐ⁻¹`,
`sup_{x ∈ N, y ∈ M} ⟨Ax, y⟩ ≤ ‖A‖ ≤ (1/(1-2ε)) sup_{x ∈ N, y ∈ M} ⟨Ax, y⟩`. -/
theorem quadratic_form_on_net {m n : ℕ} (hn : 0 < n) (hm : 0 < m)
    (A : Matrix (Fin m) (Fin n) ℝ) (ε : ℝ) (hε0 : 0 ≤ ε) (hε : ε < 1 / 2)
    (N : Set (EuclideanSpace ℝ (Fin n)))
    (hN : IsEpsNet (Metric.sphere (0 : EuclideanSpace ℝ (Fin n)) 1) N ε)
    (M : Set (EuclideanSpace ℝ (Fin m)))
    (hM : IsEpsNet (Metric.sphere (0 : EuclideanSpace ℝ (Fin m)) 1) M ε) :
    sSup (Set.image2 (fun x y => inner ℝ (Matrix.toEuclideanLin A x) y) N M)
        ≤ matrixOpNorm A ∧
    matrixOpNorm A ≤ (1 / (1 - 2 * ε)) *
        sSup (Set.image2 (fun x y => inner ℝ (Matrix.toEuclideanLin A x) y) N M) := by sorry

end HighDimProb.RandomMatrices
Source
Vershynin, High-Dimensional Probability (2018), Exercise 4.4.3(a), p. 90 (PDF p. 98)
Read-back

What the Lean code literally says, in plain math · claude-opus-5

Let m,nm, nm,n be natural numbers with m>0m > 0m>0 and n>0n > 0n>0, and let AAA be an m×nm \times nm×n matrix with real entries, indexed by {0,…,m−1}×{0,…,n−1}\{0, \dots, m-1\} \times \{0, \dots, n-1\}{0,…,m−1}×{0,…,n−1}. Let ε\varepsilonε be a real number with 0≤ε<120 \le \varepsilon < \tfrac{1}{2}0≤ε<21​. Let NNN be a subset of Rn\mathbb{R}^nRn equipped with the Euclidean inner-product structure, and let MMM be a subset of Rm\mathbb{R}^mRm with the same structure. The hypotheses assert that NNN is an ε\varepsilonε-net of the unit sphere Sn−1={x∈Rn:∥x−0∥=1}S^{n-1} = \{x \in \mathbb{R}^n : \|x - 0\| = 1\}Sn−1={x∈Rn:∥x−0∥=1} (the metric sphere of radius 111 about the origin), and that MMM is an ε\varepsilonε-net of the unit sphere Sm−1={y∈Rm:∥y∥=1}S^{m-1} = \{y \in \mathbb{R}^m : \|y\| = 1\}Sm−1={y∈Rm:∥y∥=1}, where "ε\varepsilonε-net" is the notion supplied by the imported predicate IsEpsNet\mathrm{IsEpsNet}IsEpsNet and is not unfolded here; nothing in this statement constrains NNN or MMM to be subsets of the respective spheres, nor to be finite, beyond whatever IsEpsNet\mathrm{IsEpsNet}IsEpsNet itself imposes. Likewise, ∥A∥\|A\|∥A∥ below denotes the quantity supplied by the imported function matrixOpNorm\mathrm{matrixOpNorm}matrixOpNorm applied to AAA; its definition is not visible in this statement, so the claim is about that quantity whatever it is, not about any independently specified operator norm.

Write

S  =  { ⟨Ax, y⟩  :  x∈N, y∈M }⊆R,S \;=\; \bigl\{\, \langle Ax,\ y\rangle \;:\; x \in N,\ y \in M \,\bigr\} \subseteq \mathbb{R},S={⟨Ax, y⟩:x∈N, y∈M}⊆R,

the set of all real numbers obtained by taking the Euclidean inner product of AxAxAx with yyy as xxx ranges over NNN and yyy ranges over MMM; here AxAxAx means the image of xxx under the linear map Rn→Rm\mathbb{R}^n \to \mathbb{R}^mRn→Rm determined by AAA (so (Ax)i=∑jAi,jxj(Ax)_i = \sum_j A_{i,j} x_j(Ax)i​=∑j​Ai,j​xj​), and ⟨⋅,⋅⟩\langle \cdot, \cdot \rangle⟨⋅,⋅⟩ is the standard real Euclidean inner product on Rm\mathbb{R}^mRm. The conclusion is the conjunction of two inequalities:

sup⁡S  ≤  ∥A∥and∥A∥  ≤  11−2ε ⋅ sup⁡S.\sup S \;\le\; \|A\| \qquad\text{and}\qquad \|A\| \;\le\; \frac{1}{1 - 2\varepsilon}\,\cdot\, \sup S .supS≤∥A∥and∥A∥≤1−2ε1​⋅supS.

Both are non-strict (≤\le≤). The second is a product of the scalar 11−2ε\frac{1}{1-2\varepsilon}1−2ε1​ with sup⁡S\sup SsupS, in that order; since ε<12\varepsilon < \tfrac12ε<21​ the denominator 1−2ε1 - 2\varepsilon1−2ε is strictly positive, so this scalar is a genuine positive real and no division by zero occurs. The supremum sup⁡S\sup SsupS is the least upper bound of SSS as a subset of the real numbers, taken in the classical (total) sense described below.

Regarding the degenerate cases the hypotheses permit. The dimension hypotheses 0<n0 < n0<n and 0<m0 < m0<m are present but are not used to rule out emptiness of NNN or MMM: if either NNN or MMM is empty, then the image set SSS is empty, and the supremum of the empty subset of R\mathbb{R}R is the default value 000; in that case the two inequalities read 0≤∥A∥0 \le \|A\|0≤∥A∥ and ∥A∥≤11−2ε⋅0=0\|A\| \le \frac{1}{1-2\varepsilon} \cdot 0 = 0∥A∥≤1−2ε1​⋅0=0, i.e. the statement asserts ∥A∥=0\|A\| = 0∥A∥=0. Similarly, if SSS is nonempty but not bounded above — which nothing in the statement excludes, since NNN and MMM are arbitrary sets satisfying IsEpsNet\mathrm{IsEpsNet}IsEpsNet and are not required to lie on the spheres or to be bounded — then sup⁡S\sup SsupS is again the default value 000, and the conclusion again forces ∥A∥≤0\|A\| \le 0∥A∥≤0 while asserting 0≤∥A∥0 \le \|A\|0≤∥A∥. At the endpoint ε=0\varepsilon = 0ε=0, permitted by 0≤ε0 \le \varepsilon0≤ε, the factor 11−2ε\frac{1}{1-2\varepsilon}1−2ε1​ equals 111 and the two inequalities together assert ∥A∥=sup⁡S\|A\| = \sup S∥A∥=supS. If AAA is the zero matrix, S={0}S = \{0\}S={0} whenever NNN and MMM are both nonempty, and the claim reduces to 0≤∥A∥≤00 \le \|A\| \le 00≤∥A∥≤0. The hypotheses IsEpsNet(Sn−1,N,ε)\mathrm{IsEpsNet}(S^{n-1}, N, \varepsilon)IsEpsNet(Sn−1,N,ε) and IsEpsNet(Sm−1,M,ε)\mathrm{IsEpsNet}(S^{m-1}, M, \varepsilon)IsEpsNet(Sm−1,M,ε) could in principle be unsatisfiable for some ε\varepsilonε in the permitted range, in which case the statement would hold vacuously for that ε\varepsilonε; nothing visible here settles whether that occurs.

Human review
  • Endorsed by Shuze Chen · Sep 28, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Sep 28, 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