Lemma B.11: generic samples have distinct points, distances and distance rows
ProvedIdentifiableAlignment.generic_samplesLet be a compact connected smooth Riemannian manifold of dimension , possibly with boundary, with Riemannian distance , and let be a probability measure on with a smooth positive density (H1). Let and be diffeomorphisms, where each latent space carries the pullback metric , and its Riemannian distance , (H2). Write , and . Let and let be independent random points of with law . Then, almost surely:
- the points are distinct;
- the distances , , are distinct;
- for the rows and of the distance matrix differ as multisets;
- the only permutation of with for all is the identity.
import Mathlib import Definitions.Def_IdentifiableAlignment_Basic open MeasureTheory ProbabilityTheory Set Filter Topology Bundle open scoped ENNReal ContDiff Manifold
namespace IdentifiableAlignment
theorem generic_samples {d : ℕ} [NeZero d] {M Za Zb : Type*}
[MetricSpace M] [ChartedSpace (EuclideanHalfSpace d) M] [IsManifold (𝓡∂ d) ∞ M]
[RiemannianBundle (fun x : M => TangentSpace (𝓡∂ d) x)]
[IsContMDiffRiemannianBundle (𝓡∂ d) ∞ (EuclideanSpace ℝ (Fin d)) (fun x : M => TangentSpace (𝓡∂ d) x)]
[IsRiemannianManifold (𝓡∂ d) M] [MeasurableSpace M] [BorelSpace M]
[CompactSpace M] [ConnectedSpace M]
[MetricSpace Za] [ChartedSpace (EuclideanHalfSpace d) Za] [IsManifold (𝓡∂ d) ∞ Za]
[RiemannianBundle (fun x : Za => TangentSpace (𝓡∂ d) x)]
[IsContMDiffRiemannianBundle (𝓡∂ d) ∞ (EuclideanSpace ℝ (Fin d)) (fun x : Za => TangentSpace (𝓡∂ d) x)]
[IsRiemannianManifold (𝓡∂ d) Za] [MeasurableSpace Za] [BorelSpace Za]
[MetricSpace Zb] [ChartedSpace (EuclideanHalfSpace d) Zb] [IsManifold (𝓡∂ d) ∞ Zb]
[RiemannianBundle (fun x : Zb => TangentSpace (𝓡∂ d) x)]
[IsContMDiffRiemannianBundle (𝓡∂ d) ∞ (EuclideanSpace ℝ (Fin d)) (fun x : Zb => TangentSpace (𝓡∂ d) x)]
[IsRiemannianManifold (𝓡∂ d) Zb] [MeasurableSpace Zb] [BorelSpace Zb]
(P : Measure M) [IsProbabilityMeasure P] (hP : HasSmoothPosDensity d P)
(fa : Za ≃ₘ^∞⟮𝓡∂ d, 𝓡∂ d⟯ M) (fb : Zb ≃ₘ^∞⟮𝓡∂ d, 𝓡∂ d⟯ M)
(hfa : IsModelCoordinates fa) (hfb : IsModelCoordinates fb)
(n : ℕ) (hn : 3 ≤ n)
{Ω : Type*} [MeasurableSpace Ω] (Pr : Measure Ω) [IsProbabilityMeasure Pr]
(X : Fin n → Ω → Za) (hXm : ∀ i, Measurable (X i)) (hXind : iIndepFun X Pr)
(hXlaw : ∀ i, Pr.map (X i) = latentLaw P fa) :
∀ᵐ ξ ∂Pr,
Function.Injective (fun i => X i ξ) ∧
(∀ i j k l : Fin n, i < j → k < l → (i, j) ≠ (k, l) →
dist (X i ξ) (X j ξ) ≠ dist (X k ξ) (X l ξ)) ∧
(∀ i j : Fin n, i ≠ j →
(Finset.univ.erase i).val.map (fun l => dist (X i ξ) (X l ξ)) ≠
(Finset.univ.erase j).val.map (fun l => dist (X j ξ) (X l ξ))) ∧
(∀ τ : Equiv.Perm (Fin n), (∀ i j, dist (X (τ i) ξ) (X (τ j) ξ) = dist (X i ξ) (X j ξ)) →
τ = 1) := by sorry
end IdentifiableAlignmentRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. Fix an integer . Let , , be three spaces, each carrying all of the following structure:
- a metric;
- an atlas of charts into the closed -dimensional Euclidean half-space, so boundary points are allowed, making it a manifold;
- a smoothly varying inner product on its tangent spaces, i.e. a smooth Riemannian metric;
- the Borel -algebra of its metric topology.
On each space, the given distance is required to equal the Riemannian distance induced by , the infimum of lengths of curves. In addition, is assumed compact and connected. No compactness or connectedness is assumed for or .
The data distribution. Let be a probability measure on with a smooth positive density. That is, there is a function which is with respect to the manifold structure of and satisfies for every , such that
Here is the -dimensional Hausdorff measure of the metric of . Since is a probability measure, .
The coordinate maps. Let and be diffeomorphisms. Each is assumed to pull back the metric of to the metric of its domain. For this means that for every and all tangent vectors ,
and the analogous identity holds for on . The space , the map and its pullback hypothesis do not appear anywhere in the conclusion.
The sample. Let be a natural number. Let be a probability space, and let
be random variables satisfying:
- each is measurable;
- the family is mutually independent under ;
- each has law , the image of under .
Conclusion. For -almost every , write and let denote the given distance on . Then all four of the following hold simultaneously:
-
Distinct points. The points are pairwise distinct.
-
Distinct pairwise distances. For all index pairs and with , and ,
In other words, the pairwise distances are all different.
- Distinct distance profiles. For all indices , the multisets
are different. Each is a multiset of distances, counted with multiplicity.
- No nontrivial distance-preserving relabelling. Let be any permutation of such that
Then is the identity.
"Almost every" means that the set of for which any of these four properties fails is contained in a -null set. The statement does not separately assert that this set is measurable.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.