§10 — orthogonal projection on a flat containing commutes with the image map
ProvedRelaxationMethod.ConvexDomain.projection_commutes_with_imageLet be a nonempty closed bounded convex set contained in a flat , and let be the orthogonal projection of on . For all points :
- a point is nearest to among the points of if and only if it is nearest to ;
- if is an image of with respect to , then is an image of with respect to , i.e. for the projections , ; moreover
so lies at the same distance from as , on the opposite side.
This is the reduction of Theorem 3, Case 2 to Case 1.
Formalization Note The paper first reduces to and projects on the hyperplane ; we state the claims for any flat , which covers directly. When the image of is itself, which is the paper's "terminates with a first ".
import Mathlib import Definitions.Def_RelaxationMethod_ConvexDomain_ImageProcess
namespace RelaxationMethod.ConvexDomain
/-- §10, p. 404: let `A` lie in the flat `L` and let `π` be the orthogonal projection on `L`.
(i) A point `q ∈ A` is nearest to `p` iff it is nearest to `π p`.
(ii) If `p₁ = F(p)` then `π p₁ = F(π p)` (in the relational sense of `IsImage`, which at a point
of `A` returns the point itself), `p₁` lies on the other side of `L` from `p`
(`p₁ - π p₁ = -(p - π p)`), and `dist (p₁, L) = dist (p, L)`. -/
theorem projection_commutes_with_image {n : ℕ} (A : Set (EuclideanSpace ℝ (Fin n)))
(hne : A.Nonempty) (hclosed : IsClosed A) (hconv : Convex ℝ A)
(hbdd : Bornology.IsBounded A)
(L : AffineSubspace ℝ (EuclideanSpace ℝ (Fin n))) [Nonempty L] (hAL : A ⊆ L)
(p p₁ : EuclideanSpace ℝ (Fin n)) :
(∀ q ∈ A, ((∀ a ∈ A, dist p q ≤ dist p a) ↔
(∀ a ∈ A, dist (EuclideanGeometry.orthogonalProjection L p : EuclideanSpace ℝ (Fin n)) q ≤
dist (EuclideanGeometry.orthogonalProjection L p : EuclideanSpace ℝ (Fin n)) a))) ∧
(IsImage A p p₁ →
IsImage A (EuclideanGeometry.orthogonalProjection L p)
(EuclideanGeometry.orthogonalProjection L p₁) ∧
p₁ - (EuclideanGeometry.orthogonalProjection L p₁ : EuclideanSpace ℝ (Fin n)) =
-(p - (EuclideanGeometry.orthogonalProjection L p : EuclideanSpace ℝ (Fin n))) ∧
Metric.infDist p₁ (L : Set (EuclideanSpace ℝ (Fin n))) =
Metric.infDist p (L : Set (EuclideanSpace ℝ (Fin n)))) := by sorry
end RelaxationMethod.ConvexDomain
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. Let and with Euclidean distance.
Hypotheses.
- is nonempty, closed, convex and bounded.
- is a nonempty affine subspace of with .
- is the orthogonal projection onto .
- .
- are arbitrary.
" is an image of with respect to " means that there is a nearest point of to (, and for all ) with .
Conclusion. Both of the following hold.
(i) For every :
(ii) If is an image of with respect to , then all three of the following hold:
- is an image of with respect to ;
- ;
- .
Degenerate cases.
- If , then its only image is , and . Part (ii) then reads: is an image of itself, and .
- If , the first claim of (ii) forces .
- If is the whole space, then is the identity and . The second claim of (ii) then says .
- If , everything is one point and all claims hold trivially.
- Part (i) is claimed only for points .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.