PROOF 76
Prove.
Adding rounded values accumulates error
On the real numbers ℝ.
A way to read this proof
First separate what is assumed from what is to be proved. At each step, ask which definition or earlier result permits the move. If it is unclear, return to that premise rather than skipping to the conclusion.
Definition D1
For real numbers x₁, …, xₙ, set S = x₁ + ⋯ + xₙ, T = round(x₁) + ⋯ + round(xₙ), eᵢ = round(xᵢ) − xᵢ.
Proof.
∎
Lemma L1
T − S = e₁ + ⋯ + eₙ
Proof.
∎
Lemma L2
For every n, |a₁ + ⋯ + aₙ| ≤ |a₁| + ⋯ + |aₙ|
Proof.
∎
Theorem T1
Rounding each of n real numbers and adding gives |T − S| ≤ n/2
Proof.
∎
Corollary C
If xᵢ = 1/2 for every i, then |T − S| = n/2.
Proof.
∎
Remark
Can A1 be removed from this proof?
That each term's error is at most 1/2 is already given. Check which line carries it over to the error of the sum.