Convergence and error bound of the bisection method
ProvedMetodosNumericos.bisection_convergenceLet be continuous on with , and . Then there is a zero of such that, for every : belongs to the -th bisection bracket ; the bracket has width ; the approximation satisfies ; and . These are items (i)–(iv) of Proposição 3.2.1.
import Mathlib import Definitions.Def_MetodosNumericos_zerosDefs open Filter Topology
namespace MetodosNumericos
theorem bisection_convergence (f : ℝ → ℝ) (a b : ℝ) (hab : a < b)
(hf : ContinuousOn f (Set.Icc a b)) (hfa : f a < 0) (hfb : 0 < f b) :
∃ r ∈ Set.Icc a b, f r = 0 ∧
(∀ n : ℕ, r ∈ Set.Icc (bisect f a b n).1 (bisect f a b n).2) ∧
(∀ n : ℕ, (bisect f a b n).2 - (bisect f a b n).1 = (b - a) / 2 ^ n) ∧
(∀ n : ℕ, |bisectMid f a b n - r| ≤ (b - a) / 2 ^ n) ∧
Tendsto (bisectMid f a b) atTop (𝓝 r) := by sorry
end MetodosNumericosRead-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. It is an author's self-description, not independent testimony.
The statement fixes a function and reals , assumes that is continuous at every point of the closed interval relative to that interval, that and that . It asserts the existence of a real with such that all of the following hold simultaneously:
- ;
- for every natural number , lies in the closed interval whose endpoints are the two components, in order, of the -th iterate of the bisection construction started at ;
- for every natural number , the second component minus the first component of that pair equals ;
- for every natural number , , where is the arithmetic mean of the two components of the -th pair;
- the sequence converges to in the usual topology of .
The bisection construction is the one from the accompanying definitions: from it passes to when at the midpoint is negative and to otherwise, the value going to the second branch. The zero is asserted to exist, not to be unique, and the same must witness all five clauses. The bound at index concerns the midpoint of the -th bracket, which is the -st approximation in the source's numbering.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.