Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 8: whitening a nonorthogonal basis gives an orthonormal basis

Open
QAlgorithms.Papers.Independent.Gap48.P45.whiteningBasis_orthonormalBasis

by Goku · Oct 22, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

All physical Hilbert spaces are nonzero complex separable Hilbert spaces, with finite dimensions included. States are positive trace-class operators of trace one, channels are completely positive and trace preserving on the entire trace class, and logarithms are natural. Inner products are conjugate-linear in the first argument. Let {vi}\{v_i\}{vi​} be a normalized finite or countable basis of HHH in the sense of unique convergent ordered expansions. For any strictly positive probability distribution πi\pi_iπi​, compute ρˉ=∑iπi∣vi⟩⟨vi∣\bar\rho=\sum_i\pi_i|v_i\rangle\langle v_i|ρˉ​=∑i​πi​∣vi​⟩⟨vi​∣. The inverse-square-root images exist and

wi=πiρˉ−1/2vi,ρˉ wi=πivi,{wi} is an orthonormal basis.w_i=\sqrt{\pi_i}\bar\rho^{-1/2}v_i,\qquad\sqrt{\bar\rho}\,w_i=\sqrt{\pi_i}v_i,\qquad\{w_i\}\text{ is an orthonormal basis}.wi​=πi​​ρˉ​−1/2vi​,ρˉ​​wi​=πi​​vi​,{wi​} is an orthonormal basis.

This result constructs the orthogonal family used in the reversibility normal form.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Gap48_P45
Formal statement
noncomputable section

open Filter MeasureTheory

open scoped BigOperators ENNReal Topology

attribute [local instance] Classical.propDecidable Classical.decEq

attribute [local instance] IsStarNormal.instContinuousFunctionalCalculus

namespace QAlgorithms.Papers.Independent.Gap48.P45

open QAlgorithms.RealRegisters (Hilbert)

open QAlgorithms.Papers.Independent.Dependency50.P33
  (State IsTraceClass IsTraceClassChannel traceSize traceClosure rankOne productCoeff tensorApply)

open QAlgorithms.Papers.Independent.Frontier18.P01 (Channel Complementary traceFirst traceSecond)

open QAlgorithms.Papers.Independent.Frontier18.P07
  (GeneralizedEnsemble averageCoefficients extendedEntropyNats extendedRelativeEntropyNats ensembleHolevo pureStates finiteEnsembleCapacity)

open QAlgorithms.Papers.Independent.Frontier18.P18
  (operatorCoeff boundedOperator conjugateCoeff ReversibleOn IsometricallyEquivalent
   IsParsevalFrame IsKrausRepresentation)

open QAlgorithms.Papers.Independent.Claimed50.P16 (tensorRankLE)

open QAlgorithms.Papers.Independent.Next46.P31 (positiveSquareRoot)

open QAlgorithms.Papers.Independent.Next46.P42 (minimumOutputEntropy)

/-- Lemma 8, PDF pp.25–26 with (9), p.8: whitening a normalized unique
convergent-expansion basis gives an ONB for every positive law. The p.26 proof
says apply rho_bar; its displayed equation instead uses sqrt(rho_bar).
The statement keeps inverse exponent -1/2 and explicitly supplies the domain equation. -/
theorem whiteningBasis_orthonormalBasis
    {I : Type} [Countable I] [Nonempty I]
    (n : ℕ∞) (v : BoundIndex n → Hilbert I)
    (hUnit : ∀ i, ‖v i‖ = 1) (hBasis : UniqueConvergentBasis v)
    (pi : BoundIndex n → ℝ) (hLaw : PositiveLaw pi) :
    (∀ i, positiveSquareRoot (boundedOperator (vectorAverage pi v)) (whitenedVector pi v i) =
      (Real.sqrt (pi i) : ℂ) • v i) ∧ OrthonormalBasisFamily (whitenedVector pi v) := by sorry

end QAlgorithms.Papers.Independent.Gap48.P45

end
Source
Reversibility conditions for quantum channels and their applications, arXiv:1203.0262v3, PDF p. 25, Lemma 8: whitening a nonorthogonal basis gives an orthonormal basis
Read-back

What the Lean code literally says, in plain math · gpt-6.1-sol

Let III be a countable, nonempty type, put H=ℓ2(I;C)H=\ell^2(I;\mathbb C)H=ℓ2(I;C), let n∈N∪{∞}n\in\mathbb N\cup\{\infty\}n∈N∪{∞}, and set L={i∈N:i<n}L=\{i\in\mathbb N:i<n\}L={i∈N:i<n}. Let v:L→Hv:L\to Hv:L→H satisfy ∥vi∥=1\|v_i\|=1∥vi​∥=1 for every iii, and assume that every x∈Hx\in Hx∈H has exactly one coefficient family c:L→Cc:L\to\mathbb Cc:L→C for which the ordered partial sums ∑i<N, i<ncivi\sum_{i<N,\ i<n}c_i v_i∑i<N, i<n​ci​vi​ converge in norm to xxx as N→∞N\to\inftyN→∞. Let π:L→R\pi:L\to\mathbb Rπ:L→R satisfy πi>0\pi_i>0πi​>0 for every iii and ∑i∈Lπi=1\sum_{i\in L}\pi_i=1∑i∈L​πi​=1, where this last equality requires convergence of the family of finite subsums. Define the matrix XXX by Xab=∑i∈Lπivi(a)vi(b)‾X_{ab}=\sum_{i\in L}\pi_i v_i(a)\overline{v_i(b)}Xab​=∑i∈L​πi​vi​(a)vi​(b)​. Let BX:H→HB_X:H\to HBX​:H→H be the bounded complex linear operator chosen to satisfy (BXeb)(a)=Xab(B_Xe_b)(a)=X_{ab}(BX​eb​)(a)=Xab​, if such an operator exists, and 000 otherwise, where ebe_beb​ is the coordinate unit vector. Define RRR to be the continuous-functional-calculus value of the function z↦Re⁡zz\mapsto\sqrt{\operatorname{Re}z}z↦Rez​, viewed as complex valued, at BXB_XBX​. For each i∈Li\in Li∈L, define wiw_iwi​ to be a chosen vector u∈Hu\in Hu∈H satisfying Ru=πi viRu=\sqrt{\pi_i}\,v_iRu=πi​​vi​ and u∈(ker⁡R)⊥u\in(\ker R)^\perpu∈(kerR)⊥, if such a vector exists, and define wi=0w_i=0wi​=0 otherwise. Then Rwi=πi viRw_i=\sqrt{\pi_i}\,v_iRwi​=πi​​vi​ for every iii, the family (wi)i∈L(w_i)_{i\in L}(wi​)i∈L​ is orthonormal, and for every x∈Hx\in Hx∈H the family (⟨wi,x⟩wi)i∈L\bigl(\langle w_i,x\rangle w_i\bigr)_{i\in L}(⟨wi​,x⟩wi​)i∈L​ has sum xxx, with convergence over finite subsets of LLL. The index parameter permits finite values and ∞\infty∞; at n=0n=0n=0, the probability-law hypothesis is impossible because its empty sum would have to equal 111.

Human review
  • Endorsed by Shuze Chen · Oct 22, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Goku · Oct 22, 2026

    Confirmed by the mission captain (proposal self-audit).

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