Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 2 (noise-free part): synchronized pairs fix the relative rotation exactly at rank kkk

Proved
SameStatePairs.pairs_fix_relative_frame

by Xeroth · Nov 23, 2026 · Mathlib 0df444a (Lean v4.33.1)

identifiabilityjepaorthogonal-procrustesrepresentation-learningspectral-methods

Let (xi,yi)i=1m(x_i,y_i)_{i=1}^m(xi​,yi​)i=1m​ be pairs in Rk\mathbb{R}^kRk with yi=Qxiy_i=Qx_iyi​=Qxi​ for an unknown Q∈O(k)Q\in O(k)Q∈O(k), let X=[x1,…,xm]⊤\mathbf X=[x_1,\dots,x_m]^\topX=[x1​,…,xm​]⊤ and r=rank⁡(X)r=\operatorname{rank}(\mathbf X)r=rank(X).

  1. If r=kr=kr=k, QQQ is the unique minimiser over R∈O(k)R\in O(k)R∈O(k) of the orthogonal Procrustes objective ∑i∥yi−Rxi∥2\sum_i\|y_i-Rx_i\|^2∑i​∥yi​−Rxi​∥2.
  2. If r<kr<kr<k, let U∈O(k)U\in O(k)U∈O(k) be an orthonormal basis whose first rrr vectors span the row space of X\mathbf XX. Then the set of R∈O(k)R\in O(k)R∈O(k) with XR⊤=Y\mathbf XR^\top=\mathbf YXR⊤=Y is
{ QU(Ir⊕S)U⊤: S∈O(k−r) },\{\,QU(I_r\oplus S)U^\top:\ S\in O(k-r)\,\},{QU(Ir​⊕S)U⊤: S∈O(k−r)},

that is, Q(Ir⊕O(k−r))Q(I_r\oplus O(k-r))Q(Ir​⊕O(k−r)) written in the basis UUU. 3. If r=k−1r=k-1r=k−1, this set has exactly two elements, QQQ and a matrix RRR with det⁡(Q⊤R)=−1\det(Q^\top R)=-1det(Q⊤R)=−1, a reflection on the one-dimensional complement.

Formalization Note The noisy part of Theorem 2 (the OP(σk/me)O_P(\sigma\sqrt{k/m_e})OP​(σk/me​​) rate for a sufficiently large unspecified constant c0c_0c0​) and the count of (k−r)(k−r−1)/2(k-r)(k-r-1)/2(k−r)(k−r−1)/2 continuous gauge dimensions (the dimension of O(k−r)O(k-r)O(k−r)) are not included. The phrase "in an orthonormal basis whose first rrr vectors span the row space" is written as conjugation by an orthogonal UUU with that property, for every such UUU.

Preamble
import Mathlib
import Definitions.Def_SameStatePairs_Basic

open Matrix
Formal statement
namespace SameStatePairs

theorem pairs_fix_relative_frame {m k : ℕ} (x y : Fin m → Fin k → ℝ)
    (Q : Matrix.orthogonalGroup (Fin k) ℝ) (hy : ∀ i, y i = rot Q (x i)) :
    ((Matrix.of x).rank = k →
      ∀ R : Matrix.orthogonalGroup (Fin k) ℝ,
        (∀ R' : Matrix.orthogonalGroup (Fin k) ℝ, procrustesObj x y R ≤ procrustesObj x y R') ↔
          R = Q) ∧
    ((Matrix.of x).rank < k →
      ∀ U : Matrix.orthogonalGroup (Fin k) ℝ,
        Submodule.span ℝ ((fun j : Fin k => fun i => (U : Matrix (Fin k) (Fin k) ℝ) i j) ''
            {j | j.val < (Matrix.of x).rank}) = Submodule.span ℝ (Set.range x) →
        pairSolutions x y = {R : Matrix.orthogonalGroup (Fin k) ℝ | ∃ S : Matrix.orthogonalGroup (Fin (k - (Matrix.of x).rank)) ℝ,
          (R : Matrix (Fin k) (Fin k) ℝ) = (Q : Matrix (Fin k) (Fin k) ℝ) *
            (U : Matrix (Fin k) (Fin k) ℝ) *
              blockEmbed (Matrix.of x).rank (S : Matrix _ _ ℝ) *
                (U : Matrix (Fin k) (Fin k) ℝ)ᵀ}) ∧
    ((Matrix.of x).rank + 1 = k →
      (pairSolutions x y).ncard = 2 ∧
      ∀ R ∈ pairSolutions x y, R ≠ Q →
        ((Q : Matrix (Fin k) (Fin k) ℝ)ᵀ * (R : Matrix (Fin k) (Fin k) ℝ)).det = -1) := by sorry

end SameStatePairs
Source
Xin Li, Same-State Pairs Make One JEPA Proof of the Platonic Representation Hypothesis Vacuous: A Correction and a Gauge Ledger, arXiv:2611.16182v1 (2026), Section 4.2, Theorem 2, p. 7; proof in Appendix A.2, pp. 11-12
Read-back

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

Fix natural numbers mmm and kkk. Let x1,…,xm∈Rkx_1,\dots,x_m \in \mathbb{R}^kx1​,…,xm​∈Rk and y1,…,ym∈Rky_1,\dots,y_m \in \mathbb{R}^ky1​,…,ym​∈Rk be two arbitrary finite families of vectors. Let Q∈O(k)Q \in O(k)Q∈O(k) be a real k×kk\times kk×k orthogonal matrix (Q⊤Q=QQ⊤=IkQ^\top Q = QQ^\top = I_kQ⊤Q=QQ⊤=Ik​). Assume

yi=Q xifor every i=1,…,m.y_i = Q\,x_i \qquad \text{for every } i = 1,\dots,m.yi​=Qxi​for every i=1,…,m.

Let XXX be the m×km\times km×k matrix whose iii-th row is xix_ixi​, and let r=rank⁡(X)r = \operatorname{rank}(X)r=rank(X). Equivalently, rrr is the dimension of span⁡{x1,…,xm}⊆Rk\operatorname{span}\{x_1,\dots,x_m\} \subseteq \mathbb{R}^kspan{x1​,…,xm​}⊆Rk, so 0≤r≤min⁡(m,k)0 \le r \le \min(m,k)0≤r≤min(m,k).

Two objects appear in the conclusions:

  • The orthogonal Procrustes objective, for R∈O(k)R \in O(k)R∈O(k):
F(R)=∑i=1m∥yi−R xi∥2,F(R) = \sum_{i=1}^m \|y_i - R\,x_i\|^2,F(R)=i=1∑m​∥yi​−Rxi​∥2,

where ∥⋅∥2\|\cdot\|^2∥⋅∥2 is the squared Euclidean norm (sum of squared coordinates).

  • The exact solution set:
S={R∈O(k):R xi=yi for all i}.\mathcal{S} = \{R \in O(k) : R\,x_i = y_i \text{ for all } i\}.S={R∈O(k):Rxi​=yi​ for all i}.

The theorem asserts the conjunction of the following three statements.

  1. Full rank. If r=kr = kr=k, then for every R∈O(k)R \in O(k)R∈O(k):
(F(R)≤F(R′) for all R′∈O(k))  ⟺  R=Q.\bigl(F(R) \le F(R') \text{ for all } R' \in O(k)\bigr) \iff R = Q.(F(R)≤F(R′) for all R′∈O(k))⟺R=Q.

That is, QQQ is the unique global minimiser of FFF over O(k)O(k)O(k).

  1. Rank deficient. Suppose r<kr < kr<k. Let U∈O(k)U \in O(k)U∈O(k) be any orthogonal matrix such that the linear span of its first rrr columns u1,…,uru_1,\dots,u_ru1​,…,ur​ equals span⁡{x1,…,xm}\operatorname{span}\{x_1,\dots,x_m\}span{x1​,…,xm​}. Then
S={ R∈O(k):∃ S∈O(k−r) with R=Q U (Ir⊕S) U⊤ }.\mathcal{S} = \bigl\{\, R \in O(k) : \exists\, S \in O(k-r) \text{ with } R = Q\,U\,(I_r \oplus S)\,U^\top \,\bigr\}.S={R∈O(k):∃S∈O(k−r) with R=QU(Ir​⊕S)U⊤}.

Here Ir⊕SI_r \oplus SIr​⊕S is the k×kk\times kk×k block-diagonal matrix with:

  • the r×rr\times rr×r identity in the top-left block;
  • the (k−r)×(k−r)(k-r)\times(k-r)(k−r)×(k−r) orthogonal matrix SSS in the bottom-right block;
  • zeros in both off-diagonal blocks.

This equality is asserted for every such UUU. If no such UUU exists, the statement holds vacuously.

  1. Corank one. If r+1=kr + 1 = kr+1=k, then:
    • S\mathcal{S}S has exactly two elements (it is finite with cardinality 222);
    • every R∈SR \in \mathcal{S}R∈S with R≠QR \ne QR=Q satisfies det⁡(Q⊤R)=−1\det(Q^\top R) = -1det(Q⊤R)=−1.

Degenerate cases included by the quantifiers:

  • m=0m = 0m=0 is allowed. Then there are no vectors, r=0r = 0r=0, F≡0F \equiv 0F≡0, and S=O(k)\mathcal{S} = O(k)S=O(k).
  • k=0k = 0k=0 is allowed. Then r=0=kr = 0 = kr=0=k and O(0)O(0)O(0) is the one-point group, so only statement 1 is non-vacuous.
  • When k=1k = 1k=1 and r=0r = 0r=0 (for example, all xi=0x_i = 0xi​=0), statement 3 applies. It asserts that S\mathcal{S}S, here all of O(1)={±1}O(1) = \{\pm 1\}O(1)={±1}, has exactly two elements.
  • The vectors xix_ixi​ may repeat or be zero; only their span matters for rrr.
  • Statements 2 and 3 can hold simultaneously, since r+1=kr + 1 = kr+1=k implies r<kr < kr<k.
Human review
  • Endorsed by Shuze Chen · Nov 23, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Xeroth · Nov 23, 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