Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

p. 115: for A, B, Â, B̂ ∈ [0,1] with |A − Â|, |B − B̂| ≤ τ', AB − 2τ' ≤ ÂB̂ ≤ AB + 3τ'

Proved
ComputationalLearning.product_estimate_error

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

error-propagationestimation

p. 115. For any A,B∈[0,1]A, B \in [0, 1]A,B∈[0,1] and A^,B^∈[0,1]\hat A, \hat B \in [0, 1]A^,B^∈[0,1] that satisfy A−τ′≤A^≤A+τ′A - \tau' \le \hat A \le A + \tau'A−τ′≤A^≤A+τ′ and B−τ′≤B^≤B+τ′B - \tau' \le \hat B \le B + \tau'B−τ′≤B^≤B+τ′ for some τ′∈[0,1]\tau' \in [0, 1]τ′∈[0,1], we have AB−2τ′≤A^B^≤AB+3τ′AB - 2\tau' \le \hat A\hat B \le AB + 3\tau'AB−2τ′≤A^B^≤AB+3τ′. Thus if we are using the product of the estimates A^\hat AA^ and B^\hat BB^ to estimate the product ABABAB within additive error τ\tauτ, then τ′=τ/3\tau' = \tau/3τ′=τ/3 suffices.

Formally: the two inequalities, for reals A,B,A^,B^,τ′∈[0,1]A, B, \hat A, \hat B, \tau' \in [0, 1]A,B,A^,B^,τ′∈[0,1] with ∣A−A^∣≤τ′|A - \hat A| \le \tau'∣A−A^∣≤τ′ and ∣B−B^∣≤τ′|B - \hat B| \le \tau'∣B−B^∣≤τ′.

Preamble
import Definitions.Def_ComputationalLearning_Noise

open MeasureTheory ProbabilityTheory
Formal statement
namespace ComputationalLearning

/-- **Error propagation through a product** (§5.4.2, p. 115): for any `A, B ∈ [0, 1]` and
estimates `Â, B̂ ∈ [0, 1]` with `|A − Â| ≤ τ'` and `|B − B̂| ≤ τ'` for some `τ' ∈ [0, 1]`,
`AB − 2τ' ≤ ÂB̂ ≤ AB + 3τ'`; thus `τ' = τ/3` suffices to estimate a product within `τ`. -/
theorem product_estimate_error {A B Ah Bh τ' : ℝ} (hA : A ∈ Set.Icc (0 : ℝ) 1)
    (hB : B ∈ Set.Icc (0 : ℝ) 1) (hAh : Ah ∈ Set.Icc (0 : ℝ) 1) (hBh : Bh ∈ Set.Icc (0 : ℝ) 1)
    (hτ : τ' ∈ Set.Icc (0 : ℝ) 1) (h1 : |A - Ah| ≤ τ') (h2 : |B - Bh| ≤ τ') :
    A * B - 2 * τ' ≤ Ah * Bh ∧ Ah * Bh ≤ A * B + 3 * τ' := by sorry

end ComputationalLearning
Source
Kearns and Vazirani, An Introduction to Computational Learning Theory, MIT Press 1994, doi:10.7551/mitpress/3897.001.0001, §5.4.2 p. 115, the error propagation through a product of estimates
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 paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me