Documentation

ConvexAnalysis.HansenSengupta

The Hansen–Sengupta operator #

The Hansen–Sengupta operator of Hansen–Sengupta is the interval Newton operator computed by one sweep of the preconditioned interval Gauss–Seidel method. For a box X, a point x₀ ∈ X, an interval matrix G enclosing the preconditioned slopes Y A of f and an interval vector b enclosing Y f(x₀), it replaces the sides of X one after the other by

X'ᵢ = (x₀ᵢ - (bᵢ + ∑_{j ≠ i} Gᵢⱼ (X'ⱼ - x₀ⱼ)) / Gᵢᵢ) ∩ Xᵢ,

where X'ⱼ = Xⱼ for the sides not yet replaced; a row with 0 ∈ Gᵢᵢ leaves its side unchanged. It is the operator H(x̃, x) = x̃ + Γ(C A, -C F(x̃), x - x̃) of Neumaier, Section 5.1, (14) there, with Neumaier's Gauss–Seidel operator Γ of Neumaier, Section 4.3, (15) there, and one sweep of the iteration (7.10) of Moore–Kearfott–Cloud, Section 7.5. It encloses the zeros of f in X at least as tightly as the Krawczyk operator with the same preconditioner (Neumaier, Theorem 4.3.5 and (15) of Section 5.1), and its existence test succeeds on boxes where the Krawczyk test fails (ConvexAnalysis.existsUnique_circle_inter_hyperbola_hansenSengupta).

The test X' ⊆ int X certifies by itself that every matrix of the interval matrix is invertible; no regularity is assumed. With the dyadic evaluator of ConvexAnalysis.IntervalDyadic, the operator is a computable function whose result the kernel checks: an empty result excludes the zeros, every zero lies in the result, and a result inside the box proves a unique zero.

Main definitions #

Main statements #

Implementation notes #

References #

Tags #

Hansen–Sengupta operator, interval Gauss–Seidel method, interval Newton method, existence test, exclusion test, verified computation, computer-assisted proof

Intersections and interval products #

theorem ConvexAnalysis.IntervalArith.subset_Ioo_of_inter_subset_Ioo {s t : Set ℝ} (ht : t.OrdConnected) {a b : ℝ} (hs : Set.Icc a b ⊆ s) (hst : s ∩ t ⊆ Set.Ioo a b) (hne : (s ∩ t).Nonempty) :
t ⊆ Set.Ioo a b

An interval that meets [a, b] only inside (a, b) lies in (a, b): if t is order-connected, s contains [a, b], and s ∩ t is nonempty and lies in (a, b), then t ⊆ (a, b); otherwise t would contain a or b.

theorem ConvexAnalysis.IntervalArith.mem_of_inf_eq_coe {X Y Z : NonemptyInterval ℝ} {x : ℝ} (h : ↑X ⊓ ↑Y = ↑Z) :
x ∈ Z ↔ x ∈ X ∧ x ∈ Y

The points of the intersection X ⊓ Y in Mathlib's lattice Interval ℝ, if it is the interval Z, are the common points of X and Y.

theorem ConvexAnalysis.IntervalArith.exists_inf_eq_coe {X Y : NonemptyInterval ℝ} {x : ℝ} (hX : x ∈ X) (hY : x ∈ Y) :
∃ (Z : NonemptyInterval ℝ), ↑X ⊓ ↑Y = ↑Z ∧ x ∈ Z

A common point of two intervals lies in their intersection in Interval ℝ, which is an interval, not ⊥.

theorem ConvexAnalysis.IntervalArith.mem_of_inf_eq_coe_of_lt {X Y Z : NonemptyInterval ℝ} {x : ℝ} (h : ↑X ⊓ ↑Y = ↑Z) (hlt : X.toProd.1 < Z.toProd.1 ∧ Z.toProd.2 < X.toProd.2) (hx : x ∈ Y) :
x ∈ Z

If the intersection Z of X and Y in Interval ℝ lies in the interior of X, then it is all of Y: every point of Y lies in Z.

theorem ConvexAnalysis.IntervalArith.mul_apply_mem_sum_mul_pure {ι : Type u_1} [Fintype ι] {Y A : Matrix ι ι ℝ} {M : ι → ι → NonemptyInterval ℝ} (hA : ∀ (k j : ι), A k j ∈ M k j) (i j : ι) :
(Y * A) i j ∈ ∑ k : ι, mul (NonemptyInterval.pure (Y i k)) (M k j)

Interval matrix products: if the entries of A lie in the interval matrix M, the entries of Y * A lie in the interval matrix ∑ k, Yᵢₖ Mₖⱼ computed in interval arithmetic.

theorem ConvexAnalysis.IntervalArith.mulVec_apply_mem_sum_mul_pure {ι : Type u_1} [Fintype ι] {Y : Matrix ι ι ℝ} {v : ι → ℝ} {F : ι → NonemptyInterval ℝ} (hv : ∀ (k : ι), v k ∈ F k) (i : ι) :
Y.mulVec v i ∈ ∑ k : ι, mul (NonemptyInterval.pure (Y i k)) (F k)

Interval matrix-vector products: if v k ∈ F k for all k, then the coordinates of Y *ᵥ v lie in the intervals ∑ k, Yᵢₖ Fₖ computed in interval arithmetic.

Gauss–Seidel sweeps of a real linear system #

noncomputable def ConvexAnalysis.gaussSeidelStep {ι : Type u_1} [Fintype ι] [DecidableEq ι] (G : Matrix ι ι ℝ) (c x₀ x : ι → ℝ) (i : ι) :
ι → ℝ

One Gauss–Seidel step for the linear system G (x - x₀) = -c in the row i: the coordinate x i is replaced by the solution of the i-th equation, the other coordinates kept, x i ↦ x₀ i - (c i + ∑_{j ≠ i} G i j (x j - x₀ j)) / G i i.

Equations
Instances For
    noncomputable def ConvexAnalysis.gaussSeidelSweep {ι : Type u_1} [Fintype ι] [DecidableEq ι] (G : Matrix ι ι ℝ) (c x₀ : ι → ℝ) (l : List ι) (x : ι → ℝ) :
    ι → ℝ

    One Gauss–Seidel sweep for G (x - x₀) = -c: the Gauss–Seidel steps in the rows of the list l, one after the other.

    Equations
    Instances For
      theorem ConvexAnalysis.gaussSeidelSweep_cons {ι : Type u_1} [Fintype ι] [DecidableEq ι] {G : Matrix ι ι ℝ} {c x₀ : ι → ℝ} (i : ι) (l : List ι) (x : ι → ℝ) :
      gaussSeidelSweep G c x₀ (i :: l) x = gaussSeidelSweep G c x₀ l (gaussSeidelStep G c x₀ x i)

      The sweep through i :: l is the step in the row i, followed by the sweep through l.

      theorem ConvexAnalysis.gaussSeidelSweep_sub {ι : Type u_1} [Fintype ι] [DecidableEq ι] {G : Matrix ι ι ℝ} {c x₀ : ι → ℝ} (l : List ι) (x y : ι → ℝ) :
      gaussSeidelSweep G c x₀ l x - gaussSeidelSweep G c x₀ l y = gaussSeidelSweep G 0 0 l (x - y)

      The sweep is affine: differences of sweeps are sweeps of the homogeneous system.

      theorem ConvexAnalysis.gaussSeidelSweep_smul {ι : Type u_1} [Fintype ι] [DecidableEq ι] {G : Matrix ι ι ℝ} (l : List ι) (t : ℝ) (u : ι → ℝ) :
      gaussSeidelSweep G 0 0 l (t • u) = t • gaussSeidelSweep G 0 0 l u

      The sweep of the homogeneous system is homogeneous.

      theorem ConvexAnalysis.gaussSeidelStep_eq_self {ι : Type u_1} [Fintype ι] [DecidableEq ι] {G : Matrix ι ι ℝ} {c x₀ : ι → ℝ} {i : ι} (hG : G i i ≠ 0) {x : ι → ℝ} (hx : G.mulVec (x - x₀) = -c) :
      gaussSeidelStep G c x₀ x i = x

      A solution of G (x - x₀) = -c is not changed by a Gauss–Seidel step in a row with G i i ≠ 0.

      theorem ConvexAnalysis.gaussSeidelSweep_eq_self {ι : Type u_1} [Fintype ι] [DecidableEq ι] {G : Matrix ι ι ℝ} {c x₀ : ι → ℝ} {l : List ι} (hl : ∀ i ∈ l, G i i ≠ 0) {x : ι → ℝ} (hx : G.mulVec (x - x₀) = -c) :
      gaussSeidelSweep G c x₀ l x = x

      A solution of G (x - x₀) = -c is a fixed point of every sweep through rows with nonzero diagonal entries.

      theorem ConvexAnalysis.continuous_gaussSeidelSweep {ι : Type u_1} [Fintype ι] [DecidableEq ι] {G : Matrix ι ι ℝ} {c x₀ : ι → ℝ} (l : List ι) :

      The Gauss–Seidel sweep is continuous.

      theorem ConvexAnalysis.isUnit_of_gaussSeidelSweep {ι : Type u_1} [Fintype ι] [DecidableEq ι] {G : Matrix ι ι ℝ} {c x₀ a b : ι → ℝ} {l : List ι} (hab : a ≤ b) (hl : ∀ i ∈ l, G i i ≠ 0) (hφ : ∀ x ∈ Set.Icc a b, ∀ (i : ι), a i < gaussSeidelSweep G c x₀ l x i ∧ gaussSeidelSweep G c x₀ l x i < b i) :

      Regularity from a Gauss–Seidel sweep: if the sweep through rows with nonzero diagonal entries maps the box Icc a b into its interior, side by side, then G is invertible.

      theorem ConvexAnalysis.mem_Icc_of_gaussSeidelSweep {ι : Type u_1} [Fintype ι] [DecidableEq ι] {G : Matrix ι ι ℝ} {c x₀ a b : ι → ℝ} {l : List ι} (hab : a ≤ b) (hl : ∀ i ∈ l, G i i ≠ 0) (hφ : ∀ x ∈ Set.Icc a b, ∀ (i : ι), a i < gaussSeidelSweep G c x₀ l x i ∧ gaussSeidelSweep G c x₀ l x i < b i) {x : ι → ℝ} (hx : G.mulVec (x - x₀) = -c) :
      x ∈ Set.Icc a b

      The solution lies in the box: if the sweep through rows with nonzero diagonal entries maps the box Icc a b into its interior, side by side, then every solution of G (x - x₀) = -c lies in the box. By Brouwer's theorem the sweep has a fixed point in the box, and it has only one fixed point.

      The Hansen–Sengupta operator in interval arithmetic #

      noncomputable def ConvexAnalysis.hansenSenguptaStep {ι : Type u_1} [Fintype ι] [DecidableEq ι] (G : ι → ι → NonemptyInterval ℝ) (b : ι → NonemptyInterval ℝ) (x₀ : ι → ℝ) (X : ι → NonemptyInterval ℝ) (i : ι) :

      One step of the Hansen–Sengupta operator in the row i: if 0 ∉ G i i, the side X i is replaced by its intersection with x₀ i - (b i + ∑_{j ≠ i} G i j (X j - x₀ j)) / G i i, computed in interval arithmetic and intersected in Mathlib's lattice Interval ℝ; the result is none if the intersection is empty. If 0 ∈ G i i, the step leaves the box unchanged.

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        theorem ConvexAnalysis.hansenSenguptaStep_of_zero_mem {ι : Type u_1} [Fintype ι] [DecidableEq ι] {G : ι → ι → NonemptyInterval ℝ} {b : ι → NonemptyInterval ℝ} {x₀ : ι → ℝ} {X : ι → NonemptyInterval ℝ} {i : ι} (h : 0 ∈ G i i) :
        hansenSenguptaStep G b x₀ X i = some X

        A step of the Hansen–Sengupta operator in a row with 0 ∈ G i i leaves the box unchanged.

        theorem ConvexAnalysis.hansenSenguptaStep_of_zero_notMem {ι : Type u_1} [Fintype ι] [DecidableEq ι] {G : ι → ι → NonemptyInterval ℝ} {b : ι → NonemptyInterval ℝ} {x₀ : ι → ℝ} {X : ι → NonemptyInterval ℝ} {i : ι} (h : 0 ∉ G i i) :
        hansenSenguptaStep G b x₀ X i = Option.map (Function.update X i) (↑(X i) ⊓ ↑(NonemptyInterval.pure (x₀ i) - IntervalArith.mul (b i + ∑ j ∈ Finset.univ.erase i, IntervalArith.mul (G i j) (X j - NonemptyInterval.pure (x₀ j))) (IntervalArith.inv (G i i) h)))

        A step of the Hansen–Sengupta operator in a row with 0 ∉ G i i intersects the side.

        noncomputable def ConvexAnalysis.hansenSengupta {ι : Type u_1} [Fintype ι] [DecidableEq ι] (G : ι → ι → NonemptyInterval ℝ) (b : ι → NonemptyInterval ℝ) (x₀ : ι → ℝ) (l : List ι) (X : ι → NonemptyInterval ℝ) :

        The Hansen–Sengupta operator H(x₀, X) = x₀ + Γ(G, -b, X - x₀) of Neumaier, Section 5.1, (14) there, with G an interval matrix enclosing the preconditioned slopes Y A and b an interval vector enclosing Y f(x₀): one sweep of the interval Gauss–Seidel method (Neumaier, Section 4.3, (15) there; Moore–Kearfott–Cloud, Section 7.5, (7.10) there) through the rows in the order of the list l, each row with 0 ∉ G i i replacing its side by (x₀ i - (b i + ∑_{j ≠ i} G i j (X j - x₀ j)) / G i i) ∩ X i with the current sides X j, and each row with 0 ∈ G i i leaving it unchanged. It is none if some intersection is empty, which proves that f has no zero in X (ConvexAnalysis.ne_zero_of_hansenSengupta_eq_none).

        Equations
        Instances For
          theorem ConvexAnalysis.hansenSengupta_cons {ι : Type u_1} [Fintype ι] [DecidableEq ι] {G : ι → ι → NonemptyInterval ℝ} {b : ι → NonemptyInterval ℝ} {x₀ : ι → ℝ} {X : ι → NonemptyInterval ℝ} {l : List ι} (i : ι) :
          hansenSengupta G b x₀ (i :: l) X = (hansenSenguptaStep G b x₀ X i).bind (hansenSengupta G b x₀ l)

          The Hansen–Sengupta operator through i :: l: the step in the row i, then the operator through l.

          theorem ConvexAnalysis.hansenSenguptaStep_apply_of_ne {ι : Type u_1} [Fintype ι] [DecidableEq ι] {G : ι → ι → NonemptyInterval ℝ} {b : ι → NonemptyInterval ℝ} {x₀ : ι → ℝ} {X X' : ι → NonemptyInterval ℝ} {i : ι} (h : hansenSenguptaStep G b x₀ X i = some X') {k : ι} (hk : k ≠ i) :
          X' k = X k

          A step of the Hansen–Sengupta operator changes only the side of its row.

          theorem ConvexAnalysis.gaussSeidelStep_apply_mem {ι : Type u_1} [Fintype ι] [DecidableEq ι] {G : ι → ι → NonemptyInterval ℝ} {b : ι → NonemptyInterval ℝ} {x₀ : ι → ℝ} {X : ι → NonemptyInterval ℝ} {B : Matrix ι ι ℝ} (hB : ∀ (i j : ι), B i j ∈ G i j) {c : ι → ℝ} (hc : ∀ (i : ι), c i ∈ b i) {x : ι → ℝ} (hx : x ∈ IntervalArith.box X) (i : ι) (hG : 0 ∉ G i i) :
          gaussSeidelStep B c x₀ x i i ∈ NonemptyInterval.pure (x₀ i) - IntervalArith.mul (b i + ∑ j ∈ Finset.univ.erase i, IntervalArith.mul (G i j) (X j - NonemptyInterval.pure (x₀ j))) (IntervalArith.inv (G i i) hG)

          Inclusion property of a step: for a real matrix B in G, a vector c in b and a point x of the box X, the new coordinate x₀ i - (c i + ∑_{j ≠ i} B i j (x j - x₀ j)) / B i i of the Gauss–Seidel step lies in the interval that the step in a row with 0 ∉ G i i intersects with X i.

          theorem ConvexAnalysis.exists_hansenSengupta_eq_some_of_mulVec_eq {ι : Type u_1} [Fintype ι] [DecidableEq ι] {G : ι → ι → NonemptyInterval ℝ} {b : ι → NonemptyInterval ℝ} {x₀ : ι → ℝ} {X : ι → NonemptyInterval ℝ} {B : Matrix ι ι ℝ} (hB : ∀ (i j : ι), B i j ∈ G i j) {c : ι → ℝ} (hc : ∀ (i : ι), c i ∈ b i) {x : ι → ℝ} (hx : B.mulVec (x - x₀) = -c) (l : List ι) (hxX : x ∈ IntervalArith.box X) :
          ∃ (X' : ι → NonemptyInterval ℝ), hansenSengupta G b x₀ l X = some X' ∧ x ∈ IntervalArith.box X'

          The Gauss–Seidel operator contains the solutions: if B (x - x₀) = -c for a real matrix B in G, a vector c in b and a point x of the box X, then the Hansen–Sengupta operator of X (for any order l of the rows) is not empty and contains x. This is (16) of Neumaier, Proposition 4.3.4, Σ(A, b) ∩ x ⊆ Γ(A, b, x).

          theorem ConvexAnalysis.zero_notMem_of_hansenSengupta {ι : Type u_1} [Fintype ι] [DecidableEq ι] {G : ι → ι → NonemptyInterval ℝ} {b : ι → NonemptyInterval ℝ} {x₀ : ι → ℝ} {X X' : ι → NonemptyInterval ℝ} {l : List ι} (hl : l.Nodup) (hH : hansenSengupta G b x₀ l X = some X') (hlt : ∀ k ∈ l, (X k).toProd.1 < (X' k).toProd.1 ∧ (X' k).toProd.2 < (X k).toProd.2) {i : ι} (hi : i ∈ l) :
          0 ∉ G i i

          The test skips no row: if the sweep through the rows of l, without repetitions, gives X' with every side X' k, k ∈ l, in the interior of X k, then 0 ∉ G i i for every row i ∈ l: a skipped row keeps its side.

          theorem ConvexAnalysis.gaussSeidelSweep_mem_of_hansenSengupta {ι : Type u_1} [Fintype ι] [DecidableEq ι] {G : ι → ι → NonemptyInterval ℝ} {b : ι → NonemptyInterval ℝ} {x₀ : ι → ℝ} {X X' : ι → NonemptyInterval ℝ} {l : List ι} {B : Matrix ι ι ℝ} (hB : ∀ (i j : ι), B i j ∈ G i j) {c : ι → ℝ} (hc : ∀ (i : ι), c i ∈ b i) (hl : l.Nodup) (hH : hansenSengupta G b x₀ l X = some X') (hlt : ∀ k ∈ l, (X k).toProd.1 < (X' k).toProd.1 ∧ (X' k).toProd.2 < (X k).toProd.2) {x : ι → ℝ} (hx : x ∈ IntervalArith.box X) :

          The point sweep stays in the Hansen–Sengupta operator: let B be a real matrix in G and c a vector in b, and let the sweep through the rows of l, without repetitions, give X' with every side X' k, k ∈ l, in the interior of X k. Then for every point x of the box X, the real Gauss–Seidel sweep of B (x - x₀) = -c from x ends in the box X'. The new coordinate of each step lies in the interval that the step intersects with X i, and that interval lies in X i because the intersection lies in its interior.

          theorem ConvexAnalysis.isUnit_of_hansenSengupta {ι : Type u_1} [Fintype ι] [DecidableEq ι] {G : ι → ι → NonemptyInterval ℝ} {b : ι → NonemptyInterval ℝ} {x₀ : ι → ℝ} {X X' : ι → NonemptyInterval ℝ} {l : List ι} (hl : l.Nodup) (hH : hansenSengupta G b x₀ l X = some X') (hX' : ∀ (i : ι), (X i).toProd.1 < (X' i).toProd.1 ∧ (X' i).toProd.2 < (X i).toProd.2) {B : Matrix ι ι ℝ} (hB : ∀ (i j : ι), B i j ∈ G i j) :

          The Hansen–Sengupta test certifies regularity: if the sweep through the rows of l, without repetitions, gives X' with every side X' i in the interior of X i, then every real matrix B in the interval matrix G is invertible. Neumaier, Theorem 4.4.5 (ii) shows, for the natural order of the rows, that G is even an H-matrix.

          theorem ConvexAnalysis.mem_box_of_hansenSengupta_of_mulVec_eq {ι : Type u_1} [Fintype ι] [DecidableEq ι] {G : ι → ι → NonemptyInterval ℝ} {b : ι → NonemptyInterval ℝ} {x₀ : ι → ℝ} {X X' : ι → NonemptyInterval ℝ} {l : List ι} (hl : l.Nodup) (hH : hansenSengupta G b x₀ l X = some X') (hX' : ∀ (i : ι), (X i).toProd.1 < (X' i).toProd.1 ∧ (X' i).toProd.2 < (X i).toProd.2) {B : Matrix ι ι ℝ} (hB : ∀ (i j : ι), B i j ∈ G i j) {c : ι → ℝ} (hc : ∀ (i : ι), c i ∈ b i) {x : ι → ℝ} (hx : B.mulVec (x - x₀) = -c) :

          The Hansen–Sengupta operator encloses the solution set: under the Hansen–Sengupta test (as in ConvexAnalysis.isUnit_of_hansenSengupta), the solution of B (x - x₀) = -c for a real matrix B in G and a vector c in b lies in X'. Compare Neumaier, Theorem 4.4.5 (ii), A^F b ⊆ int x.

          theorem ConvexAnalysis.mem_hansenSengupta_of_eq_zero {ι : Type u_1} [Fintype ι] [DecidableEq ι] {G : ι → ι → NonemptyInterval ℝ} {b : ι → NonemptyInterval ℝ} {x₀ : ι → ℝ} {X : ι → NonemptyInterval ℝ} {f : (ι → ℝ) → ι → ℝ} {Y : Matrix ι ι ℝ} {𝒜 : Set (Matrix ι ι ℝ)} (h𝒜 : IsSlopeEnclosureAt 𝒜 f x₀ (IntervalArith.box X)) (hG𝒜 : ∀ A ∈ 𝒜, ∀ (i j : ι), (Y * A) i j ∈ G i j) (hb : ∀ (i : ι), Y.mulVec (f x₀) i ∈ b i) (l : List ι) {x : ι → ℝ} (hx : x ∈ IntervalArith.box X) (hfx : f x = 0) :
          ∃ (X' : ι → NonemptyInterval ℝ), hansenSengupta G b x₀ l X = some X' ∧ x ∈ IntervalArith.box X'

          The zeros lie in the Hansen–Sengupta operator (Hansen–Sengupta; Neumaier, Theorem 5.1.8 (i) and, for slopes at x₀, Neumaier, Corollary 5.4.3 (i)): if every matrix of 𝒜 encloses the slopes of f at x₀ on the box X, G encloses the matrices Y A with A ∈ 𝒜 and b encloses Y f(x₀), then for every order l of the rows and every zero x of f in X, the Hansen–Sengupta operator is not empty and contains x.

          theorem ConvexAnalysis.ne_zero_of_hansenSengupta_eq_none {ι : Type u_1} [Fintype ι] [DecidableEq ι] {G : ι → ι → NonemptyInterval ℝ} {b : ι → NonemptyInterval ℝ} {x₀ : ι → ℝ} {X : ι → NonemptyInterval ℝ} {l : List ι} {f : (ι → ℝ) → ι → ℝ} {Y : Matrix ι ι ℝ} {𝒜 : Set (Matrix ι ι ℝ)} (h𝒜 : IsSlopeEnclosureAt 𝒜 f x₀ (IntervalArith.box X)) (hG𝒜 : ∀ A ∈ 𝒜, ∀ (i j : ι), (Y * A) i j ∈ G i j) (hb : ∀ (i : ι), Y.mulVec (f x₀) i ∈ b i) (hH : hansenSengupta G b x₀ l X = none) {x : ι → ℝ} (hx : x ∈ IntervalArith.box X) :
          f x ≠ 0

          The Hansen–Sengupta exclusion test (Neumaier, Theorem 5.1.8 (ii), Neumaier, Corollary 5.4.3 (ii)): with the enclosures of ConvexAnalysis.mem_hansenSengupta_of_eq_zero, if some intersection of the sweep is empty, then f has no zero in X.

          theorem ConvexAnalysis.exists_eq_zero_of_hansenSengupta {ι : Type u_1} [Fintype ι] [DecidableEq ι] {G : ι → ι → NonemptyInterval ℝ} {b : ι → NonemptyInterval ℝ} {x₀ : ι → ℝ} {X X' : ι → NonemptyInterval ℝ} {l : List ι} {f : (ι → ℝ) → ι → ℝ} {Y : Matrix ι ι ℝ} {M : ι → ι → NonemptyInterval ℝ} (hf : ContinuousOn f (IntervalArith.box X)) (h𝒜 : IsSlopeEnclosureAt {A : Matrix ι ι ℝ | ∀ (k j : ι), A k j ∈ M k j} f x₀ (IntervalArith.box X)) (hGM : ∀ (A : Matrix ι ι ℝ), (∀ (k j : ι), A k j ∈ M k j) → ∀ (i j : ι), (Y * A) i j ∈ G i j) (hb : ∀ (i : ι), Y.mulVec (f x₀) i ∈ b i) (hl : l.Nodup) (hH : hansenSengupta G b x₀ l X = some X') (hX' : ∀ (i : ι), (X i).toProd.1 < (X' i).toProd.1 ∧ (X' i).toProd.2 < (X i).toProd.2) :
          ∃ x ∈ IntervalArith.box X', f x = 0

          The Hansen–Sengupta existence test with slopes at x₀ (Neumaier, Corollary 5.4.3 (iii)): let the interval matrix M enclose the slopes of the continuous map f at x₀ on the box X, let G enclose the matrices Y A for all A with entries in M, let b enclose Y f(x₀), and let the Hansen–Sengupta operator through the rows of l, without repetitions, give X' with every side X' i in the interior of X i. Then f has a zero in X'. Every matrix with entries in M is invertible (ConvexAnalysis.isUnit_of_hansenSengupta), the interval Newton set lies in X', and the interval Newton test ConvexAnalysis.exists_eq_zero_of_intervalNewton_subset gives the zero. Neither x₀ ∈ X nor uniqueness is claimed; with slopes between all points of X, the zero is unique (ConvexAnalysis.existsUnique_eq_zero_of_hansenSengupta).

          theorem ConvexAnalysis.existsUnique_eq_zero_of_hansenSengupta {ι : Type u_1} [Fintype ι] [DecidableEq ι] {G : ι → ι → NonemptyInterval ℝ} {b : ι → NonemptyInterval ℝ} {x₀ : ι → ℝ} {X X' : ι → NonemptyInterval ℝ} {l : List ι} {f : (ι → ℝ) → ι → ℝ} {Y : Matrix ι ι ℝ} {M : ι → ι → NonemptyInterval ℝ} (h𝒜 : IsSlopeEnclosure {A : Matrix ι ι ℝ | ∀ (k j : ι), A k j ∈ M k j} f (IntervalArith.box X)) (hGM : ∀ (A : Matrix ι ι ℝ), (∀ (k j : ι), A k j ∈ M k j) → ∀ (i j : ι), (Y * A) i j ∈ G i j) (hx₀ : x₀ ∈ IntervalArith.box X) (hb : ∀ (i : ι), Y.mulVec (f x₀) i ∈ b i) (hl : l.Nodup) (hH : hansenSengupta G b x₀ l X = some X') (hX' : ∀ (i : ι), (X i).toProd.1 < (X' i).toProd.1 ∧ (X' i).toProd.2 < (X i).toProd.2) :
          ∃! x : ι → ℝ, x ∈ IntervalArith.box X ∧ f x = 0

          The Hansen–Sengupta existence test (Neumaier, Theorem 5.1.8 (iii), due to Moore–Qi; compare Moore–Kearfott–Cloud, Theorem 8.4): let the interval matrix M enclose the slopes of f on the box X, let G enclose the matrices Y A for all A with entries in M (for example the interval products ∑ k, Yᵢₖ Mₖⱼ, ConvexAnalysis.IntervalArith.mul_apply_mem_sum_mul_pure), let x₀ ∈ X, let b enclose Y f(x₀), and let the Hansen–Sengupta operator through the rows of l, without repetitions, give X' with every side X' i in the interior of X i. Then f has exactly one zero in X, and it lies in X' (ConvexAnalysis.exists_eq_zero_of_hansenSengupta). No regularity and no continuity is assumed: every matrix with entries in M is invertible (ConvexAnalysis.isUnit_of_hansenSengupta), and f is continuous since its slopes are bounded (ConvexAnalysis.IsSlopeEnclosure.continuousOn). Neumaier assumes a Lipschitz matrix, x₀ ∈ interior X and the natural order of the rows.

          theorem ConvexAnalysis.existsUnique_eq_zero_of_hansenSengupta_pderiv {ι : Type u_1} [Fintype ι] [DecidableEq ι] {G : ι → ι → NonemptyInterval ℝ} {b : ι → NonemptyInterval ℝ} {x₀ : ι → ℝ} {X X' : ι → NonemptyInterval ℝ} {l : List ι} {Y : Matrix ι ι ℝ} {F : ι → ArithExpr ι} {M : ι → ι → NonemptyInterval ℝ} (hM : ∀ (k j : ι), ArithExpr.IsRoundedEval X (ArithExpr.pderiv j (F k)) (M k j)) (hGM : ∀ (A : Matrix ι ι ℝ), (∀ (k j : ι), A k j ∈ M k j) → ∀ (i j : ι), (Y * A) i j ∈ G i j) (hx₀ : x₀ ∈ IntervalArith.box X) (hb : ∀ (i : ι), Y.mulVec (fun (k : ι) => ArithExpr.eval x₀ (F k)) i ∈ b i) (hl : l.Nodup) (hH : hansenSengupta G b x₀ l X = some X') (hX' : ∀ (i : ι), (X i).toProd.1 < (X' i).toProd.1 ∧ (X' i).toProd.2 < (X i).toProd.2) :
          ∃! x : ι → ℝ, x ∈ IntervalArith.box X ∧ (fun (k : ι) => ArithExpr.eval x (F k)) = 0

          The Hansen–Sengupta test with automatic derivatives: for a system F : ι → ArithExpr ι with rounded evaluations M k j of the partial derivatives ArithExpr.pderiv j (F k) on the box X (as in ConvexAnalysis.existsUnique_eq_zero_of_intervalKrawczyk_pderiv), an enclosure G of the matrices Y A with entries of A in M, a point x₀ ∈ X, an enclosure b of Y F(x₀), and a sweep through the rows of l without repetitions whose result X' lies in the interior of X, side by side, the system F x = 0 has exactly one solution in X. This is ConvexAnalysis.existsUnique_eq_zero_of_hansenSengupta with the slope enclosure ConvexAnalysis.isSlopeEnclosure_of_isRoundedEval_pderiv; the dyadic test ConvexAnalysis.RatArithExpr.hansenSenguptaTest computes all inputs.

          The Hansen–Sengupta operator computed with dyadic intervals #

          excludesZero I: the interval I of the inclusion tactic is bounded and does not contain 0.

          Equations
          Instances For

            The points of an interval I with excludesZero I are not 0.

            isWithin I a b: the interval I of the inclusion tactic is bounded, and its dyadic endpoints lie between the rationals a and b.

            Equations
            Instances For
              theorem ConvexAnalysis.DyadicInterval.mem_Icc_of_isWithin {I : Inclusion.Interval Dyadic} {a b : ℚ} (h : isWithin I a b = true) {x : ℝ} (hx : x ∈ I) :
              x ∈ Set.Icc ↑a ↑b

              The points of an interval I with isWithin I a b lie in [a, b].

              The dyadic box ConvexAnalysis.DyadicInterval.ofRat a b prec around [a, b] is never strictly inside (a, b): its lower endpoint is at most a.

              The real points of an interval of the inclusion tactic form an order-connected set.

              The real points of Mathlib's intersection Inclusion.Interval.inter I J are the common points of I and J.

              The intersection of two intervals of the inclusion tactic: Mathlib's Inclusion.Interval.inter I J, or none if it is bounded with its upper endpoint below its lower one, that is, empty.

              Equations
              Instances For

                A common point of I and J shows that their intersection is not empty.

                A nonempty intersection has a real point.

                The new side x₀ i - (b i + ∑_{j ≠ i} G i j (X j - x₀ j)) / G i i of the Hansen–Sengupta step in the row i, computed with the intervals of the inclusion tactic: the rational point x₀ is enclosed by Inclusion.IntervalDyadicReal.rat, products are rounded outward to multiples of 2⁻ᵖʳᵉᶜ, and the inverse is ConvexAnalysis.DyadicInterval.inv. It encloses the interval of ConvexAnalysis.hansenSenguptaStep (ConvexAnalysis.DyadicInterval.forall_mem_hansenSenguptaSide).

                Equations
                • One or more equations did not get rendered due to their size.
                Instances For

                  One step of the Hansen–Sengupta operator in dyadic arithmetic in the row i: if the diagonal entry G i i excludes 0, the side X i is replaced by its intersection with the new side ConvexAnalysis.DyadicInterval.hansenSenguptaSide, and the step is none if the intersection is empty; otherwise the box is left unchanged.

                  Equations
                  • One or more equations did not get rendered due to their size.
                  Instances For

                    The Hansen–Sengupta sweep in dyadic arithmetic through the rows of l: the steps ConvexAnalysis.DyadicInterval.hansenSenguptaStep one after the other; none if some intersection is empty, which excludes the zeros (ConvexAnalysis.RatArithExpr.exists_ne_zero_of_hansenSenguptaBox_eq_none).

                    Equations
                    Instances For
                      theorem ConvexAnalysis.DyadicInterval.hansenSenguptaSweep_cons {n prec : ℕ} {G : Fin n → Fin n → Inclusion.Interval Dyadic} {b : Fin n → Inclusion.Interval Dyadic} {x₀ : Fin n → ℚ} {X : Fin n → Inclusion.Interval Dyadic} (i : Fin n) (l : List (Fin n)) :
                      hansenSenguptaSweep prec G b x₀ (i :: l) X = (hansenSenguptaStep prec G b x₀ X i).bind (hansenSenguptaSweep prec G b x₀ l)

                      The dyadic sweep through i :: l: the step in the row i, then the sweep through l.

                      theorem ConvexAnalysis.DyadicInterval.hansenSenguptaStep_apply_of_ne {n prec : ℕ} {G : Fin n → Fin n → Inclusion.Interval Dyadic} {b : Fin n → Inclusion.Interval Dyadic} {x₀ : Fin n → ℚ} {X X' : Fin n → Inclusion.Interval Dyadic} {i : Fin n} (h : hansenSenguptaStep prec G b x₀ X i = some X') {k : Fin n} (hk : k ≠ i) :
                      X' k = X k

                      A step of the dyadic sweep changes only the side of its row.

                      theorem ConvexAnalysis.DyadicInterval.forall_mem_inv {R : NonemptyInterval ℝ} (h : 0 ∉ R) {I : Inclusion.Interval Dyadic} (hRI : ∀ y ∈ R, y ∈ I) (prec : ℕ) (y : ℝ) :

                      Interval inverses, compared with ConvexAnalysis.DyadicInterval.inv.

                      theorem ConvexAnalysis.DyadicInterval.forall_mem_sum_erase {n : ℕ} {R : Fin n → NonemptyInterval ℝ} {f : Fin n → Inclusion.Interval Dyadic} (i : Fin n) (h : ∀ (j : Fin n), j ≠ i → ∀ y ∈ R j, y ∈ f j) (y : ℝ) :
                      y ∈ ∑ j ∈ Finset.univ.erase i, R j → y ∈ DyadicInterval.sum fun (j : Fin n) => if j = i then Inclusion.Interval.singleton 0 else f j

                      Sums of intervals over j ≠ i, compared with ConvexAnalysis.DyadicInterval.sum with the term 0 at j = i.

                      theorem ConvexAnalysis.DyadicInterval.forall_mem_hansenSenguptaSide {n prec : ℕ} {G : Fin n → Fin n → Inclusion.Interval Dyadic} {b : Fin n → Inclusion.Interval Dyadic} {x₀ : Fin n → ℚ} {X : Fin n → Inclusion.Interval Dyadic} {Gr : Fin n → Fin n → NonemptyInterval ℝ} {br S : Fin n → NonemptyInterval ℝ} (hG : ∀ (i j : Fin n), ∀ y ∈ Gr i j, y ∈ G i j) (hb : ∀ (i : Fin n), ∀ y ∈ br i, y ∈ b i) (hSX : ∀ (j : Fin n), ∀ y ∈ S j, y ∈ X j) (i : Fin n) (hG0 : 0 ∉ Gr i i) (y : ℝ) :
                      y ∈ NonemptyInterval.pure ↑(x₀ i) - IntervalArith.mul (br i + ∑ j ∈ Finset.univ.erase i, IntervalArith.mul (Gr i j) (S j - NonemptyInterval.pure ↑(x₀ j))) (IntervalArith.inv (Gr i i) hG0) → y ∈ hansenSenguptaSide prec G b x₀ X i

                      The dyadic side encloses the real side: if the points of the real intervals Gr i j, br i and S j lie in the dyadic intervals G i j, b i and X j, and 0 ∉ Gr i i, then the interval that the real step ConvexAnalysis.hansenSenguptaStep intersects with S i lies in ConvexAnalysis.DyadicInterval.hansenSenguptaSide.

                      theorem ConvexAnalysis.DyadicInterval.gaussSeidelStep_apply_mem_hansenSenguptaSide {n prec : ℕ} {G : Fin n → Fin n → Inclusion.Interval Dyadic} {b : Fin n → Inclusion.Interval Dyadic} {x₀ : Fin n → ℚ} {X : Fin n → Inclusion.Interval Dyadic} {B : Matrix (Fin n) (Fin n) ℝ} (hB : ∀ (i j : Fin n), B i j ∈ G i j) {c : Fin n → ℝ} (hc : ∀ (i : Fin n), c i ∈ b i) {x : Fin n → ℝ} (hx : ∀ (j : Fin n), x j ∈ X j) (i : Fin n) (hBi : B i i ≠ 0) :
                      gaussSeidelStep B c (fun (j : Fin n) => ↑(x₀ j)) x i i ∈ hansenSenguptaSide prec G b x₀ X i

                      The point step lies in the dyadic side: for a real matrix B and a vector c whose entries lie in the dyadic G and b, a point x of the dyadic box X and a row with B i i ≠ 0, the new coordinate of the real Gauss–Seidel step for B (x - x₀) = -c lies in the dyadic side ConvexAnalysis.DyadicInterval.hansenSenguptaSide.

                      theorem ConvexAnalysis.DyadicInterval.exists_hansenSenguptaSweep_eq_some_of_mulVec_eq {n prec : ℕ} {G : Fin n → Fin n → Inclusion.Interval Dyadic} {b : Fin n → Inclusion.Interval Dyadic} {x₀ : Fin n → ℚ} {X : Fin n → Inclusion.Interval Dyadic} {B : Matrix (Fin n) (Fin n) ℝ} (hB : ∀ (i j : Fin n), B i j ∈ G i j) {c : Fin n → ℝ} (hc : ∀ (i : Fin n), c i ∈ b i) {x : Fin n → ℝ} (hx : B.mulVec (x - fun (j : Fin n) => ↑(x₀ j)) = -c) (l : List (Fin n)) (hxX : ∀ (j : Fin n), x j ∈ X j) :
                      ∃ (X' : Fin n → Inclusion.Interval Dyadic), hansenSenguptaSweep prec G b x₀ l X = some X' ∧ ∀ (j : Fin n), x j ∈ X' j

                      The dyadic sweep contains the solutions: if B (x - x₀) = -c for a real matrix B and a vector c whose entries lie in the dyadic G and b, and x lies in the dyadic box X, then the dyadic sweep through the rows of l is not none, and its result contains x. This is the dyadic form of ConvexAnalysis.exists_hansenSengupta_eq_some_of_mulVec_eq.

                      theorem ConvexAnalysis.DyadicInterval.hansenSengupta_eq_some_of_hansenSenguptaSweep_eq_some {n prec : ℕ} {G : Fin n → Fin n → Inclusion.Interval Dyadic} {b : Fin n → Inclusion.Interval Dyadic} {x₀ : Fin n → ℚ} {X X' : Fin n → Inclusion.Interval Dyadic} {lo hi : Fin n → ℚ} {Gr : Fin n → Fin n → NonemptyInterval ℝ} {br : Fin n → NonemptyInterval ℝ} (hG : ∀ (i j : Fin n), ∀ y ∈ Gr i j, y ∈ G i j) (hb : ∀ (i : Fin n), ∀ y ∈ br i, y ∈ b i) {l : List (Fin n)} (hl : l.Nodup) {S : Fin n → NonemptyInterval ℝ} (hSX : ∀ (j : Fin n), ∀ y ∈ S j, y ∈ X j) (hS : ∀ k ∈ l, (S k).toProd.1 = ↑(lo k) ∧ (S k).toProd.2 = ↑(hi k)) (h : hansenSenguptaSweep prec G b x₀ l X = some X') (hin : ∀ k ∈ l, isInside (X' k) (lo k) (hi k) = true) :
                      ∃ (S' : Fin n → NonemptyInterval ℝ), hansenSengupta Gr br (fun (j : Fin n) => ↑(x₀ j)) l S = some S' ∧ ∀ k ∈ l, ↑(lo k) < (S' k).toProd.1 ∧ (S' k).toProd.2 < ↑(hi k)

                      A dyadic sweep inside the box gives a real sweep inside the box: let the real interval matrix Gr and vector br lie in the dyadic G and b, point by point, let the real box S lie in the dyadic box X, and let the sides S k, k ∈ l, be [lo k, hi k]. If the dyadic sweep through the rows of l, without repetitions, gives X' with every side X' k, k ∈ l, strictly inside (lo k, hi k), then the real Hansen–Sengupta operator ConvexAnalysis.hansenSengupta with Gr and br is not empty, and its sides k ∈ l lie in the open intervals (lo k, hi k). The new dyadic side of each row lies in (lo k, hi k) itself, since its intersection with the side, which contains [lo k, hi k], does (ConvexAnalysis.IntervalArith.subset_Ioo_of_inter_subset_Ioo).

                      def ConvexAnalysis.RatArithExpr.hansenSenguptaBox {n : ℕ} (prec : ℕ) (F : Fin n → RatArithExpr (Fin n)) (x₀ : Fin n → ℚ) (Y : Matrix (Fin n) (Fin n) ℚ) (X : Fin n → NonemptyInterval Dyadic) :

                      The Hansen–Sengupta operator computed with dyadic intervals for the system F : Fin n → RatArithExpr (Fin n) on the dyadic box X, with the rational point x₀ and the rational preconditioner Y (an approximate inverse of the Jacobian at x₀), at the precision 2⁻ᵖʳᵉᶜ. It evaluates F at x₀ and the symbolic partial derivatives on X with ConvexAnalysis.RatArithExpr.dyadicEval, computes the interval products G = Y M and b = Y F(x₀), and runs the sweep ConvexAnalysis.DyadicInterval.hansenSenguptaSweep through the rows 0, 1, …, n - 1. If x₀ ∉ X or an evaluation is undefined, it returns the box X itself. Every zero of F in X lies in the result (ConvexAnalysis.RatArithExpr.mem_hansenSenguptaBox_of_eq_zero), so none excludes the zeros (ConvexAnalysis.RatArithExpr.exists_ne_zero_of_hansenSenguptaBox_eq_none).

                      Equations
                      • One or more equations did not get rendered due to their size.
                      Instances For
                        theorem ConvexAnalysis.RatArithExpr.mem_hansenSenguptaBox_of_eq_zero {n prec : ℕ} {F : Fin n → RatArithExpr (Fin n)} {x₀ : Fin n → ℚ} {Y : Matrix (Fin n) (Fin n) ℚ} {X : Fin n → NonemptyInterval Dyadic} {x : Fin n → ℝ} (hx : x ∈ IntervalArith.box fun (i : Fin n) => DyadicInterval.toReal (X i)) (hFx : (fun (k : Fin n) => ArithExpr.eval x (F k).toArithExpr) = 0) :
                        ∃ (X' : Fin n → Inclusion.Interval Dyadic), hansenSenguptaBox prec F x₀ Y X = some X' ∧ ∀ (i : Fin n), x i ∈ X' i

                        The zeros lie in the dyadic Hansen–Sengupta operator: every zero x of the system (F k).toArithExpr.eval x = 0 in the dyadic box X lies in the result of ConvexAnalysis.RatArithExpr.hansenSenguptaBox, which is therefore not none (Neumaier, Corollary 5.4.3 (i) with computed enclosures).

                        theorem ConvexAnalysis.RatArithExpr.exists_ne_zero_of_hansenSenguptaBox_eq_none {n prec : ℕ} {F : Fin n → RatArithExpr (Fin n)} {x₀ : Fin n → ℚ} {Y : Matrix (Fin n) (Fin n) ℚ} {X : Fin n → NonemptyInterval Dyadic} (h : hansenSenguptaBox prec F x₀ Y X = none) {x : Fin n → ℝ} (hx : x ∈ IntervalArith.box fun (i : Fin n) => DyadicInterval.toReal (X i)) :
                        ∃ (k : Fin n), ArithExpr.eval x (F k).toArithExpr ≠ 0

                        The dyadic Hansen–Sengupta exclusion test: if ConvexAnalysis.RatArithExpr.hansenSenguptaBox returns none, the system has no zero in the dyadic box X: at every point some equation fails (Neumaier, Corollary 5.4.3 (ii) with computed enclosures).

                        def ConvexAnalysis.RatArithExpr.hansenSenguptaTest {n : ℕ} (prec : ℕ) (F : Fin n → RatArithExpr (Fin n)) (lo hi x₀ : Fin n → ℚ) (Y : Matrix (Fin n) (Fin n) ℚ) :

                        The Hansen–Sengupta test computed with dyadic intervals for the system F : Fin n → RatArithExpr (Fin n) on the rational box [lo, hi], with the rational point x₀ and the rational preconditioner Y, at the precision 2⁻ᵖʳᵉᶜ: it checks lo ≤ x₀ ≤ hi and that the dyadic operator ConvexAnalysis.RatArithExpr.hansenSenguptaBox on a dyadic box containing [lo, hi] has every side strictly inside (lo i, hi i). If it returns true, the system has exactly one zero in the box (ConvexAnalysis.RatArithExpr.existsUnique_eq_zero_of_hansenSenguptaTest).

                        Equations
                        • One or more equations did not get rendered due to their size.
                        Instances For
                          theorem ConvexAnalysis.RatArithExpr.existsUnique_eq_zero_of_hansenSenguptaTest {n prec : ℕ} {F : Fin n → RatArithExpr (Fin n)} {x₀ : Fin n → ℚ} {Y : Matrix (Fin n) (Fin n) ℚ} {lo hi : Fin n → ℚ} (h : hansenSenguptaTest prec F lo hi x₀ Y = true) :
                          ∃! x : Fin n → ℝ, (x ∈ Set.Icc (fun (i : Fin n) => ↑(lo i)) fun (i : Fin n) => ↑(hi i)) ∧ (fun (k : Fin n) => ArithExpr.eval x (F k).toArithExpr) = 0

                          A verified computation of a unique zero by the Hansen–Sengupta test: if the dyadic test ConvexAnalysis.RatArithExpr.hansenSenguptaTest succeeds, the system of equations (F k).toArithExpr.eval x = 0 has exactly one solution x in the box [lo, hi]. Nothing else is assumed, and the hypothesis can be proved by decide +kernel. The proof goes through the real interval statement ConvexAnalysis.existsUnique_eq_zero_of_hansenSengupta_pderiv (Neumaier, Theorem 5.1.8 (iii)) with slopes from interval differentiation and the real enclosures Y M and Y F(x₀) of the computed intervals (ConvexAnalysis.DyadicInterval.hansenSengupta_eq_some_of_hansenSenguptaSweep_eq_some).

                          theorem ConvexAnalysis.RatArithExpr.existsUnique_eq_zero_of_hansenSenguptaTest_real {prec : ℕ} {e : RatArithExpr (Fin 1)} {lo hi x₀ y : ℚ} (h : (hansenSenguptaTest prec (fun (x : Fin 1) => e) (fun (x : Fin 1) => lo) (fun (x : Fin 1) => hi) (fun (x : Fin 1) => x₀) fun (x x_1 : Fin 1) => y) = true) :
                          ∃! x : ℝ, x ∈ Set.Icc ↑lo ↑hi ∧ ArithExpr.eval (fun (x_1 : Fin 1) => x) e.toArithExpr = 0

                          The dyadic Hansen–Sengupta test for one equation e(x) = 0 in one real variable (the case n = 1 of ConvexAnalysis.RatArithExpr.existsUnique_eq_zero_of_hansenSenguptaTest, stated on ℝ by ConvexAnalysis.RatArithExpr.existsUnique_eq_zero_real_of_hasUniqueZero): if the test succeeds with the rational interval [lo, hi], the point x₀ and the approximate inverse y of e'(x₀), then e(x) = 0 has exactly one solution in [lo, hi].

                          def ConvexAnalysis.RatArithExpr.hansenSenguptaEnclosureTest {n : ℕ} (prec : ℕ) (F : Fin n → RatArithExpr (Fin n)) (lo hi x₀ : Fin n → ℚ) (Y : Matrix (Fin n) (Fin n) ℚ) (lo' hi' : Fin n → ℚ) :

                          The Hansen–Sengupta enclosure test: every side of the dyadic operator ConvexAnalysis.RatArithExpr.hansenSenguptaBox on a dyadic box containing [lo, hi] lies in [lo' i, hi' i] (or the operator is none). If it returns true, every zero of the system in [lo, hi] lies in [lo', hi'] (ConvexAnalysis.RatArithExpr.mem_Icc_of_hansenSenguptaEnclosureTest).

                          Equations
                          • One or more equations did not get rendered due to their size.
                          Instances For
                            theorem ConvexAnalysis.RatArithExpr.mem_Icc_of_hansenSenguptaEnclosureTest {n prec : ℕ} {F : Fin n → RatArithExpr (Fin n)} {x₀ : Fin n → ℚ} {Y : Matrix (Fin n) (Fin n) ℚ} {lo hi lo' hi' : Fin n → ℚ} (h : hansenSenguptaEnclosureTest prec F lo hi x₀ Y lo' hi' = true) {x : Fin n → ℝ} (hx : x ∈ Set.Icc (fun (i : Fin n) => ↑(lo i)) fun (i : Fin n) => ↑(hi i)) (hFx : (fun (k : Fin n) => ArithExpr.eval x (F k).toArithExpr) = 0) :
                            x ∈ Set.Icc (fun (i : Fin n) => ↑(lo' i)) fun (i : Fin n) => ↑(hi' i)

                            A verified enclosure of the zeros by the Hansen–Sengupta operator: if the enclosure test ConvexAnalysis.RatArithExpr.hansenSenguptaEnclosureTest succeeds, every solution x ∈ [lo, hi] of the system (F k).toArithExpr.eval x = 0 lies in [lo', hi'] (Neumaier, Corollary 5.4.3 (i) with computed enclosures). With ConvexAnalysis.RatArithExpr.existsUnique_eq_zero_of_hansenSenguptaTest it gives a tighter box for the unique zero.