Computer-assisted existence proofs checked by Lean #
A computer-assisted proof of existence in rigorous numerics has two parts: a theorem that turns
numerical bounds into existence and uniqueness of a solution (here the radii polynomial theorem
of ConvexAnalysis.RadiiPolynomial), and a rigorous computation of the bounds, usually with
interval or ball arithmetic in floating point. In this file Lean checks both parts. The
numbers x₀, A, Y, Z were found with ordinary floating-point arithmetic outside Lean and
written into the statements as decimal literals; inside Lean they are exact rationals.
- The bounds on the defect
|A F(x₀)| ≤ Yand on|1 - A F'(x)| ≤ Zover the ball involveexpin the first example. They are checked by Mathlib'sdyadic_intervaltactic, the interval arithmetic instance (with dyadic endpoints) of theinclusiontactic: it evaluates the expression in interval arithmetic, withxranging over the interval of the ball, and the kernel checks the computation by reflection (no native code, no floating point; the proofs use only the axiomspropext,Classical.choice,Quot.sound). - For polynomial equations the bounds are rational inequalities, which
norm_numandlinarithcheck (second example); the operator norm bound of the system in the third example is checked entrywise bydyadic_interval. The fourth example computes the bound on|1 - a f'(x)|over the ball in ball arithmetic (ConvexAnalysis.Ball):1 - a (2 x)lies in the ball1 - a • (2 * B)for everyx ∈ B, whose center and radius are numbers.
Main definitions #
ConvexAnalysis.matrixFinEquiv α m n: matricesMatrix (Fin m) (Fin n) αas vectorsFin (m * n) → α, row by row.ConvexAnalysis.RatArithExpr.eigenSystem A: the eigenpair systemA v - λ v = 0withv 0 = 1of a rational matrix, in the unknownsλ, v 1, …, v n.ConvexAnalysis.RatArithExpr.mulSelfSystem A: the systemX * X - A = 0of a rational square matrix, in the entries ofX, flattened byConvexAnalysis.matrixFinEquiv.ConvexAnalysis.sixHumpCamel: the six-hump camel function, a test function of global optimization.
Main statements #
ConvexAnalysis.existsUnique_sub_exp_neg_eq_zero: the equationx = exp (-x)has exactly one solution in[0.5671432903, 0.5671432905], which encloses the omega constantΩ = W(1) = 0.56714329040…to within10⁻¹⁰.ConvexAnalysis.existsUnique_sq_sub_two_eq_zero:x² = 2has exactly one solution in[1.41421355, 1.41421357].ConvexAnalysis.existsUnique_circle_inter_hyperbola: the systemx² + y² = 4,x y = 1has exactly one solution(x, y)with|x - 1.93185165| ≤ 10⁻⁸and|y - 0.51763809| ≤ 10⁻⁸.ConvexAnalysis.existsUnique_mem_ball_sq_eq_two:x² = 2has exactly one solution in the ball⟨1.41421356, 10⁻⁸⟩, with the derivative bound computed in ball arithmetic.ConvexAnalysis.existsUnique_eq_exp_neg_krawczyk,ConvexAnalysis.existsUnique_mul_log_eq_one_krawczyk,ConvexAnalysis.existsUnique_circle_inter_hyperbola_krawczyk:x = exp (-x)within10⁻¹⁵,x log x = 1within10⁻¹⁴and the circle and the hyperbola within10⁻¹³, by the dyadic Krawczyk testConvexAnalysis.RatArithExpr.krawczykTest, evaluated by the kernel: the derivatives are computed symbolically, and no bound is proved by hand.ConvexAnalysis.existsUnique_circle_inter_hyperbola_hansenSengupta: the circle and the hyperbola in the box of half-widths1/2and1/20, by the dyadic Hansen–Sengupta testConvexAnalysis.RatArithExpr.hansenSenguptaTest, and the tighter enclosure[1.9246, 1.9391] × [0.5166, 0.5187]of the solution from the operator; the Krawczyk test with the same data fails there (ConvexAnalysis.krawczykTest_circle_inter_hyperbola_eq_false).ConvexAnalysis.RatArithExpr.existsUnique_eq_zero_complex_of_hasUniqueZero,ConvexAnalysis.RatArithExpr.existsUnique_eigenpair_of_hasUniqueZero,ConvexAnalysis.RatArithExpr.existsUnique_mul_self_eq_of_hasUniqueZero: a unique zero of a real system in a box (ConvexAnalysis.RatArithExpr.HasUniqueZero, the conclusion of the dyadic Krawczyk and Hansen–Sengupta tests) proves that a functionf : ℂ → ℂhas exactly one zero in a rectangle[a, b] ×ℂ [c, d], that a matrix has exactly one eigenpair(λ, v)withv 0 = 1in a box, and that a matrix has exactly one square root in a box, stated with Mathlib'sℂ,Matrix,*ᵥand*.ConvexAnalysis.existsUnique_cubic_complex_root:z³ - 2 z + 2has exactly one root in the square of radius10⁻¹⁴around0.8846461771193157 + 0.5897428050222055 i.ConvexAnalysis.existsUnique_eigenpair_three: the matrix[[2, 1, 0], [1, 3, 1], [0, 1, 4]]has exactly one eigenpair withv 0 = 1within10⁻¹⁴ofλ = 3 + √3,v = (1, 1 + √3, 2 + √3).ConvexAnalysis.existsUnique_matrix_sqrt: the matrix[[4, 1], [2, 3]]has exactly one square root within10⁻¹⁴(entrywise) of its principal square root.ConvexAnalysis.exists_isMinOn_sixHumpCamel: the six-hump camel function attains its minimum on[-2, 2] × [-1, 1], and the minimum lies in[-1.035, -1.03162], by the branch and bound minimum testConvexAnalysis.RatArithExpr.minimumTest.ConvexAnalysis.mul_exp_neg_lt,ConvexAnalysis.lt_sub_one_mul_sub_two_mul_sub_three_mul_sub_four:x e⁻ˣ < 0.3679on[0, 10]and(x - 1)(x - 2)(x - 3)(x - 4) > -1.01on[0, 5], by the strict bound tests ofConvexAnalysis.IntervalBranchAndBound.ConvexAnalysis.not_exists_sq_add_sq_eq_one_and_mul_eq:x² + y² = 1,x y = 0.51has no real solution, by the exclusion testConvexAnalysis.RatArithExpr.exclusionTest.
Implementation notes #
- The first two examples use the scalar form
ConvexAnalysis.existsUnique_eq_zero_of_radii_polynomial_real, the third the form for finite dimension,ConvexAnalysis.existsUnique_eq_zero_of_radii_polynomial_of_finiteDimensional, onℝ × ℝwith the sup norm, where the injectivity ofAfollows from‖1 - A F'(x₀)‖ < 1. - The precision of
dyadic_intervalis set by hand:prec := 50(dyadic numbers with resolution2⁻⁵⁰) resolves the tight defect boundY = 10⁻¹¹, since|a f(x₀)| ≈ 0.98 · 10⁻¹¹(the tactic proves9.7 · 10⁻¹² ≤ |a f(x₀)|and refutes|a f(x₀)| ≤ 9 · 10⁻¹²). The whole file is checked in about12seconds, most of it in the branch and bound examples at the end. - Ball arithmetic.
ConvexAnalysis.Ball ℝhas real centers and radii, so a ball computation is checked bynorm_numon its center and radius, not by the kernel's dyadic evaluation ofdyadic_interval; there is noinclusionextension for balls yet. dyadic_intervalhas no division forℝyet, so the approximate inverses are written as decimal numbers (a = 0.63810374 ≈ 1 / (1 + exp (-Ω))), not as quotients.- The last three examples use
ConvexAnalysis.RatArithExpr.existsUnique_eq_zero_of_krawczykTest(ConvexAnalysis.IntervalDyadic): the system is written as expressions with rational constants, the test evaluates it and its symbolic Jacobian in dyadic interval arithmetic with precision2⁻⁶⁰, anddecide +kernelchecks the result;simptranslates the expressions into the usual notation. The kernel checks of the six examples take between0.03seconds (one variable) and0.35seconds (the matrix square root, four variables). - The Hansen–Sengupta example uses
ConvexAnalysis.RatArithExpr.existsUnique_eq_zero_of_hansenSenguptaTestandConvexAnalysis.RatArithExpr.mem_Icc_of_hansenSenguptaEnclosureTest(ConvexAnalysis.HansenSengupta) in the same way; the kernel checks of the two tests take about0.09and0.07seconds, the failing Krawczyk test about0.06seconds. - The complex, eigenpair and matrix examples go through theorems whose hypothesis is the
conclusion
ConvexAnalysis.RatArithExpr.HasUniqueZeroof a test, not the test itself, so they serve the Krawczyk and the Hansen–Sengupta test alike; an example passes the test theorem to them. - Complex zeros are found by the test on the real system of the real and imaginary parts; the
expressions for them are written by hand and checked by
simpandringagainstf. The conclusion is a rectangleComplex.reProdIm, the natural shape for a box inℝ², not a disc. - Eigenpairs. The unknowns are the eigenvalue and the eigenvector with one component fixed,
v 0 = 1, which makes the system square and its solution locally unique for a simple eigenvalue; this is the formulation going back to Krawczyk (Rump, Section 13.4). - Matrix square roots. The unknowns are the entries of
X, flattened row by row (ConvexAnalysis.matrixFinEquiv, byfinProdFinEquiv), since the test works onFin n. - Branch and bound. The bound, minimum and exclusion tests bisect the box adaptively
(
ConvexAnalysis.DyadicInterval.allPieces) and are checked bydecide +kernelat the precision2⁻³⁰, which is far below the tolerances. Their kernel checks take1–3.5seconds each, much longer than the Krawczyk tests, since every box costs up to a few hundred interval operations: the four examples test201,61,59and299boxes. The form of the expression matters: the camel function is evaluated asx² ((x² - 63/20)² / 3 + 277/400) + x y + 4 (y² - 1/2)² - 1(equal byring), with a much tighter natural extension than the expanded form, which needs3229boxes for the same test; its symmetryf (-x, -y) = f (x, y)halves the box.
References #
- J. B. van den Berg, J.-P. Lessard, Rigorous numerics in dynamics, Notices Amer. Math. Soc. 62 (2015), 1057–1061.
- S. M. Rump, Verification methods: Rigorous results using floating-point arithmetic, Acta Numerica 19 (2010), 287–449.
Tags #
computer-assisted proof, rigorous numerics, radii polynomial, interval arithmetic, ball
arithmetic, dyadic_interval, Krawczyk test, Hansen–Sengupta test, omega constant, complex root,
eigenpair, matrix square root, branch and bound, verified global minimum, six-hump camel
function, exclusion test
The omega constant to within 10⁻¹⁰: the equation x = exp (-x) has exactly one
solution in [x₀ - r, x₀ + r] for x₀ = 0.5671432904 and r = 10⁻¹⁰. The radii polynomial
theorem is applied to f x = x - exp (-x) with f' x = 1 + exp (-x), the approximate inverse
a = 0.63810374 of f'(x₀), Y = 10⁻¹¹ ≥ |a f(x₀)| and Z = 10⁻⁶ ≥ |1 - a f'(x)| on the
interval; Y + Z r ≤ r holds by norm_num, the two bounds by dyadic_interval.
√2 to within 10⁻⁸: x² = 2 has exactly one solution in [x₀ - r, x₀ + r] for
x₀ = 1.41421356 and r = 10⁻⁸. The radii polynomial theorem is applied with the approximate
inverse a = 0.35355339 of f'(x₀) = 2 x₀, Y = 3 · 10⁻⁹ and Z = 10⁻⁷; all bounds are
rational inequalities, checked by norm_num and linarith.
√2 to within 10⁻⁸, with ball arithmetic: x² = 2 has exactly one solution in the
ball B = ⟨1.41421356, 10⁻⁸⟩. As in ConvexAnalysis.existsUnique_sq_sub_two_eq_zero, the radii
polynomial theorem is applied with a = 0.35355339, Y = 3 · 10⁻⁹ and Z = 10⁻⁷; the bound
|1 - a f'(x)| ≤ Z for all x ∈ B comes from ball arithmetic: 1 - a (2 x) lies in the ball
1 - a • (2 * B) (ConvexAnalysis.Ball.sub_mem_sub, ConvexAnalysis.Ball.smul_mem_smul,
ConvexAnalysis.Ball.mul_mem_mul), whose center 1 - 2 a x₀ and radius 2 |a| 10⁻⁸ are
numbers, and |y| ≤ |c| + r for y in a ball ⟨c, r⟩.
A polynomial system: the circle x² + y² = 4 and the hyperbola x y = 1 meet in exactly
one point of the ball of radius 10⁻⁸ around (1.93185165, 0.51763809) in ℝ × ℝ with the sup
norm (the exact point is (√(2 + √3), √(2 - √3))). The radii polynomial theorem is applied to
F (x, y) = (x² + y² - 4, x y - 1) with the Jacobian F' and the approximate inverse
A = [[0.27883877, -0.14942925], [-0.07471462, 0.55767754]] of F'(x₀), Y = 3 · 10⁻⁹ and
Z = 10⁻⁶. The defect bound is checked by norm_num; ‖1 - A F'(p)‖ ≤ Z is reduced to the
absolute row sums of the matrix 1 - A F'(p), which dyadic_interval bounds for all p in the
ball.
Krawczyk tests computed in the kernel #
The following examples need no bound proved by hand: the dyadic Krawczyk test
ConvexAnalysis.RatArithExpr.krawczykTest evaluates the system and its symbolic partial
derivatives in dyadic interval arithmetic, and decide +kernel checks that it returns true.
Only the translation of the expression trees into the usual notation is done by simp.
The omega constant to within 10⁻¹⁵, by a Krawczyk test computed in the kernel: the
equation x = exp (-x) has exactly one solution in [x₀ - 10⁻¹⁵, x₀ + 10⁻¹⁵] for
x₀ = 0.5671432904097838. The derivative 1 + exp (-x) is computed symbolically, the slopes
are enclosed in dyadic interval arithmetic with precision 2⁻⁶⁰, and the Krawczyk operator with
y = 0.63810374 ≈ 1 / (1 + exp (-x₀)) lies inside the interval
(ConvexAnalysis.RatArithExpr.existsUnique_eq_zero_of_krawczykTest_real).
x log x = 1 by a Krawczyk test computed in the kernel: the equation has exactly one
solution in [x₀ - 10⁻¹⁴, x₀ + 10⁻¹⁴] for x₀ = 1.763222834351897 (the solution is
1 / W(1) = e^Ω). The symbolic derivative log x + x x⁻¹ uses the logarithm and the inverse in
dyadic interval arithmetic; y = 0.63817 ≈ 1 / (1 + log x₀).
The circle and the hyperbola, by a Krawczyk test computed in the kernel: the system
x² + y² = 4, x y = 1 has exactly one solution in the box of radius 10⁻¹³ around
(1.93185165257814, 0.51763809020504) (the exact point is (√(2 + √3), √(2 - √3))). The
Jacobian is computed symbolically and enclosed in dyadic interval arithmetic, with the
approximate inverse Y = [[0.27883877, -0.14942925], [-0.07471462, 0.55767754]] of the Jacobian
at the center (ConvexAnalysis.RatArithExpr.existsUnique_eq_zero_of_krawczykTest). Compare
ConvexAnalysis.existsUnique_circle_inter_hyperbola, where the derivative and the bound on
‖1 - A F'(p)‖ are written by hand.
The circle and the hyperbola on a larger box, by the Hansen–Sengupta test: the system
x² + y² = 4, x y = 1 has exactly one solution with |x - 1.93185165257814| ≤ 1/2 and
|y - 0.51763809020504| ≤ 1/20, and it lies in [1.9246, 1.9391] × [0.5166, 0.5187]. The dyadic
Hansen–Sengupta test ConvexAnalysis.RatArithExpr.hansenSenguptaTest succeeds with the center and
the preconditioner Y of ConvexAnalysis.existsUnique_circle_inter_hyperbola_krawczyk, where the
Krawczyk test with the same data fails
(ConvexAnalysis.krawczykTest_circle_inter_hyperbola_eq_false): the Gauss–Seidel sweep first
narrows the side of x to about [1.92466, 1.93904] and then uses it in the row of y, which it
narrows to about [0.51660, 0.51868], while the Krawczyk operator keeps the full width 1/2 of
x in the row of y
(ConvexAnalysis.RatArithExpr.existsUnique_eq_zero_of_hansenSenguptaTest). The enclosure test
ConvexAnalysis.RatArithExpr.hansenSenguptaEnclosureTest checks the narrowed box
(ConvexAnalysis.RatArithExpr.mem_Icc_of_hansenSenguptaEnclosureTest).
The Krawczyk test fails where the Hansen–Sengupta test succeeds: on the box of
ConvexAnalysis.existsUnique_circle_inter_hyperbola_hansenSengupta, with the same center,
preconditioner and precision, the dyadic Krawczyk test returns false; its operator in the row
of y is about [0.452, 0.583], wider than the side [0.4676, 0.5676] of the box.
Complex zeros, eigenpairs and matrix square roots #
The dyadic Krawczyk test works on Fin n → ℝ. The following theorems carry its result over to
problems stated in ℂ and with Mathlib's Matrix: a zero of a function f : ℂ → ℂ in a
rectangle, from the system of its real and imaginary parts; an eigenpair (λ, v) of a rational
matrix with the normalization v 0 = 1; a square root X * X = A of a rational matrix. Each
bridge is proved once, so an example needs only the test, checked by decide +kernel, and a
translation of the statement by simp.
Matrices with rows in Fin m and columns in Fin n as vectors indexed by Fin (m * n),
row by row: the entry M i j is the coordinate finProdFinEquiv (i, j) = n i + j.
Equations
- ConvexAnalysis.matrixFinEquiv α m n = (Equiv.curry (Fin m) (Fin n) α).symm.trans (finProdFinEquiv.arrowCongr (Equiv.refl α))
Instances For
The coordinate finProdFinEquiv (i, j) of ConvexAnalysis.matrixFinEquiv α m n M is the entry
M i j.
A zero in ℂ from a zero of the real system: let P and Q be expressions in two real
variables that give the real and imaginary parts of f : ℂ → ℂ, as functions of the real and
imaginary parts of z. If the system (P, Q) has exactly one zero in the box [lo, hi]
(ConvexAnalysis.RatArithExpr.HasUniqueZero, for example by the dyadic Krawczyk test
ConvexAnalysis.RatArithExpr.existsUnique_eq_zero_of_krawczykTest or the Hansen–Sengupta test
ConvexAnalysis.RatArithExpr.existsUnique_eq_zero_of_hansenSenguptaTest), then f has exactly
one zero in the rectangle [lo 0, hi 0] ×ℂ [lo 1, hi 1]. For holomorphic f the Jacobian of
(P, Q) is the matrix [[a, -b], [b, a]] of multiplication by f'(z) = a + b i, so the
preconditioner Y of a test can be taken as the matrix of an approximation of 1 / f'(z₀).
The coordinate v j of the eigenvector in ConvexAnalysis.RatArithExpr.eigenSystem: the
constant 1 for j = 0 (the normalization v 0 = 1), the variable x j otherwise.
Equations
Instances For
The value of ConvexAnalysis.RatArithExpr.eigenVecVar j at x.
The eigenpair system of a rational matrix A of size n + 1: the equations
(A v)ᵢ - λ vᵢ = 0 for i : Fin (n + 1) in the variables x : Fin (n + 1) → ℝ, where
x 0 = λ is the eigenvalue and x j for j ≠ 0 are the coordinates of the eigenvector v,
normalized by v 0 = 1 (ConvexAnalysis.RatArithExpr.eval_eigenSystem).
Equations
- One or more equations did not get rendered due to their size.
Instances For
An eigenpair from a zero of the eigenpair system: if the eigenpair system
ConvexAnalysis.RatArithExpr.eigenSystem A has exactly one zero in the box [lo, hi]
(coordinate 0 for the eigenvalue, coordinates i ≠ 0 for the eigenvector; for example by a
dyadic Krawczyk or Hansen–Sengupta test), then the matrix A has exactly one eigenpair (λ, v)
with λ ∈ [lo 0, hi 0], v i ∈ [lo i, hi i] for i ≠ 0 and v 0 = 1. This is the verification
of an eigenpair by a nonlinear system with one frozen component of the eigenvector
(Rump, Section 13.4).
The matrix square root system of a rational m × m matrix A: the equations
(X * X) i j - A i j = 0 in the variables x : Fin (m * m) → ℝ, the entries of X row by row
(ConvexAnalysis.matrixFinEquiv, ConvexAnalysis.RatArithExpr.eval_mulSelfSystem); the
equation for the entry (i, j) has the index finProdFinEquiv (i, j).
Equations
- One or more equations did not get rendered due to their size.
Instances For
The value of the matrix square root system ConvexAnalysis.RatArithExpr.mulSelfSystem A at
the entries of X is (X * X) i j - A i j.
A matrix square root from a zero of the square root system: if the system
ConvexAnalysis.RatArithExpr.mulSelfSystem A has exactly one zero in the box of the matrices
lo ≤ X ≤ hi (entrywise, flattened by ConvexAnalysis.matrixFinEquiv; for example by a dyadic
Krawczyk test with the center X₀ and an approximate inverse Y of the Jacobian
H ↦ X₀ H + H X₀ in the flattened coordinates), then A has exactly one square root X * X = A
with lo i j ≤ X i j ≤ hi i j for all i, j.
A complex root of a real cubic, by a Krawczyk test computed in the kernel: the
polynomial z³ - 2 z + 2 has exactly one root in the square of side 2 · 10⁻¹⁴ around
0.8846461771193157 + 0.5897428050222055 i. (It has one real root, near -1.7693, since its
discriminant -76 is negative, and this root and its conjugate.) The test is applied to the
real and imaginary parts x³ - 3 x y² - 2 x + 2 and 3 x² y - y³ - 2 y with the matrix of
1 / f'(z₀) ≈ -0.06764814 - 0.30442763 i as Y
(ConvexAnalysis.RatArithExpr.existsUnique_eq_zero_complex_of_hasUniqueZero).
An eigenpair with an irrational eigenvalue, by a Krawczyk test computed in the kernel:
the matrix A = [[2, 1, 0], [1, 3, 1], [0, 1, 4]] has exactly one eigenpair (λ, v),
A v = λ v, with v 0 = 1, λ within 10⁻¹⁴ of 4.732050807568877 and v 1, v 2 within
10⁻¹⁴ of 2.732050807568877 and 3.732050807568877. (The exact eigenpair is λ = 3 + √3,
v = (1, 1 + √3, 2 + √3); the other eigenvalues are 3 and 3 - √3.) The test is applied to
ConvexAnalysis.RatArithExpr.eigenSystem A
(ConvexAnalysis.RatArithExpr.existsUnique_eigenpair_of_hasUniqueZero).
A matrix square root, by a Krawczyk test computed in the kernel: the matrix
A = [[4, 1], [2, 3]] has exactly one square root X * X = A whose entries lie within 10⁻¹⁴
of those of [[1.962116505790891, 0.2739514717088982], [0.5479029434177964, 1.688165034081993]].
(This is the principal square root (√5 (A - 2) - √2 (A - 5)) / 3, with the eigenvalues √5
and √2.) The test is applied to ConvexAnalysis.RatArithExpr.mulSelfSystem A in four
variables (ConvexAnalysis.RatArithExpr.existsUnique_mul_self_eq_of_hasUniqueZero).
Verified bounds, a global minimum and an exclusion by branch and bound #
The tests of ConvexAnalysis.IntervalBranchAndBound bisect a box until the natural interval
extension or the mean value form of an expression proves the bound on every piece. As above,
decide +kernel checks the computation and simp and ring translate the expressions.
The six-hump camel function (4 - 2.1 x² + x⁴ / 3) x² + x y + (-4 + 4 y²) y², a standard
test function of global optimization. On [-2, 2] × [-1, 1] it has six local minima, and its
global minimum -1.0316284535… is attained at the two points ±(0.0898…, -0.7126…)
(ConvexAnalysis.exists_isMinOn_sixHumpCamel).
Equations
Instances For
The global minimum of the six-hump camel function, verified by branch and bound: on
[-2, 2] × [-1, 1] the function ConvexAnalysis.sixHumpCamel attains its minimum, and the
minimum lies in [-1.035, -1.03162]. The minimum test ConvexAnalysis.RatArithExpr.minimumTest
runs on the half [0, 2] × [-1, 1], which suffices since f (-x, -y) = f (x, y): the upper
bound -1.03162 bounds the value -1.03162842… at (0.0898, -0.7126), and the lower bound
-1.035 is proved on every piece of an adaptive bisection, by the natural interval extension
or, on pieces of width at most 1/64, by the mean value form
(ConvexAnalysis.RatArithExpr.exists_isMinOn_of_minimumTest). The function is evaluated in the
form x² ((x² - 63/20)² / 3 + 277/400) + x y + 4 (y² - 1/2)² - 1, equal to it by ring. The
kernel check takes about 3.5 seconds (201 boxes); the lower bound -1.032 would take about
8 seconds and 1.5 GB more memory.
A strict upper bound with the exponential, by branch and bound: x e⁻ˣ < 0.3679 for
0 ≤ x ≤ 10; the maximum is 1/e = 0.36787944… at x = 1, so the margin is about 2 · 10⁻⁵.
The strict upper bound test ConvexAnalysis.RatArithExpr.strictUpperBoundTest succeeds mostly by
the mean value form (on 26 of the 31 final pieces; the natural extension alone needs 1755
boxes instead of 61; ConvexAnalysis.RatArithExpr.eval_lt_of_strictUpperBoundTest); the
kernel check takes about 2.4 seconds, most of it in the dyadic exponential.
A polynomial bounded below, by branch and bound: (x - 1)(x - 2)(x - 3)(x - 4) > -1.01
for 0 ≤ x ≤ 5; the minimum -1 is attained at x = (5 ± √5) / 2. The strict lower bound test
ConvexAnalysis.RatArithExpr.strictLowerBoundTest succeeds
(ConvexAnalysis.RatArithExpr.lt_eval_of_strictLowerBoundTest); the kernel check takes about
1 second.
A near miss excluded by branch and bound: the system x² + y² = 1, x y = 0.51 has no
real solution. On the unit circle x y ≤ 1/2, with equality at ±(1/√2, 1/√2), where both
equations hold up to 0.01. Every solution lies in [-1, 1]², and the exclusion test
ConvexAnalysis.RatArithExpr.exclusionTest with the natural interval extension shows that one of
the two equations fails on every piece of a bisection of [-1, 1]²
(ConvexAnalysis.RatArithExpr.forall_exists_ne_zero_of_exclusionTest); the kernel check takes about
1.2 seconds. (The inequality 2 x y ≤ x² + y² proves the statement by hand.)