Relative error of truncated rounding is below
ProvedMetodosNumericos.trunc_relative_errorfloating-pointnumerical-analysis
For and , truncated rounding to digits satisfies . This is Proposição 2.4.2.
Preamble
import Mathlib import Definitions.Def_MetodosNumericos_errosDefs
Formal statement
namespace MetodosNumericos
theorem trunc_relative_error (t : ℕ) (ht : 1 ≤ t) (x : ℝ) (hx : 0 < x) :
|x - truncRound t x| / |truncRound t x| < (10 : ℝ) ^ (1 - (t : ℤ)) := by sorry
end MetodosNumericosSource
S. R. Freitas, Métodos Numéricos (UFMS, 2000), Cap. 2, Proposição 2.4.2, p. 24.
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 a natural number with and a real with , write
The statement asserts the strict inequality
with the exponent an integer. Division is total, so the claim also implicitly requires to be meaningful; if were the left-hand side would be by convention and the inequality would hold trivially.
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.