Documentation

ConvexAnalysis.IntervalNewton

Interval Newton methods and the Krawczyk test #

Interval methods of global optimization prove that a box X = Icc a b in ι → ℝ contains exactly one zero of a continuous map f : (ι → ℝ) → ι → ℝ, or none. They work with a set 𝒜 of matrices that encloses the slopes of f on X: for all x, y ∈ X, some A ∈ 𝒜 satisfies f x - f y = A *ᵥ (x - y). In practice 𝒜 is an interval matrix, computed by interval arithmetic from bounds on the Jacobian of f over X. This file proves, for the exact ranges of the operators, the inclusion and exclusion properties of the Krawczyk operator of Krawczyk and of the interval Newton operator of Moore, the Krawczyk existence test of Moore, the strict Krawczyk test (existence and uniqueness), and the interval Newton existence and uniqueness tests, in the forms of Neumaier, Theorems 5.1.7, 5.1.8 and 5.4.2 and Moore–Kearfott–Cloud, Theorems 8.1–8.4. Krawczyk's paper has the operator, the inclusion of zeros, a convergence criterion and a one-dimensional exclusion test, but no existence test. A test computed with an interval enclosure of an operator (a superset) follows by transitivity of ⊆.

Main definitions #

Main statements #

Implementation notes #

The interval matrix is any set 𝒜 : Set (Matrix ι ι ℝ), and the operators are the exact sets, not their interval hulls. This is the most general form of the tests: in practice K(X) and N(X) are replaced by interval enclosures, which are supersets. Mathlib's NonemptyInterval would fix boxes as the only shape; Matrix has no entrywise order in Mathlib, so interval matrices are ConvexAnalysis.matrixIcc. The base point is written x₀ (x̃ in the literature, usually the midpoint of X, the best choice for the Krawczyk operator by Neumaier, Theorem 5.1.9); it need not be the midpoint, and for the existence tests not even in X, since only the slopes at x₀ are used. Neumaier assumes x̃ ∈ interior X for the uniqueness tests; here x₀ ∈ X suffices.

Mathlib has no Krawczyk operator, interval Newton method or interval matrices. Its inclusion tactic (Mathlib/Tactic/Inclusion) is an interval arithmetic engine for proving numerical bounds, unrelated to these tests. No Mathlib pull request mentions Krawczyk or interval Newton methods (searched on 2026-11-30).

References #

Tags #

interval Newton method, Krawczyk operator, interval analysis, verified computation, existence test, exclusion test, global optimization

Interval matrices #

def ConvexAnalysis.matrixIcc {m : Type u_1} {n : Type u_2} (A₁ A₂ : Matrix m n ℝ) :
Set (Matrix m n ℝ)

The interval matrix [A₁, A₂]: the matrices A with A₁ i j ≤ A i j ≤ A₂ i j for all entries. Matrix has no entrywise order in Mathlib, so this is not Set.Icc A₁ A₂.

Equations
Instances For
    theorem ConvexAnalysis.mem_matrixIcc {m : Type u_1} {n : Type u_2} {A₁ A₂ A : Matrix m n ℝ} :
    A ∈ matrixIcc A₁ A₂ ↔ ∀ (i : m) (j : n), A i j ∈ Set.Icc (A₁ i j) (A₂ i j)

    Membership in the interval matrix [A₁, A₂].

    theorem ConvexAnalysis.convex_matrixIcc {m : Type u_1} {n : Type u_2} (A₁ A₂ : Matrix m n ℝ) :
    Convex ℝ (matrixIcc A₁ A₂)

    Interval matrices are convex.

    theorem ConvexAnalysis.isCompact_matrixIcc {m : Type u_1} {n : Type u_2} [Finite m] [Finite n] (A₁ A₂ : Matrix m n ℝ) :
    IsCompact (matrixIcc A₁ A₂)

    Interval matrices are compact.

    Slope enclosures #

    def ConvexAnalysis.IsSlopeEnclosure {ι : Type u_1} [Fintype ι] (𝒜 : Set (Matrix ι ι ℝ)) (f : (ι → ℝ) → ι → ℝ) (s : Set (ι → ℝ)) :

    A set 𝒜 of matrices encloses the slopes of f on s if for all x, y ∈ s some A ∈ 𝒜 satisfies f x - f y = A *ᵥ (x - y). This is (6) of Neumaier, Section 5.1, where such an 𝒜 is called a Lipschitz set if it is also closed, convex and bounded. For differentiable f on a convex set, an interval matrix containing the Jacobians is one (ConvexAnalysis.isSlopeEnclosure_matrixIcc_of_hasFDerivWithinAt).

    Equations
    Instances For
      theorem ConvexAnalysis.IsSlopeEnclosure.mono {ι : Type u_1} [Fintype ι] {f : (ι → ℝ) → ι → ℝ} {𝒜 ℬ : Set (Matrix ι ι ℝ)} {s t : Set (ι → ℝ)} (h : IsSlopeEnclosure 𝒜 f s) (h𝒜 : 𝒜 ⊆ ℬ) (hts : t ⊆ s) :

      An enclosure of the slopes stays one for a larger set of matrices and a smaller set.

      def ConvexAnalysis.IsSlopeEnclosureAt {ι : Type u_1} [Fintype ι] (𝒜 : Set (Matrix ι ι ℝ)) (f : (ι → ℝ) → ι → ℝ) (x₀ : ι → ℝ) (s : Set (ι → ℝ)) :

      A set 𝒜 of matrices encloses the slopes of f at x₀ on s if for every x ∈ s some A ∈ 𝒜 satisfies f x - f x₀ = A *ᵥ (x - x₀). This is all that the exclusion tests, the Krawczyk and interval Newton existence tests and the convergence of the interval Newton method use; uniqueness needs the slopes between all pairs of points (ConvexAnalysis.IsSlopeEnclosure). The point x₀ need not lie in s. A closed, convex and bounded such 𝒜 is a slope set at x₀ in the sense of (3) in Neumaier, Section 5.4.

      Equations
      Instances For
        theorem ConvexAnalysis.isSlopeEnclosureAt_iff {ι : Type u_1} [Fintype ι] {f : (ι → ℝ) → ι → ℝ} {𝒜 : Set (Matrix ι ι ℝ)} {s : Set (ι → ℝ)} {x₀ : ι → ℝ} :
        IsSlopeEnclosureAt 𝒜 f x₀ s ↔ ∀ x ∈ s, ∃ A ∈ 𝒜, f x - f x₀ = A.mulVec (x - x₀)

        Unfolding ConvexAnalysis.IsSlopeEnclosureAt.

        theorem ConvexAnalysis.IsSlopeEnclosureAt.mono {ι : Type u_1} [Fintype ι] {f : (ι → ℝ) → ι → ℝ} {𝒜 ℬ : Set (Matrix ι ι ℝ)} {s t : Set (ι → ℝ)} {x₀ : ι → ℝ} (h : IsSlopeEnclosureAt 𝒜 f x₀ s) (h𝒜 : 𝒜 ⊆ ℬ) (hts : t ⊆ s) :
        IsSlopeEnclosureAt ℬ f x₀ t

        An enclosure of the slopes at x₀ stays one for a larger set of matrices and a smaller set.

        theorem ConvexAnalysis.IsSlopeEnclosure.isSlopeEnclosureAt {ι : Type u_1} [Fintype ι] {f : (ι → ℝ) → ι → ℝ} {𝒜 : Set (Matrix ι ι ℝ)} {s : Set (ι → ℝ)} {x₀ : ι → ℝ} (h : IsSlopeEnclosure 𝒜 f s) (hx₀ : x₀ ∈ s) :
        IsSlopeEnclosureAt 𝒜 f x₀ s

        An enclosure of the slopes on s encloses the slopes at every x₀ ∈ s.

        theorem ConvexAnalysis.isSlopeEnclosure_iff_forall_isSlopeEnclosureAt {ι : Type u_1} [Fintype ι] {f : (ι → ℝ) → ι → ℝ} {𝒜 : Set (Matrix ι ι ℝ)} {s : Set (ι → ℝ)} :
        IsSlopeEnclosure 𝒜 f s ↔ ∀ x₀ ∈ s, IsSlopeEnclosureAt 𝒜 f x₀ s

        𝒜 encloses the slopes of f on s iff it encloses the slopes at every point of s.

        theorem ConvexAnalysis.IsSlopeEnclosureAt.exists_sub_eq {ι : Type u_1} [Fintype ι] {f : (ι → ℝ) → ι → ℝ} {𝒜 : Set (Matrix ι ι ℝ)} {s : Set (ι → ℝ)} {x₀ x : ι → ℝ} (h : IsSlopeEnclosureAt 𝒜 f x₀ s) (hx : x ∈ s) :
        ∃ A ∈ 𝒜, f x₀ - f x = A.mulVec (x₀ - x)

        The slope at x₀ in the reverse direction: f x₀ - f x = A *ᵥ (x₀ - x).

        theorem ConvexAnalysis.IsSlopeEnclosure.injOn {ι : Type u_1} [Fintype ι] {f : (ι → ℝ) → ι → ℝ} {𝒜 : Set (Matrix ι ι ℝ)} {s : Set (ι → ℝ)} [DecidableEq ι] (h : IsSlopeEnclosure 𝒜 f s) (hunit : ∀ A ∈ 𝒜, IsUnit A) :

        If 𝒜 encloses the slopes of f on s and consists of invertible matrices, then f is injective on s; in particular f has at most one zero in s.

        theorem ConvexAnalysis.IsSlopeEnclosure.continuousOn {ι : Type u_1} [Fintype ι] {f : (ι → ℝ) → ι → ℝ} {𝒜 : Set (Matrix ι ι ℝ)} {s : Set (ι → ℝ)} (h : IsSlopeEnclosure 𝒜 f s) (h𝒜 : IsCompact 𝒜) :

        A map with a compact slope enclosure is continuous: if a compact set 𝒜 of matrices (for example an interval matrix) encloses the slopes of f on s, then f is continuous on s, since f y - f x = A *ᵥ (y - x) with A in a bounded set.

        theorem ConvexAnalysis.isSlopeEnclosure_matrixIcc_of_hasFDerivWithinAt {ι : Type u_1} [Fintype ι] {f : (ι → ℝ) → ι → ℝ} {s : Set (ι → ℝ)} [DecidableEq ι] {f' : (ι → ℝ) → (ι → ℝ) →L[ℝ] ι → ℝ} (hs : Convex ℝ s) (hf : ∀ x ∈ s, HasFDerivWithinAt f (f' x) s x) {A₁ A₂ : Matrix ι ι ℝ} (hA : ∀ x ∈ s, LinearMap.toMatrix' ↑(f' x) ∈ matrixIcc A₁ A₂) :
        IsSlopeEnclosure (matrixIcc A₁ A₂) f s

        Slope enclosure from Jacobian bounds: if f has the derivative f' x within a convex set s at every x ∈ s, and the Jacobian matrices of f' x lie in the interval matrix [A₁, A₂] for all x ∈ s, then [A₁, A₂] encloses the slopes of f on s. The mean value theorem is applied to each component of f separately, so each row of the slope matrix is a row of the Jacobian at a different point of the segment; this is why interval matrices, which allow rows from different matrices, are the natural enclosures. Neumaier, Corollary 5.1.5 states this for continuously differentiable f; here f need only have a derivative within s.

        theorem ConvexAnalysis.isSlopeEnclosure_of_hasFDerivWithinAt {ι : Type u_1} [Fintype ι] {f : (ι → ℝ) → ι → ℝ} {𝒜 : Set (Matrix ι ι ℝ)} {s : Set (ι → ℝ)} [DecidableEq ι] {f' : (ι → ℝ) → (ι → ℝ) →L[ℝ] ι → ℝ} (hs : Convex ℝ s) (hf : ∀ x ∈ s, HasFDerivWithinAt f (f' x) s x) (h𝒜 : IsCompact 𝒜) (h𝒜c : Convex ℝ 𝒜) (hA : ∀ x ∈ s, LinearMap.toMatrix' ↑(f' x) ∈ 𝒜) :

        Slope enclosure from a compact convex set of Jacobians: if f has the derivative f' x within a convex set s at every x ∈ s, and the Jacobian matrices of f' x lie in a compact convex set 𝒜 for all x ∈ s, then 𝒜 encloses the slopes of f on s. If some slope f x - f y were not in the compact convex set {A *ᵥ (x - y) | A ∈ 𝒜}, a linear functional ℓ would separate it, contradicting the mean value theorem for t ↦ ℓ (f (y + t (x - y))). For interval matrices, ConvexAnalysis.isSlopeEnclosure_matrixIcc_of_hasFDerivWithinAt needs neither compactness nor convexity. Neumaier, Proposition 5.1.4 proves this for the closed convex hull of the Jacobians of a continuously differentiable f; here any compact convex superset works and no continuity of the derivative is needed.

        The Krawczyk operator #

        def ConvexAnalysis.krawczyk {ι : Type u_1} [Fintype ι] [DecidableEq ι] (f : (ι → ℝ) → ι → ℝ) (𝒜 : Set (Matrix ι ι ℝ)) (Y : Matrix ι ι ℝ) (x₀ : ι → ℝ) (s : Set (ι → ℝ)) :
        Set (ι → ℝ)

        The range of the Krawczyk operator K(s) = {x₀ - Y *ᵥ f x₀ + (1 - Y * A) *ᵥ (x - x₀) | A ∈ 𝒜, x ∈ s}, for a matrix Y (usually an approximate inverse of the midpoint of 𝒜) and a point x₀ (usually the midpoint of the box s). Interval arithmetic computes a box containing it. This is the exact range of the operator (25) of Krawczyk, Section 10, of (13) in Neumaier, Section 5.1 and of (8.13) in Moore–Kearfott–Cloud, for any set of matrices 𝒜 and any x₀.

        Equations
        Instances For
          theorem ConvexAnalysis.mem_krawczyk {ι : Type u_1} [Fintype ι] [DecidableEq ι] {f : (ι → ℝ) → ι → ℝ} {𝒜 : Set (Matrix ι ι ℝ)} {Y : Matrix ι ι ℝ} {x₀ : ι → ℝ} {s : Set (ι → ℝ)} {z : ι → ℝ} :
          z ∈ krawczyk f 𝒜 Y x₀ s ↔ ∃ A ∈ 𝒜, ∃ x ∈ s, x₀ - Y.mulVec (f x₀) + (1 - Y * A).mulVec (x - x₀) = z

          Membership in the range of the Krawczyk operator.

          theorem ConvexAnalysis.krawczyk_mono {ι : Type u_1} [Fintype ι] [DecidableEq ι] {f : (ι → ℝ) → ι → ℝ} {𝒜 : Set (Matrix ι ι ℝ)} {Y : Matrix ι ι ℝ} {x₀ : ι → ℝ} {s : Set (ι → ℝ)} {ℬ : Set (Matrix ι ι ℝ)} {t : Set (ι → ℝ)} (h𝒜 : 𝒜 ⊆ ℬ) (hst : s ⊆ t) :
          krawczyk f 𝒜 Y x₀ s ⊆ krawczyk f ℬ Y x₀ t

          The Krawczyk operator is monotone in the interval matrix and in the box.

          theorem ConvexAnalysis.sub_mulVec_mem_krawczyk {ι : Type u_1} [Fintype ι] [DecidableEq ι] {f : (ι → ℝ) → ι → ℝ} {𝒜 : Set (Matrix ι ι ℝ)} {Y A : Matrix ι ι ℝ} {x₀ x : ι → ℝ} {s : Set (ι → ℝ)} (hA : A ∈ 𝒜) (hx : x ∈ s) (h : f x - f x₀ = A.mulVec (x - x₀)) :
          x - Y.mulVec (f x) ∈ krawczyk f 𝒜 Y x₀ s

          If A ∈ 𝒜 is a slope of f between x ∈ s and x₀, then the Krawczyk operator contains the image x - Y *ᵥ f x of x under the simplified Newton map.

          theorem ConvexAnalysis.mem_krawczyk_of_eq_zero {ι : Type u_1} [Fintype ι] [DecidableEq ι] {f : (ι → ℝ) → ι → ℝ} {𝒜 : Set (Matrix ι ι ℝ)} {Y : Matrix ι ι ℝ} {x₀ x : ι → ℝ} {s : Set (ι → ℝ)} (h𝒜 : IsSlopeEnclosureAt 𝒜 f x₀ s) (hx : x ∈ s) (hfx : f x = 0) :
          x ∈ krawczyk f 𝒜 Y x₀ s

          Every zero of f in s lies in the Krawczyk operator, if 𝒜 encloses the slopes of f at x₀ on s (Krawczyk, Section 10; Neumaier, Theorem 5.1.8 (i), and Neumaier, Corollary 5.4.3 (i) for slope matrices). Here 𝒜 is any set of matrices and x₀ need not lie in s.

          theorem ConvexAnalysis.ne_zero_of_krawczyk_inter_eq_empty {ι : Type u_1} [Fintype ι] [DecidableEq ι] {f : (ι → ℝ) → ι → ℝ} {𝒜 : Set (Matrix ι ι ℝ)} {Y : Matrix ι ι ℝ} {x₀ x : ι → ℝ} {s : Set (ι → ℝ)} (h𝒜 : IsSlopeEnclosureAt 𝒜 f x₀ s) (hK : krawczyk f 𝒜 Y x₀ s ∩ s = ∅) (hx : x ∈ s) :
          f x ≠ 0

          The Krawczyk exclusion test Neumaier, Theorem 5.1.8 (ii), Neumaier, Corollary 5.4.3 (ii): if K(s) ∩ s = ∅, then f has no zero in s. In dimension one it is part of Krawczyk.

          theorem ConvexAnalysis.exists_isFixedPt_of_krawczyk_subset {ι : Type u_1} [Fintype ι] [DecidableEq ι] {f : (ι → ℝ) → ι → ℝ} {𝒜 : Set (Matrix ι ι ℝ)} {Y : Matrix ι ι ℝ} {x₀ a b : ι → ℝ} (hab : a ≤ b) (hf : ContinuousOn f (Set.Icc a b)) (h𝒜 : IsSlopeEnclosureAt 𝒜 f x₀ (Set.Icc a b)) (hK : krawczyk f 𝒜 Y x₀ (Set.Icc a b) ⊆ Set.Icc a b) :
          ∃ x ∈ Set.Icc a b, Function.IsFixedPt (fun (x : ι → ℝ) => x - Y.mulVec (f x)) x

          The Krawczyk existence test, fixed point form: if 𝒜 encloses the slopes of f at x₀ on the box X = Icc a b and K(X) ⊆ X, then the simplified Newton map x ↦ x - Y *ᵥ f x has a fixed point in X. By Brouwer's theorem, since the map sends X into K(X).

          theorem ConvexAnalysis.exists_eq_zero_of_krawczyk_subset {ι : Type u_1} [Fintype ι] [DecidableEq ι] {f : (ι → ℝ) → ι → ℝ} {𝒜 : Set (Matrix ι ι ℝ)} {Y : Matrix ι ι ℝ} {x₀ a b : ι → ℝ} (hab : a ≤ b) (hf : ContinuousOn f (Set.Icc a b)) (h𝒜 : IsSlopeEnclosureAt 𝒜 f x₀ (Set.Icc a b)) (hY : IsUnit Y) (hK : krawczyk f 𝒜 Y x₀ (Set.Icc a b) ⊆ Set.Icc a b) :
          ∃ x ∈ Set.Icc a b, f x = 0

          The Krawczyk existence test (Moore, Moore–Kearfott–Cloud, Theorem 8.2): if 𝒜 encloses the slopes of f at x₀ on the box X = Icc a b, Y is invertible and K(X) ⊆ X, then f has a zero in X. Moore–Kearfott–Cloud take the interval Jacobian for 𝒜 and x₀ ∈ X; here 𝒜 is any set of matrices enclosing the slopes at x₀, and x₀ is arbitrary. Neumaier states only the strict form (ConvexAnalysis.existsUnique_eq_zero_of_krawczyk_subset_interior).

          theorem ConvexAnalysis.eq_zero_of_isFixedPt_of_forall_abs_lt {ι : Type u_1} [Fintype ι] {ψ : (ι → ℝ) → ι → ℝ} {w v : ι → ℝ} (hw : 0 ≤ w) (hψ : ∀ (t : ℝ) (u : ι → ℝ), ψ (t • u) = t • ψ u) (h : ∀ (u : ι → ℝ), (∀ (j : ι), |u j| ≤ w j) → ∀ (i : ι), |ψ u i| < w i) (hv : Function.IsFixedPt ψ v) :
          v = 0

          A homogeneous map ψ (for example a linear map) that sends the box |u j| ≤ w j into the open box |v i| < w i has no fixed point other than 0: a fixed point v ≠ 0, scaled so that the largest ratio |v j| / w j is 1, would satisfy |v k| < |v k| at a coordinate k where the ratio is largest.

          theorem ConvexAnalysis.exists_mem_Icc_sub_eq {ι : Type u_1} {a b : ι → ℝ} (hab : a ≤ b) {u : ι → ℝ} (hu : ∀ (j : ι), |u j| ≤ (b - a) j) :
          ∃ x ∈ Set.Icc a b, ∃ x' ∈ Set.Icc a b, x - x' = u

          Every vector u with |u j| ≤ b j - a j for all j is the difference x - x' of two points of the box Icc a b.

          theorem ConvexAnalysis.isUnit_mul_of_krawczyk_subset_interior {ι : Type u_1} [Fintype ι] [DecidableEq ι] {f : (ι → ℝ) → ι → ℝ} {𝒜 : Set (Matrix ι ι ℝ)} {Y A : Matrix ι ι ℝ} {x₀ a b : ι → ℝ} (hab : a ≤ b) (hK : krawczyk f 𝒜 Y x₀ (Set.Icc a b) ⊆ interior (Set.Icc a b)) (hA : A ∈ 𝒜) :
          IsUnit (Y * A)

          If K(X) ⊆ interior X, then Y * A is invertible for every A ∈ 𝒜. For an interval matrix 𝒜, Neumaier, Proposition 5.1.10 gives the stronger conclusion that the spectral radius of |Y 𝒜 - 1| is less than one, and Neumaier, Theorem 5.1.8 (iii) that 𝒜 is strongly regular.

          theorem ConvexAnalysis.isUnit_of_krawczyk_subset_interior {ι : Type u_1} [Fintype ι] [DecidableEq ι] {f : (ι → ℝ) → ι → ℝ} {𝒜 : Set (Matrix ι ι ℝ)} {Y A : Matrix ι ι ℝ} {x₀ a b : ι → ℝ} (hab : a ≤ b) (hK : krawczyk f 𝒜 Y x₀ (Set.Icc a b) ⊆ interior (Set.Icc a b)) (hA : A ∈ 𝒜) :

          If K(X) ⊆ interior X and 𝒜 is nonempty, then Y is invertible.

          theorem ConvexAnalysis.isUnit_of_mem_of_krawczyk_subset_interior {ι : Type u_1} [Fintype ι] [DecidableEq ι] {f : (ι → ℝ) → ι → ℝ} {𝒜 : Set (Matrix ι ι ℝ)} {Y A : Matrix ι ι ℝ} {x₀ a b : ι → ℝ} (hab : a ≤ b) (hK : krawczyk f 𝒜 Y x₀ (Set.Icc a b) ⊆ interior (Set.Icc a b)) (hA : A ∈ 𝒜) :

          If K(X) ⊆ interior X, then every A ∈ 𝒜 is invertible.

          theorem ConvexAnalysis.existsUnique_eq_zero_of_krawczyk_subset_interior {ι : Type u_1} [Fintype ι] [DecidableEq ι] {f : (ι → ℝ) → ι → ℝ} {𝒜 : Set (Matrix ι ι ℝ)} {Y : Matrix ι ι ℝ} {x₀ a b : ι → ℝ} (hab : a ≤ b) (hf : ContinuousOn f (Set.Icc a b)) (h𝒜 : IsSlopeEnclosure 𝒜 f (Set.Icc a b)) (hx₀ : x₀ ∈ Set.Icc a b) (hK : krawczyk f 𝒜 Y x₀ (Set.Icc a b) ⊆ interior (Set.Icc a b)) :
          ∃! x : ι → ℝ, x ∈ Set.Icc a b ∧ f x = 0

          The strict Krawczyk test Neumaier, Theorem 5.1.8 (iii) (credited there to Kahan (1968) and Moore; see also Moore–Kearfott–Cloud, Theorem 8.3 and Rump's survey): if 𝒜 encloses the slopes of the continuous map f on the box X = Icc a b, x₀ ∈ X, and K(X) ⊆ interior X, then f has exactly one zero in X. No invertibility of Y or of the members of 𝒜 is assumed: it follows. Neumaier assumes a Lipschitz matrix and x₀ ∈ interior X, Moore–Kearfott–Cloud a cube with x₀ its midpoint.

          The interval Newton operator #

          def ConvexAnalysis.intervalNewton {ι : Type u_1} [Fintype ι] (f : (ι → ℝ) → ι → ℝ) (𝒜 : Set (Matrix ι ι ℝ)) (x₀ : ι → ℝ) :
          Set (ι → ℝ)

          The interval Newton operator N = {x₀ - v | A *ᵥ v = f x₀ for some A ∈ 𝒜}: the solution set of the interval linear system 𝒜 v ∋ f x₀, subtracted from x₀. Interval Gaussian elimination computes a box containing it, and the interval Gauss–Seidel step a box containing its intersection with the current box Neumaier, Sections 4.3 and 4.5. Neumaier's Newton operator N(x̃, x) = x̃ - A^H F(x̃), (11) in Neumaier, Section 5.1, is the interval hull of this set.

          Equations
          Instances For
            theorem ConvexAnalysis.mem_intervalNewton {ι : Type u_1} [Fintype ι] {f : (ι → ℝ) → ι → ℝ} {𝒜 : Set (Matrix ι ι ℝ)} {x₀ z : ι → ℝ} :
            z ∈ intervalNewton f 𝒜 x₀ ↔ ∃ A ∈ 𝒜, A.mulVec (x₀ - z) = f x₀

            Membership in the interval Newton operator: z ∈ N(X) iff A *ᵥ (x₀ - z) = f x₀ for some A ∈ 𝒜.

            theorem ConvexAnalysis.intervalNewton_mono {ι : Type u_1} [Fintype ι] {f : (ι → ℝ) → ι → ℝ} {𝒜 : Set (Matrix ι ι ℝ)} {x₀ : ι → ℝ} {ℬ : Set (Matrix ι ι ℝ)} (h𝒜 : 𝒜 ⊆ ℬ) :
            intervalNewton f 𝒜 x₀ ⊆ intervalNewton f ℬ x₀

            The interval Newton operator is monotone in the interval matrix.

            theorem ConvexAnalysis.mem_intervalNewton_of_eq_zero {ι : Type u_1} [Fintype ι] {f : (ι → ℝ) → ι → ℝ} {𝒜 : Set (Matrix ι ι ℝ)} {x₀ x : ι → ℝ} {s : Set (ι → ℝ)} (h𝒜 : IsSlopeEnclosureAt 𝒜 f x₀ s) (hx : x ∈ s) (hfx : f x = 0) :
            x ∈ intervalNewton f 𝒜 x₀

            Every zero of f in s lies in the interval Newton operator, if 𝒜 encloses the slopes of f at x₀ on s (Neumaier, Theorems 5.1.7 (i) and 5.4.2 (i), Moore–Kearfott–Cloud, Theorem 8.1 in dimension one). Here 𝒜 is any set of matrices.

            theorem ConvexAnalysis.ne_zero_of_intervalNewton_inter_eq_empty {ι : Type u_1} [Fintype ι] {f : (ι → ℝ) → ι → ℝ} {𝒜 : Set (Matrix ι ι ℝ)} {x₀ x : ι → ℝ} {s : Set (ι → ℝ)} (h𝒜 : IsSlopeEnclosureAt 𝒜 f x₀ s) (hN : intervalNewton f 𝒜 x₀ ∩ s = ∅) (hx : x ∈ s) :
            f x ≠ 0

            The interval Newton exclusion test Neumaier, Theorems 5.1.7 (ii) and 5.4.2 (ii): if N ∩ s = ∅, then f has no zero in s.

            theorem ConvexAnalysis.mem_of_intervalNewton_inter_subset {ι : Type u_1} [Fintype ι] {f : (ι → ℝ) → ι → ℝ} {x : ι → ℝ} {X : ℕ → Set (ι → ℝ)} {x₀ : ℕ → ι → ℝ} {𝒜 : ℕ → Set (Matrix ι ι ℝ)} (h𝒜 : ∀ (k : ℕ), IsSlopeEnclosureAt (𝒜 k) f (x₀ k) (X k)) (hX : ∀ (k : ℕ), intervalNewton f (𝒜 k) (x₀ k) ∩ X k ⊆ X (k + 1)) (hx : x ∈ X 0) (hfx : f x = 0) (k : ℕ) :
            x ∈ X k

            The interval Newton iteration keeps every zero: if 𝒜 k encloses the slopes of f at x₀ k on X k, and each X (k + 1) contains N(X k) ∩ X k (for example, is equal to it, is the intersection of X k with a box enclosing N(X k), or is the result of an interval Gauss–Seidel step), then every zero of f in X 0 lies in every X k. In particular, if some X k is empty, f has no zero in X 0. Compare the iteration (1) of Neumaier, Section 5.2 and, in dimension one, Moore–Kearfott–Cloud, Theorem 8.1.

            theorem ConvexAnalysis.exists_eq_zero_of_intervalNewton_subset {ι : Type u_1} [Fintype ι] {f : (ι → ℝ) → ι → ℝ} {𝒜 : Set (Matrix ι ι ℝ)} {x₀ a b : ι → ℝ} [DecidableEq ι] (hab : a ≤ b) (hf : ContinuousOn f (Set.Icc a b)) (h𝒜 : IsCompact 𝒜) (h𝒜c : Convex ℝ 𝒜) (hunit : ∀ A ∈ 𝒜, IsUnit A) (hslope : IsSlopeEnclosureAt 𝒜 f x₀ (Set.Icc a b)) (hN : intervalNewton f 𝒜 x₀ ⊆ Set.Icc a b) :
            ∃ x ∈ Set.Icc a b, f x = 0

            The interval Newton existence test, Kakutani form: let 𝒜 be a compact convex set of invertible matrices (for example an interval matrix ConvexAnalysis.matrixIcc A₁ A₂ without singular members) that encloses the slopes of the continuous map f at x₀ on the box X = Icc a b. If N ⊆ X, then f has a zero in X. Convexity of 𝒜 is needed (see the implementation notes). Neumaier, Theorem 5.4.2 (iii) assumes N ⊆ interior X and x₀ ∈ X; here N ⊆ X suffices and x₀ is arbitrary.

            theorem ConvexAnalysis.existsUnique_eq_zero_of_intervalNewton_subset {ι : Type u_1} [Fintype ι] {f : (ι → ℝ) → ι → ℝ} {𝒜 : Set (Matrix ι ι ℝ)} {x₀ a b : ι → ℝ} [DecidableEq ι] (hab : a ≤ b) (h𝒜 : IsCompact 𝒜) (h𝒜c : Convex ℝ 𝒜) (hunit : ∀ A ∈ 𝒜, IsUnit A) (hs : IsSlopeEnclosure 𝒜 f (Set.Icc a b)) (hx₀ : x₀ ∈ Set.Icc a b) (hN : intervalNewton f 𝒜 x₀ ⊆ Set.Icc a b) :
            ∃! x : ι → ℝ, x ∈ Set.Icc a b ∧ f x = 0

            The interval Newton existence and uniqueness test Neumaier, Theorem 5.1.7 (iii) (credited there to Nickel (1971)): let 𝒜 be a compact convex set of invertible matrices (for example an interval matrix without singular members) that encloses the slopes of f on the box X = Icc a b, and x₀ ∈ X. If N ⊆ X, then f has exactly one zero in X. The continuity of f follows from the slope enclosure (ConvexAnalysis.IsSlopeEnclosure.continuousOn). Neumaier assumes x₀ ∈ interior X, and Moore–Kearfott–Cloud, Theorem 8.4 assumes N ⊆ interior X; here x₀ ∈ X and N ⊆ X suffice.

            Quadratic convergence #

            theorem ConvexAnalysis.norm_sub_le_of_mem_intervalNewton {ι : Type u_1} [Fintype ι] {f : (ι → ℝ) → ι → ℝ} {𝒜 : Set (Matrix ι ι ℝ)} {x₀ x : ι → ℝ} {β δ : ℝ} (hβ0 : 0 ≤ β) (hfx : f x = 0) (hslope : ∃ B ∈ 𝒜, f x₀ - f x = B.mulVec (x₀ - x)) (hβ : ∀ A ∈ 𝒜, ∀ (v : ι → ℝ), ‖v‖ ≤ β * ‖A.mulVec v‖) (hδ : ∀ A ∈ 𝒜, ∀ B ∈ 𝒜, ∀ (v : ι → ℝ), ‖(A - B).mulVec v‖ ≤ δ * ‖v‖) {z : ι → ℝ} (hz : z ∈ intervalNewton f 𝒜 x₀) :
            ‖z - x‖ ≤ β * δ * ‖x₀ - x‖

            One step of the interval Newton method contracts towards a zero x of f: if the members of 𝒜 have inverses bounded by β, 𝒜 has diameter at most δ (as operators), and some B ∈ 𝒜 is a slope of f between x₀ and x, then every z ∈ N satisfies ‖z - x‖ ≤ β δ ‖x₀ - x‖.

            theorem ConvexAnalysis.intervalNewton_diam_succ_le {ι : Type u_1} [Fintype ι] {f : (ι → ℝ) → ι → ℝ} {x : ι → ℝ} {X : ℕ → Set (ι → ℝ)} {x₀ : ℕ → ι → ℝ} {𝒜 : ℕ → Set (Matrix ι ι ℝ)} {β L : ℝ} (hβ0 : 0 ≤ β) (hL0 : 0 ≤ L) (hx : x ∈ X 0) (hfx : f x = 0) (hx₀ : ∀ (k : ℕ), x₀ k ∈ X k) (hbdd : ∀ (k : ℕ), Bornology.IsBounded (X k)) (h𝒜 : ∀ (k : ℕ), IsSlopeEnclosureAt (𝒜 k) f (x₀ k) (X k)) (hN : ∀ (k : ℕ), intervalNewton f (𝒜 k) (x₀ k) ∩ X k ⊆ X (k + 1)) (hdiam : ∀ (k : ℕ), Metric.diam (X (k + 1)) ≤ Metric.diam (intervalNewton f (𝒜 k) (x₀ k) ∩ X k)) (hβ : ∀ (k : ℕ), ∀ A ∈ 𝒜 k, ∀ (v : ι → ℝ), ‖v‖ ≤ β * ‖A.mulVec v‖) (hδ : ∀ (k : ℕ), ∀ A ∈ 𝒜 k, ∀ B ∈ 𝒜 k, ∀ (v : ι → ℝ), ‖(A - B).mulVec v‖ ≤ L * Metric.diam (X k) * ‖v‖) (k : ℕ) :
            Metric.diam (X (k + 1)) ≤ 2 * β * L * Metric.diam (X k) ^ 2

            Quadratic convergence of the interval Newton method, one step. Let X k be bounded sets (boxes, in practice) with points x₀ k ∈ X k and enclosures 𝒜 k of the slopes of f at x₀ k on X k, such that X (k + 1) contains N(X k) ∩ X k and has at most its diameter. The interval hull Icc (sInf S) (sSup S) of S = N(X k) ∩ X k has both properties (Bornology.IsBounded.subset_Icc_sInf_sSup, ConvexAnalysis.diam_Icc_sInf_sSup). Let the inverses of the members of 𝒜 k be bounded by β, and the members of 𝒜 k differ by at most L · diam (X k) (as operators). If f has a zero in X 0, then diam (X (k + 1)) ≤ 2 β L diam (X k) ^ 2. If 𝒜 k lies within L' · diam (X k) of a fixed matrix J (for example the Jacobian at a zero, when the Jacobian is Lipschitz), this holds with L = 2 L'. Neumaier has no such statement for the Newton operator with a fixed set of matrices; his quadratic convergence results Neumaier, Theorems 5.2.14 and 5.2.15 are for related iterations.

            This is the idealized method, with the exact solution set N(X k) or its interval hull. A computed enclosure of N(X k) by interval arithmetic may be wider, and then the diameter hypothesis hdiam fails; such enclosures need an additional bound on their overestimation.

            theorem ConvexAnalysis.intervalNewton_diam_le_pow {ι : Type u_1} [Fintype ι] {f : (ι → ℝ) → ι → ℝ} {x : ι → ℝ} {X : ℕ → Set (ι → ℝ)} {x₀ : ℕ → ι → ℝ} {𝒜 : ℕ → Set (Matrix ι ι ℝ)} {β L : ℝ} (hβ0 : 0 ≤ β) (hL0 : 0 ≤ L) (hx : x ∈ X 0) (hfx : f x = 0) (hx₀ : ∀ (k : ℕ), x₀ k ∈ X k) (hbdd : ∀ (k : ℕ), Bornology.IsBounded (X k)) (h𝒜 : ∀ (k : ℕ), IsSlopeEnclosureAt (𝒜 k) f (x₀ k) (X k)) (hN : ∀ (k : ℕ), intervalNewton f (𝒜 k) (x₀ k) ∩ X k ⊆ X (k + 1)) (hdiam : ∀ (k : ℕ), Metric.diam (X (k + 1)) ≤ Metric.diam (intervalNewton f (𝒜 k) (x₀ k) ∩ X k)) (hβ : ∀ (k : ℕ), ∀ A ∈ 𝒜 k, ∀ (v : ι → ℝ), ‖v‖ ≤ β * ‖A.mulVec v‖) (hδ : ∀ (k : ℕ), ∀ A ∈ 𝒜 k, ∀ B ∈ 𝒜 k, ∀ (v : ι → ℝ), ‖(A - B).mulVec v‖ ≤ L * Metric.diam (X k) * ‖v‖) (k : ℕ) :
            Metric.diam (X k) ≤ (2 * β * L * Metric.diam (X 0)) ^ (2 ^ k - 1) * Metric.diam (X 0)

            Quadratic convergence of the interval Newton method, the explicit rate: under the hypotheses of ConvexAnalysis.intervalNewton_diam_succ_le, with q = 2 β L diam (X 0), diam (X k) ≤ q ^ (2 ^ k - 1) * diam (X 0) for every k. This is the recursion diam (X (k + 1)) ≤ 2 β L diam (X k) ^ 2, solved; it is useful when q < 1 (ConvexAnalysis.intervalNewton_tendsto_diam).

            theorem ConvexAnalysis.intervalNewton_tendsto_diam {ι : Type u_1} [Fintype ι] {f : (ι → ℝ) → ι → ℝ} {x : ι → ℝ} {X : ℕ → Set (ι → ℝ)} {x₀ : ℕ → ι → ℝ} {𝒜 : ℕ → Set (Matrix ι ι ℝ)} {β L : ℝ} (hβ0 : 0 ≤ β) (hL0 : 0 ≤ L) (hx : x ∈ X 0) (hfx : f x = 0) (hx₀ : ∀ (k : ℕ), x₀ k ∈ X k) (hbdd : ∀ (k : ℕ), Bornology.IsBounded (X k)) (h𝒜 : ∀ (k : ℕ), IsSlopeEnclosureAt (𝒜 k) f (x₀ k) (X k)) (hN : ∀ (k : ℕ), intervalNewton f (𝒜 k) (x₀ k) ∩ X k ⊆ X (k + 1)) (hdiam : ∀ (k : ℕ), Metric.diam (X (k + 1)) ≤ Metric.diam (intervalNewton f (𝒜 k) (x₀ k) ∩ X k)) (hβ : ∀ (k : ℕ), ∀ A ∈ 𝒜 k, ∀ (v : ι → ℝ), ‖v‖ ≤ β * ‖A.mulVec v‖) (hδ : ∀ (k : ℕ), ∀ A ∈ 𝒜 k, ∀ B ∈ 𝒜 k, ∀ (v : ι → ℝ), ‖(A - B).mulVec v‖ ≤ L * Metric.diam (X k) * ‖v‖) (hsmall : 2 * β * L * Metric.diam (X 0) < 1) :

            Quadratic convergence of the interval Newton method: under the hypotheses of ConvexAnalysis.intervalNewton_diam_succ_le, if 2 β L diam (X 0) < 1, then the diameters of the boxes X k tend to 0, by the quadratic rate of ConvexAnalysis.intervalNewton_diam_le_pow. As there, this is the idealized method with the exact solution sets or their interval hulls.

            Global optimization: stationary points in a box #

            theorem ConvexAnalysis.not_isLocalMin_of_intervalNewton_inter_eq_empty {ι : Type u_1} [Fintype ι] [DecidableEq ι] {φ : (ι → ℝ) → ℝ} {g : (ι → ℝ) → ι → ℝ} {𝒜 : Set (Matrix ι ι ℝ)} {x₀ x : ι → ℝ} {s : Set (ι → ℝ)} (hg : ∀ x ∈ s, ∀ (i : ι), HasDerivAt (fun (t : ℝ) => φ (Function.update x i t)) (g x i) (x i)) (h𝒜 : IsSlopeEnclosureAt 𝒜 g x₀ s) (hN : intervalNewton g 𝒜 x₀ ∩ s = ∅) (hx : x ∈ s) :

            The interval Newton exclusion test for minimizers: let g x i be the i-th partial derivative of φ at x ∈ s, and 𝒜 enclose the slopes of g at x₀ on s (for example an interval matrix containing the Hessians of φ). If N ∩ s = ∅ for g, then no point of s is a local minimizer of φ. In interval branch and bound, boxes in the interior of the search region are discarded this way.

            theorem ConvexAnalysis.exists_eq_zero_and_isLocalMin_eq_of_krawczyk_subset_interior {ι : Type u_1} [Fintype ι] [DecidableEq ι] {φ : (ι → ℝ) → ℝ} {g : (ι → ℝ) → ι → ℝ} {𝒜 : Set (Matrix ι ι ℝ)} {Y : Matrix ι ι ℝ} {x₀ a b : ι → ℝ} (hab : a ≤ b) (hgc : ContinuousOn g (Set.Icc a b)) (hg : ∀ x ∈ Set.Icc a b, ∀ (i : ι), HasDerivAt (fun (t : ℝ) => φ (Function.update x i t)) (g x i) (x i)) (h𝒜 : IsSlopeEnclosure 𝒜 g (Set.Icc a b)) (hx₀ : x₀ ∈ Set.Icc a b) (hK : krawczyk g 𝒜 Y x₀ (Set.Icc a b) ⊆ interior (Set.Icc a b)) :
            ∃ x ∈ Set.Icc a b, g x = 0 ∧ (∀ y ∈ Set.Icc a b, g y = 0 → y = x) ∧ ∀ y ∈ Set.Icc a b, IsLocalMin φ y → y = x

            The strict Krawczyk test for stationary points: let g x i be the i-th partial derivative of φ at x ∈ X = Icc a b, g continuous on X, and 𝒜 enclose the slopes of g on X, x₀ ∈ X. If K(X) ⊆ interior X for g, then X contains exactly one stationary point x of φ (a zero of g), and every local minimizer of φ in X is x.