Problem 01 definitions — Positive definite matrix integral inequality
Definitionrybin2026_p01_matrix_integralEuclidean. For every , including , let . The space is the real coordinate space , equipped with the standard Euclidean norm . For , is empty and this space consists only of the zero vector.
surfaceMeasure. For every , let with its Euclidean norm and let . The measure is the measure on induced from Lebesgue volume on by its polar-decomposition construction, with no additional normalization to make it a probability measure. When , is empty, so is the unique measure on the empty space.
bilinear. For every , every real matrix , and every , the quantity is
No symmetry, definiteness, or other condition is imposed on , and no normalization is imposed on or . For , both sums are empty and the value is .
distance. For every , including , and arbitrary real matrices and , let and let be the sphere measure induced from Lebesgue volume by polar decomposition. The definition assigns the real number
There are no assumptions that or is symmetric, positive, invertible, or distinct. The numerator alone is enclosed in an absolute value; the two quadratic expressions in the denominator are not. Consequently the pointwise quotient can be negative when their product is negative. Real division is total here: if either denominator factor is , the quotient at that pair is defined to be , regardless of the numerator. Each integral is the real Bochner integral, which is defined to be when its integrand is not integrable; in particular, a nonintegrable inner integral has value , and a nonintegrable resulting outer integrand makes the entire outer integral . For , the unit sphere is empty and the double integral is .
import Mathlib.LinearAlgebra.Matrix.PosDef
import Mathlib.Analysis.Normed.Lp.MeasurableSpace
import Mathlib.MeasureTheory.Constructions.HaarToSphere
import Mathlib.MeasureTheory.Integral.Prod
open Matrix MeasureTheory Metric
open scoped BigOperators
namespace RybinAI2026.P01
/-- Euclidean coordinate space used by the matrix integral problem, equipped with the `ℓ²` norm. -/
abbrev Euclidean (n : ℕ) := EuclideanSpace ℝ (Fin n)
/-- The canonical surface measure obtained from Lebesgue measure by polar decomposition. -/
noncomputable def surfaceMeasure (n : ℕ) : Measure (sphere (0 : Euclidean n) 1) :=
(volume : Measure (Euclidean n)).toSphere
/-- The bilinear numerator `uᵀ M v`. -/
def bilinear {n : ℕ} (M : Matrix (Fin n) (Fin n) ℝ)
(u v : Euclidean n) : ℝ :=
dotProduct (fun i => u i) (M *ᵥ fun j => v j)
/-- The double spherical integral from problem 1. No normalization is imposed on surface
measure; multiplying the measure by a fixed constant multiplies every occurrence of `distance`
by the same constant and does not affect the target inequality. -/
noncomputable def distance {n : ℕ} (A B : Matrix (Fin n) (Fin n) ℝ) : ℝ :=
∫ u, ∫ v,
|bilinear (A - B) u.1 v.1| /
(bilinear A u.1 u.1 * bilinear B v.1 v.1)
∂surfaceMeasure n ∂surfaceMeasure n
end RybinAI2026.P01
Read-back
What the Lean code literally says, in plain math · gpt-5.6-sol
Euclidean. For every , including , let . The space is the real coordinate space , equipped with the standard Euclidean norm . For , is empty and this space consists only of the zero vector.
surfaceMeasure. For every , let with its Euclidean norm and let . The measure is the measure on induced from Lebesgue volume on by its polar-decomposition construction, with no additional normalization to make it a probability measure. When , is empty, so is the unique measure on the empty space.
bilinear. For every , every real matrix , and every , the quantity is
No symmetry, definiteness, or other condition is imposed on , and no normalization is imposed on or . For , both sums are empty and the value is .
distance. For every , including , and arbitrary real matrices and , let and let be the sphere measure induced from Lebesgue volume by polar decomposition. The definition assigns the real number
There are no assumptions that or is symmetric, positive, invertible, or distinct. The numerator alone is enclosed in an absolute value; the two quadratic expressions in the denominator are not. Consequently the pointwise quotient can be negative when their product is negative. Real division is total here: if either denominator factor is , the quotient at that pair is defined to be , regardless of the numerator. Each integral is the real Bochner integral, which is defined to be when its integrand is not integrable; in particular, a nonintegrable inner integral has value , and a nonintegrable resulting outer integrand makes the entire outer integral . For , the unit sphere is empty and the double integral is .
Confirmed by the mission captain (proposal self-audit).