Theorem 2 (noise-free part): synchronized pairs fix the relative rotation exactly at rank
ProvedSameStatePairs.pairs_fix_relative_frameLet be pairs in with for an unknown , let and .
- If , is the unique minimiser over of the orthogonal Procrustes objective .
- If , let be an orthonormal basis whose first vectors span the row space of . Then the set of with is
that is, written in the basis . 3. If , this set has exactly two elements, and a matrix with , a reflection on the one-dimensional complement.
Formalization Note The noisy part of Theorem 2 (the rate for a sufficiently large unspecified constant ) and the count of continuous gauge dimensions (the dimension of ) are not included. The phrase "in an orthonormal basis whose first vectors span the row space" is written as conjugation by an orthogonal with that property, for every such .
import Mathlib import Definitions.Def_SameStatePairs_Basic open Matrix
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 SameStatePairsRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Fix natural numbers and . Let and be two arbitrary finite families of vectors. Let be a real orthogonal matrix (). Assume
Let be the matrix whose -th row is , and let . Equivalently, is the dimension of , so .
Two objects appear in the conclusions:
- The orthogonal Procrustes objective, for :
where is the squared Euclidean norm (sum of squared coordinates).
- The exact solution set:
The theorem asserts the conjunction of the following three statements.
- Full rank. If , then for every :
That is, is the unique global minimiser of over .
- Rank deficient. Suppose . Let be any orthogonal matrix such that the linear span of its first columns equals . Then
Here is the block-diagonal matrix with:
- the identity in the top-left block;
- the orthogonal matrix in the bottom-right block;
- zeros in both off-diagonal blocks.
This equality is asserted for every such . If no such exists, the statement holds vacuously.
- Corank one. If , then:
- has exactly two elements (it is finite with cardinality );
- every with satisfies .
Degenerate cases included by the quantifiers:
- is allowed. Then there are no vectors, , , and .
- is allowed. Then and is the one-point group, so only statement 1 is non-vacuous.
- When and (for example, all ), statement 3 applies. It asserts that , here all of , has exactly two elements.
- The vectors may repeat or be zero; only their span matters for .
- Statements 2 and 3 can hold simultaneously, since implies .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.