Proposition 2: extension of the Mazur-Ulam theorem to hyperspheres and the dot product
ProvedContrastiveInverts.sphere_dot_product_map_is_scaled_orthogonalLet , , and . Let be differentiable on an open neighbourhood of , and suppose that on it preserves the dot product up to the factor :
Then is an orthogonal linear transformation scaled by on : there is an orthogonal map of such that for all .
This is the step that turns preservation of the dot product into linearity.
import Mathlib import Definitions.Def_ContrastiveInverts_Basic open MeasureTheory Filter Topology
namespace ContrastiveInverts
theorem sphere_dot_product_map_is_scaled_orthogonal {N : ℕ} (hN : 0 < N) (r : ℝ) (hr : 0 < r)
(h : Vec N → Vec N) (hmap : ∀ x, h x ∈ Metric.sphere (0 : Vec N) r)
(hdiff : ∃ U : Set (Vec N), IsOpen U ∧ Metric.sphere (0 : Vec N) 1 ⊆ U ∧
DifferentiableOn ℝ h U)
(hdot : ∀ z ∈ Metric.sphere (0 : Vec N) 1, ∀ z' ∈ Metric.sphere (0 : Vec N) 1,
r ^ 2 * inner ℝ z z' = inner ℝ (h z) (h z')) :
∃ U : Vec N ≃ₗᵢ[ℝ] Vec N, ∀ z ∈ Metric.sphere (0 : Vec N) 1, h z = r • U z := by sorry
end ContrastiveInvertsRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Fix a positive integer (so ; the case is excluded). Work in with its standard Euclidean inner product and norm. Write
for the unit sphere and for the sphere of radius centred at the origin. When , .
Let be a real number with , and let be a function satisfying all three of the following hypotheses.
- Image on the -sphere, everywhere. For every , not only for on the unit sphere and including , we have .
- Differentiability near the sphere. There is an open set with such that is (Fréchet) differentiable at every point of . Nothing is assumed about outside beyond hypothesis 1. For example, may omit the origin.
- Scaled preservation of inner products on the sphere. For all ,
These hypotheses can be satisfied simultaneously. For instance, take for , let be any point of , and take .
Conclusion. There exists a linear isometric isomorphism such that
Here is a linear bijection preserving the Euclidean norm, i.e. an orthogonal transformation. Either determinant, or , is allowed.
The conclusion only constrains on the unit sphere . It says nothing about the values of at points off the unit sphere. None of the definitions from the accompanying bundle (measures, conditionals, cross-entropies, InfoNCE objectives) appear in this statement. Its only ingredient from that file is the Euclidean space .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.