Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§10 — orthogonal projection on a flat containing AAA commutes with the image map

Proved
RelaxationMethod.ConvexDomain.projection_commutes_with_image

by mikedeng1 · Sep 27, 2026 · Mathlib 0df444a (Lean v4.33.1)

convex-setsorthogonal-projectionp2o-batch-p100bp2o-gran-per-chapterp2o-plan-paperp2o-v1relaxation-method

Let A⊆EnA \subseteq E_nA⊆En​ be a nonempty closed bounded convex set contained in a flat LLL, and let π\piπ be the orthogonal projection of EnE_nEn​ on LLL. For all points p,p1∈Enp, p_1 \in E_np,p1​∈En​:

  1. a point q∈Aq \in Aq∈A is nearest to ppp among the points of AAA if and only if it is nearest to π(p)\pi(p)π(p);
  2. if p1p_1p1​ is an image of ppp with respect to AAA, then π(p1)\pi(p_1)π(p1​) is an image of π(p)\pi(p)π(p) with respect to AAA, i.e. p1′=F(p0′)p'_1 = F(p'_0)p1′​=F(p0′​) for the projections p0′=π(p)p'_0 = \pi(p)p0′​=π(p), p1′=π(p1)p'_1 = \pi(p_1)p1′​=π(p1​); moreover
p1−π(p1)=−(p−π(p)),dist⁡(p1,L)=dist⁡(p,L),p_1 - \pi(p_1) = -\bigl(p - \pi(p)\bigr), \qquad \operatorname{dist}(p_1, L) = \operatorname{dist}(p, L),p1​−π(p1​)=−(p−π(p)),dist(p1​,L)=dist(p,L),

so p1p_1p1​ lies at the same distance from LLL as ppp, on the opposite side.

This is the reduction of Theorem 3, Case 2 to Case 1.

Formalization Note The paper first reduces to r=n−1r = n - 1r=n−1 and projects on the hyperplane Ln−1L_{n-1}Ln−1​; we state the claims for any flat L⊇AL \supseteq AL⊇A, which covers L=LrL = L_rL=Lr​ directly. When π(p)∈A\pi(p) \in Aπ(p)∈A the image of π(p)\pi(p)π(p) is π(p)\pi(p)π(p) itself, which is the paper's "terminates with a first pN′∈Ap'_N \in ApN′​∈A".

Preamble
import Mathlib
import Definitions.Def_RelaxationMethod_ConvexDomain_ImageProcess
Formal statement
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
Source
Motzkin and Schoenberg, The relaxation method for linear inequalities, Canad. J. Math. 6 (1954), p. 404, §10, proof of Theorem 3, Case 2
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

Setting. Let n∈Nn \in \mathbb{N}n∈N and En=RnE_n = \mathbb{R}^nEn​=Rn with Euclidean distance.

Hypotheses.

  • A⊆EnA \subseteq E_nA⊆En​ is nonempty, closed, convex and bounded.
  • LLL is a nonempty affine subspace of EnE_nEn​ with A⊆LA \subseteq LA⊆L.
  • π:En→L\pi : E_n \to Lπ:En​→L is the orthogonal projection onto LLL.
  • d(x,L)=inf⁡y∈L∣x−y∣d(x, L) = \inf_{y \in L} |x - y|d(x,L)=infy∈L​∣x−y∣.
  • p,p1∈Enp, p_1 \in E_np,p1​∈En​ are arbitrary.

"yyy is an image of xxx with respect to AAA" means that there is a nearest point qqq of AAA to xxx (q∈Aq \in Aq∈A, and ∣x−q∣≤∣x−a∣|x-q| \le |x-a|∣x−q∣≤∣x−a∣ for all a∈Aa \in Aa∈A) with y=x+2(q−x)y = x + 2(q - x)y=x+2(q−x).

Conclusion. Both of the following hold.

(i) For every q∈Aq \in Aq∈A:

(∀a∈A: ∣p−q∣≤∣p−a∣)  ⟺  (∀a∈A: ∣πp−q∣≤∣πp−a∣).\bigl(\forall a \in A:\ |p - q| \le |p - a|\bigr) \iff \bigl(\forall a \in A:\ |\pi p - q| \le |\pi p - a|\bigr).(∀a∈A: ∣p−q∣≤∣p−a∣)⟺(∀a∈A: ∣πp−q∣≤∣πp−a∣).

(ii) If p1p_1p1​ is an image of ppp with respect to AAA, then all three of the following hold:

  • πp1\pi p_1πp1​ is an image of πp\pi pπp with respect to AAA;
  • p1−πp1=−(p−πp)p_1 - \pi p_1 = -(p - \pi p)p1​−πp1​=−(p−πp);
  • d(p1,L)=d(p,L)d(p_1, L) = d(p, L)d(p1​,L)=d(p,L).

Degenerate cases.

  • If p∈Ap \in Ap∈A, then its only image is p1=pp_1 = pp1​=p, and πp=p\pi p = pπp=p. Part (ii) then reads: πp\pi pπp is an image of itself, and 0=00 = 00=0.
  • If πp∈A\pi p \in Aπp∈A, the first claim of (ii) forces πp1=πp\pi p_1 = \pi pπp1​=πp.
  • If LLL is the whole space, then π\piπ is the identity and d(⋅,L)=0d(\cdot, L) = 0d(⋅,L)=0. The second claim of (ii) then says 0=00 = 00=0.
  • If n=0n = 0n=0, everything is one point and all claims hold trivially.
  • Part (i) is claimed only for points q∈Aq \in Aq∈A.
Human review
  • Endorsed by Shuze Chen · Sep 28, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Sep 28, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me