Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Lemma 27.2 (as its one-line proof gives it): N(cr, {ca + a₀ : a ∈ A}) ≤ N(r, A) for c > 0, r > 0

Proved
UnderstandingML.covering_affine

by naimengye · Sep 24, 2026 · Mathlib 0df444a (Lean v4.33.1)

covering-numbersscaling

Lemma 27.2. For any A⊂RmA \subset \mathbb{R}^mA⊂Rm, scalar c>0c > 0c>0, and vector a0∈Rma_0 \in \mathbb{R}^ma0​∈Rm, we have ∀r>0\forall r > 0∀r>0, N(cr,{ca+a0:a∈A})≤N(r,A)N(cr, \{ca + a_0 : a \in A\}) \le N(r, A)N(cr,{ca+a0​:a∈A})≤N(r,A): the image of an rrr-cover of AAA is a crcrcr-cover of the image.

The book prints N(r,{ca+a0:a∈A})≤N(cr,A)N(r, \{ca + a_0 : a \in A\}) \le N(cr, A)N(r,{ca+a0​:a∈A})≤N(cr,A), with the radii exchanged. That is false: for A=[0,1]⊂RA = [0, 1] \subset \mathbb{R}A=[0,1]⊂R, c=10c = 10c=10 and r=0.01r = 0.01r=0.01 it would say N(0.01,[0,10])=500≤5=N(0.1,[0,1])N(0.01, [0, 10]) = 500 \le 5 = N(0.1, [0, 1])N(0.01,[0,10])=500≤5=N(0.1,[0,1]). The statement here is the one the book calls immediate from the definition.

Preamble
import Definitions.Def_UnderstandingML_Covering

open MeasureTheory
Formal statement
namespace UnderstandingML

/-- **Lemma 27.2** (p. 388), as "immediate from the definition" gives it. For any `A ⊆ ℝ^m`,
scalar `c > 0`, and vector `a₀ ∈ ℝ^m`, the image of an `r`-cover of `A` under `a ↦ ca + a₀` is a
`cr`-cover of the image, so `∀ r > 0, N(cr, {c a + a₀ : a ∈ A}) ≤ N(r, A)`. The book prints
`N(r, {c a + a₀}) ≤ N(cr, A)`, which is false: for `A = [0, 1] ⊆ ℝ`, `c = 10`, `r = 0.01` it reads
`N(0.01, [0, 10]) = 500 ≤ 5 = N(0.1, [0, 1])`. -/
theorem covering_affine {m : ℕ} (A : Set (Fin m → ℝ)) (c : ℝ) (hc : 0 < c) (a₀ : Fin m → ℝ)
    (r : ℝ) (hr : 0 < r) :
    coveringNumber (c * r) ((fun a ↦ c • a + a₀) '' A) ≤ coveringNumber r A := by sorry

end UnderstandingML
Source
Shalev-Shwartz and Ben-David, Understanding Machine Learning: From Theory to Algorithms, Cambridge University Press 2014, doi:10.1017/CBO9781107298019, §27.1.1 p. 388, Lemma 27.2
Human review
  • Endorsed by Shuze Chen · Sep 25, 2026

    Confirmed by the moderator at approval.

  • Endorsed by naimengye · Sep 25, 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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me