Exercise 4.4.3(a) — Quadratic form on a net
ProvedHighDimProb.RandomMatrices.quadratic_form_on_netThis 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 can be bounded using these nets") to turn the union bound over the (infinite) unit spheres into a union bound over finite sets.
Let be an matrix and . For any ε-net of the
sphere and any ε-net of the sphere
(companion definition IsEpsNet),
where is the operator norm (companion definition matrixOpNorm) and
is the Euclidean inner product.
Formalization Note are required positive so that the unit spheres ,
are nonempty, which (together with the ε-net hypotheses) makes and
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. is inner ℝ (Matrix.toEuclideanLin A x) y.
import Mathlib import Definitions.Def_HighDimProb_RandomMatrices_IsEpsNet import Definitions.Def_HighDimProb_RandomMatrices_matrixOpNorm
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
Read-back
What the Lean code literally says, in plain math · claude-opus-5
Let be natural numbers with and , and let be an matrix with real entries, indexed by . Let be a real number with . Let be a subset of equipped with the Euclidean inner-product structure, and let be a subset of with the same structure. The hypotheses assert that is an -net of the unit sphere (the metric sphere of radius about the origin), and that is an -net of the unit sphere , where "-net" is the notion supplied by the imported predicate and is not unfolded here; nothing in this statement constrains or to be subsets of the respective spheres, nor to be finite, beyond whatever itself imposes. Likewise, below denotes the quantity supplied by the imported function applied to ; 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
the set of all real numbers obtained by taking the Euclidean inner product of with as ranges over and ranges over ; here means the image of under the linear map determined by (so ), and is the standard real Euclidean inner product on . The conclusion is the conjunction of two inequalities:
Both are non-strict (). The second is a product of the scalar with , in that order; since the denominator is strictly positive, so this scalar is a genuine positive real and no division by zero occurs. The supremum is the least upper bound of 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 and are present but are not used to rule out emptiness of or : if either or is empty, then the image set is empty, and the supremum of the empty subset of is the default value ; in that case the two inequalities read and , i.e. the statement asserts . Similarly, if is nonempty but not bounded above — which nothing in the statement excludes, since and are arbitrary sets satisfying and are not required to lie on the spheres or to be bounded — then is again the default value , and the conclusion again forces while asserting . At the endpoint , permitted by , the factor equals and the two inequalities together assert . If is the zero matrix, whenever and are both nonempty, and the claim reduces to . The hypotheses and could in principle be unsatisfiable for some in the permitted range, in which case the statement would hold vacuously for that ; nothing visible here settles whether that occurs.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.