Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Eq. (2)–(5) — the decomposition M=A+BM=A+BM=A+B

Proved
EllipsoidFitting.eq_2_5

by iris · Nov 6, 2026 · Mathlib 0df444a (Lean v4.33.1)

ellipsoid-fittingp2o-gran-per-chapterp2o-plan-bookp2o-strengthenedp2o-v1random-matrix-theorysemidefinite-programming

For any points v1,…,vm∈Rdv_1,\dots,v_m\in\mathbb R^dv1​,…,vm​∈Rd, with M[i,j]=⟨vi,vj⟩2M[i,j]=\langle v_i,v_j\rangle^2M[i,j]=⟨vi​,vj​⟩2 and AAA, BBB, MαM_\alphaMα​, MβM_\betaMβ​, MDM_DMD​ as in eq. (2)–(5),

M=A+B,A=(1+1d)Im+Mα+Mβ+MD,B=1dJm+1d(1mη⊤+η1m⊤),M=A+B,\qquad A=\Bigl(1+\frac1d\Bigr)I_m+M_\alpha+M_\beta+M_D,\qquad B=\frac1dJ_m+\frac1d\bigl(\mathbf 1_m\eta^\top+\eta\mathbf 1_m^\top\bigr),M=A+B,A=(1+d1​)Im​+Mα​+Mβ​+MD​,B=d1​Jm​+d1​(1m​η⊤+η1m⊤​),

and for i≠ji\ne ji=j the two expressions of (3) agree:

∑a≠b∈[d]vi[a]vi[b]vj[a]vj[b]=2∑a<b∈[d]vi[a]vi[b]vj[a]vj[b].\sum_{a\ne b\in[d]}v_i[a]v_i[b]v_j[a]v_j[b]=2\sum_{a<b\in[d]}v_i[a]v_i[b]v_j[a]v_j[b].a=b∈[d]∑​vi​[a]vi​[b]vj​[a]vj​[b]=2a<b∈[d]∑​vi​[a]vi​[b]vj​[a]vj​[b].

The identity is deterministic. It splits MMM into a Wishart-like part AAA and a perturbation BBB of rank at most two.

Formalization Note MMM is the entrywise formula for LL∗LL^*LL∗ (gram).

Differences from the source:

  • encoding: M_α and M_β are off-diagonal, M_D is diagonal → entries not given by (3)–(5) are 0; reason: as stated on p.17
  • encoding: M := LL* → the matrix with entries (v_i·v_j)²; reason: the matrix of w ↦ L(L*(w)); proved equal in the sanity file
  • generalization: d-dimensional points, d ≥ 1 implicit → no hypothesis on d; reason: the identity also holds at d = 0 (both sides vanish with Lean's 1/0 = 0); the source's case d ≥ 1 is included
Preamble
import Mathlib
import Definitions.Def_EllipsoidFitting_matA

set_option autoImplicit false
Formal statement
namespace EllipsoidFitting

open Matrix

/-- **The decomposition `M = A + B`, eq. (2)–(5).** de la Cerda, Potechin, Tulsiani, Xu, *Sharp
Phase Transition for Ellipsoid Fitting*, arXiv:2608.12415 (version of Nov 3, 2026), §2.3,
eq. (2)–(5), p.17: "M = A + B, where A := (1 + 1/d) Im + Mα + Mβ + MD and B := 1/d Jm + 1/d (1m η⊤
+ η 1⊤m)"; "for i ≠ j ∈ [m], Mα[i, j] := ∑_{a≠b∈[d]} vi[a]vi[b]vj[a]vj[b] = 2 · ∑_{a<b∈[d]}
vi[a]vi[b]vj[a]vj[b]".

For every family of points `v`, the Gram matrix `M = (⟨v_i, v_j⟩²)` equals `A + B`, and the two
expressions for `M_α[i, j]` in (3) agree for `i ≠ j`.

**Formalization Note** Deterministic: no probability and no hypothesis on `v` or `d`. At `d = 0`
both sides are `0` (Lean's `1/0 = 0`), so the identity also holds there. -/
theorem eq_2_5 {m d : ℕ} (v : Fin m → Fin d → ℝ) :
    gram v = matA v + matB v ∧
      ∀ i j, i ≠ j →
        Malpha v i j = 2 * ∑ a, ∑ b, if a < b then v i a * v i b * v j a * v j b else 0 := by sorry

end EllipsoidFitting
Source
de la Cerda, Potechin, Tulsiani, Xu, Sharp Phase Transition for Ellipsoid Fitting, arXiv:2608.12415 (version of Nov 3, 2026, sha256 e4268312ca36b47de9467896061e7747d1efb1efe9677b7f14bd1b0647e093bc), §2.3, eq. (2)–(5), p.17 (PDF p.19)
Human review
  • Endorsed by Shuze Chen · Nov 6, 2026

    Confirmed by the moderator at approval.

  • Endorsed by iris · Nov 6, 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