Documentation

ConvexAnalysis.PoincareMiranda

The Poincaré–Miranda theorem #

A continuous map f on a box [a, b] ⊆ ℝⁿ whose i-th component has opposite signs on the two faces x i = a i and x i = b i of the box, for every i, has a zero in the box. In dimension one this is the intermediate value theorem. In interval methods of global optimization it is the classical existence test for a zero of f in a box (Miranda's test).

Main statements #

Implementation notes #

Brouwer's theorem for boxes (ConvexAnalysis.exists_isFixedPt_Icc) applies to the map x ↦ clamp (x - f x), where clamp projects each coordinate onto [a i, b i]. At a fixed point x, a coordinate x i - f x i that is clamped forces x i to a face, where the sign condition contradicts the direction of the clamping; so no coordinate is clamped and f x = 0.

References #

Tags #

Poincaré–Miranda theorem, Miranda's existence test, intermediate value theorem, box, Brouwer fixed point theorem

theorem ConvexAnalysis.exists_mem_Icc_eq_zero {ι : Type u_1} [Fintype ι] {a b : ι → ℝ} (hab : a ≤ b) {f : (ι → ℝ) → ι → ℝ} (hf : ContinuousOn f (Set.Icc a b)) (ha : ∀ x ∈ Set.Icc a b, ∀ (i : ι), x i = a i → f x i ≤ 0) (hb : ∀ x ∈ Set.Icc a b, ∀ (i : ι), x i = b i → 0 ≤ f x i) :
∃ x ∈ Set.Icc a b, f x = 0

The Poincaré–Miranda theorem (Poincaré, Miranda): a continuous map f on a box Icc a b in ι → ℝ with f x i ≤ 0 on the faces x i = a i and 0 ≤ f x i on the faces x i = b i has a zero in the box. The exercise Granas–Dugundji, Section 5.9, (C.3) states it on the cube [-1, 1]ⁿ.

theorem ConvexAnalysis.exists_mem_Icc_eq_zero' {ι : Type u_1} [Fintype ι] {a b : ι → ℝ} (hab : a ≤ b) {f : (ι → ℝ) → ι → ℝ} (hf : ContinuousOn f (Set.Icc a b)) (ha : ∀ x ∈ Set.Icc a b, ∀ (i : ι), x i = a i → 0 ≤ f x i) (hb : ∀ x ∈ Set.Icc a b, ∀ (i : ι), x i = b i → f x i ≤ 0) :
∃ x ∈ Set.Icc a b, f x = 0

The Poincaré–Miranda theorem with the opposite signs: 0 ≤ f x i on the faces x i = a i and f x i ≤ 0 on the faces x i = b i.

theorem ConvexAnalysis.exists_mem_Icc_eq_zero_of_forall_or {ι : Type u_1} [Fintype ι] {a b : ι → ℝ} (hab : a ≤ b) {f : (ι → ℝ) → ι → ℝ} (hf : ContinuousOn f (Set.Icc a b)) (h : ∀ (i : ι), ((∀ x ∈ Set.Icc a b, x i = a i → f x i ≤ 0) ∧ ∀ x ∈ Set.Icc a b, x i = b i → 0 ≤ f x i) ∨ (∀ x ∈ Set.Icc a b, x i = a i → 0 ≤ f x i) ∧ ∀ x ∈ Set.Icc a b, x i = b i → f x i ≤ 0) :
∃ x ∈ Set.Icc a b, f x = 0

The Poincaré–Miranda theorem with the signs chosen per coordinate: for each i, the component f x i is ≤ 0 on the face x i = a i and ≥ 0 on the face x i = b i, or the other way round. This is the form of Miranda's existence test in interval methods.

theorem ConvexAnalysis.exists_mem_eq_zero_euclideanSpace {ι : Type u_1} [Fintype ι] {a b : ι → ℝ} (hab : a ≤ b) {f : EuclideanSpace ℝ ι → EuclideanSpace ℝ ι} (hf : ContinuousOn f {x : EuclideanSpace ℝ ι | ∀ (i : ι), x.ofLp i ∈ Set.Icc (a i) (b i)}) (ha : ∀ (x : EuclideanSpace ℝ ι), (∀ (j : ι), x.ofLp j ∈ Set.Icc (a j) (b j)) → ∀ (i : ι), x.ofLp i = a i → (f x).ofLp i ≤ 0) (hb : ∀ (x : EuclideanSpace ℝ ι), (∀ (j : ι), x.ofLp j ∈ Set.Icc (a j) (b j)) → ∀ (i : ι), x.ofLp i = b i → 0 ≤ (f x).ofLp i) :
∃ (x : EuclideanSpace ℝ ι), (∀ (i : ι), x.ofLp i ∈ Set.Icc (a i) (b i)) ∧ f x = 0

The Poincaré–Miranda theorem on a box of EuclideanSpace ℝ ι.

theorem ConvexAnalysis.exists_mem_Icc_eq_zero_real {a b : ℝ} (hab : a ≤ b) {f : ℝ → ℝ} (hf : ContinuousOn f (Set.Icc a b)) (ha : f a ≤ 0) (hb : 0 ≤ f b) :
∃ x ∈ Set.Icc a b, f x = 0

The one-dimensional Poincaré–Miranda theorem, derived from the general one: a continuous f on [a, b] with f a ≤ 0 ≤ f b has a zero in [a, b]. Mathlib's intermediate value theorem intermediate_value_Icc gives the same.