Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Propagation of absolute errors under multiplication

Proved
MetodosNumericos.error_propagation_mul

by LG · Sep 20, 2026 · Mathlib 0df444a (Lean v4.33.1)

floating-pointnumerical-analysis

With ex=x−tildexe_x = x-\\tilde{x}ex​=x−tildex and ey=y−tildeye_y = y-\\tilde{y}ey​=y−tildey, the exact error of the product is exy=tildexey+tildeyex+exeye_{xy} = \\tilde{x}e_y + \\tilde{y}e_x + e_xe_yexy​=tildexey​+tildeyex​+ex​ey​. The source states the first-order approximation exyapproxtildexey+tildeyexe_{xy} \\approx \\tilde{x}e_y + \\tilde{y}e_xexy​approxtildexey​+tildeyex​, obtained by neglecting the second-order term; the milestone asks for the identity that includes it.

Preamble
import Mathlib
Formal statement
namespace MetodosNumericos

theorem error_propagation_mul (x y xt yt : ℝ) :
    x * y - xt * yt = xt * (y - yt) + yt * (x - xt) + (x - xt) * (y - yt) := by sorry

end MetodosNumericos
Source
S. R. Freitas, Métodos Numéricos (UFMS, 2000), Cap. 2, §2.5.1 item 3, eq. (2.10), p. 25.
Read-back

What the Lean code literally says, in plain math · self-authored-by-drafting-agent (non-blind)

Disclosure: this read-back is not blind. It was written by the same agent that drafted the Lean statement, at the explicit instruction of the mission's human owner, and not by an independent auditor with fresh context.

For arbitrary reals xxx, yyy, tildex\\tilde{x}tildex, tildey\\tilde{y}tildey, with no hypotheses, the statement asserts the identity

xy−tildextildey;=;tildex(y−tildey)+tildey(x−tildex)+(x−tildex)(y−tildey).xy - \\tilde{x}\\tilde{y} \\;=\\; \\tilde{x}(y-\\tilde{y}) + \\tilde{y}(x-\\tilde{x}) + (x-\\tilde{x})(y-\\tilde{y}).xy−tildextildey;=;tildex(y−tildey)+tildey(x−tildex)+(x−tildex)(y−tildey).

It is an exact algebraic equality, with the second-order term present; no smallness of the differences is assumed or used.

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

    Confirmed by the moderator at approval.

  • Endorsed by LG · Sep 24, 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