Verified rational bounds for square roots #
Rational lower and upper bounds for Real.sqrt of a rational interval are built via integer square
roots (boundedSqrt/sqrtq), shown to converge, and assembled into ComputableℝSeq.Sqrt.sqrt.
This yields an IsComputable instance for Real.sqrt and the golden ratio constants. The bound
functions are executable; the packaged sequence mentions Real.sqrt itself as its reference
value, so sqrt and the instances are noncomputable Lean terms.
A version of square roots for rational intervals, that give an interval containing the actual square root, that are at most b^-n wider than the true interval.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The square root lower bound has an error that can be composed into one part 2 * √r / 2^n
that decays with n, but depends on the value; and one part (x.snd - x.fst) / √r, that
is proportional to width of the input interval.
Definition of sqrt.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Equations
- One or more equations did not get rendered due to their size.