Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Closed form for the weighted Hilbert squared-distance objective

Proved
HlawkaSchatten.weightedHilbertObjective_eq

by savarin · Sep 27, 2026 · Mathlib 0df444a (Lean v4.33.1)

hilbert-spacehlawka-schatteninner-productvariational-methods

Let k\Bbbkk be R\mathbb RR or C\mathbb CC (an instance of Mathlib's RCLike), let HHH be an inner-product space over k\Bbbkk (no finite-dimensionality is assumed), let ι\iotaι be a finite index type, let a:ι→Ra:\iota\to\mathbb Ra:ι→R, and let u:ι→Hu:\iota\to Hu:ι→H with ∥ui∥=1\|u_i\|=1∥ui​∥=1 for every iii, and v∈Hv\in Hv∈H with ∥v∥=1\|v\|=1∥v∥=1. Write

weightedHilbertObjective(a,u,v)  =  ∑i∈ιai ∥ui−v∥2\mathrm{weightedHilbertObjective}(a,u,v) \;=\; \sum_{i\in\iota} a_i\,\|u_i-v\|^2weightedHilbertObjective(a,u,v)=i∈ι∑​ai​∥ui​−v∥2

for the weighted sum of squared distances from each uiu_iui​ to vvv, and weightedHilbertSum(a,u)=∑iai ui\mathrm{weightedHilbertSum}(a,u)=\sum_i a_i\,u_iweightedHilbertSum(a,u)=∑i​ai​ui​. Then

weightedHilbertObjective(a,u,v)  =  2(∑iai−Re⁡⟨weightedHilbertSum(a,u), v⟩k),\mathrm{weightedHilbertObjective}(a,u,v) \;=\; 2\Big(\sum_i a_i - \operatorname{Re}\big\langle \mathrm{weightedHilbertSum}(a,u),\,v\big\rangle_{\Bbbk}\Big),weightedHilbertObjective(a,u,v)=2(i∑​ai​−Re⟨weightedHilbertSum(a,u),v⟩k​),

where ⟨⋅,⋅⟩k\langle\cdot,\cdot\rangle_{\Bbbk}⟨⋅,⋅⟩k​ is the inner product of HHH.

This closed form expresses the objective purely through the weighted sum ∑iaiui\sum_i a_iu_i∑i​ai​ui​ and its inner product with vvv. This is exactly the algebraic shape needed to compute the objective's minimum over vvv ranging on the unit sphere of HHH.

Preamble
import Definitions.Def_HlawkaSchatten_Variational
import Mathlib.Analysis.Calculus.LHopital
import Mathlib.Analysis.Convex.Deriv
import Mathlib.Analysis.Convex.SpecificFunctions.Basic
import Mathlib.Analysis.InnerProductSpace.Adjoint
import Mathlib.Analysis.InnerProductSpace.Basic
import Mathlib.Analysis.InnerProductSpace.Dual
import Mathlib.Analysis.InnerProductSpace.NormPow
import Mathlib.Analysis.InnerProductSpace.PiL2
import Mathlib.Analysis.InnerProductSpace.ProdL2
import Mathlib.Analysis.InnerProductSpace.SingularValues
import Mathlib.Analysis.InnerProductSpace.Trace
import Mathlib.Data.Sign.Basic
import Mathlib.LinearAlgebra.Matrix.Charpoly.Basic
import Mathlib.Topology.Compactification.OnePoint.Basic
import Mathlib.Topology.Instances.Sign

/-
Copyright (c) 2026 Ezzeri Esa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ezzeri Esa
-/

/-!
# Variational minima for the Bregman--Mazur argument

This file proves two reusable parts of the variational layer.  First, a
pointwise two-sided comparison transports to attained global minima, even
when the two objectives are indexed by different but equivalent spheres.
Second, the weighted squared-distance objective on a Hilbert unit sphere has
the exact minimum used in the Schatten argument.
-/


open scoped InnerProductSpace ComplexConjugate







variable {𝕜 H ι : Type*} [RCLike 𝕜] [Fintype ι]
  [NormedAddCommGroup H] [InnerProductSpace 𝕜 H]

open HlawkaSchatten
Formal statement
theorem HlawkaSchatten.weightedHilbertObjective_eq
    (a : ι → ℝ) (u : ι → H) (v : H)
    (hu : ∀ i, ‖u i‖ = 1) (hv : ‖v‖ = 1) :
    weightedHilbertObjective a u v =
      2 * (∑ i, a i -
        RCLike.re ⟪weightedHilbertSum (𝕜 := 𝕜) a u, v⟫_𝕜) := by sorry
Source
https://github.com/savarin/hlawka-schatten/blob/79aa498bfcf7b22bd91d771fb32ec278e2d4704b/HlawkaSchatten/Variational.lean#L76-L94

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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me