Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Definitions for On the dimension of subspaces with bounded Schmidt rank

Definition
QAlgorithms_Papers_Independent_Intake100_P43

by Gohan · Oct 30, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

The objects the formalized statements of On the dimension of subspaces with bounded Schmidt rank (arXiv:0706.0705) are stated in. Each was checked against the paper by a blind read-back and a moderator.

  • coefficientEquiv: PDF pp.1–2: the full complex-linear coefficient identification in the fixed ordered local computational bases; no normalization or conjugation.
  • HasLowerSchmidtRank: PDF p.1, notation: every nonzero vector of S has Schmidt rank at least r.
  • HasUpperSchmidtRank: PDF p.1, notation: every nonzero vector of S has Schmidt rank at most r.
  • HasConstantSchmidtRank: PDF pp.1,3: constant Schmidt rank means equality for all nonzero vectors.
  • TotallyNonsingular: PDF p.2, Definition 7: every square minor is nonzero. Embeddings select distinct rows and columns. The order-zero minor is included and equals one.
  • antisymmetricSubspace: PDF p.3: the completely antisymmetric subspace. The coefficient condition is transpose = minus itself, without complex conjugation.
  • normalizedProjector: PDF p.4: the canonical normalized orthogonal projector onto S, computed from S itself. Its total-function value for the zero subspace is zero; all physical applications below have strictly positive dimension.
  • schmidtMeasure: PDF p.1: the mixed-state Schmidt measure is the least achievable bound on ranks of positive-weight components, without taking a logarithm. Countable decompositions are written directly using weights and vectors; the imported PureEnsemble is the distinct finite interface used for witnesses. For physical density matrices the candidate set is nonempty (spectral ensemble) and bounded below in N. On an invalid rho with no ensemble this definition has Mathlib's Nat.sInf empty default zero; no theorem uses that default.
Definition code
import Mathlib
import Definitions.Def_QAlgorithms_Defs_Information
import Definitions.Def_QAlgorithms_Defs_Ensemble
import Definitions.Def_QAlgorithms_Papers_Independent_Dependency50_P50
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P03

/-!
Cubitt, Montanaro and Winter, arXiv:0706.0705v1, PDF pp.1–4.
Finite complex bipartite spaces use the accepted product computational basis.
A source state is NONZERO, without a normalization requirement (PDF p.1).
Only the vectors in mixed-state decompositions are required to have unit norm.
The accepted Dependency50.P50 module supplies Bipartite and schmidtNumber;
its coefficient rank extends Schmidt rank to zero by zero.
All additions in this module are local to this paper. Compilation is pending.
-/

noncomputable section

open scoped BigOperators Matrix ComplexConjugate

namespace QAlgorithms.Papers.Independent.Intake100.P43

open QAlgorithms.Papers.Independent.Dependency50.P50 (Bipartite schmidtNumber)
open QAlgorithms.Papers.Independent.Information100.P03 (PureEnsemble)

/-- PDF pp.1–2: the full complex-linear coefficient identification in the
fixed ordered local computational bases; no normalization or conjugation. -/
def coefficientEquiv {dA dB : ℕ} :
    Bipartite dA dB ≃ₗ[ℂ] Matrix (Fin dA) (Fin dB) ℂ where
  toFun v := fun i j => v (i, j)
  invFun M := WithLp.toLp 2 (fun p => M p.1 p.2)
  left_inv v := by ext p; rfl
  right_inv M := by ext i j; rfl
  map_add' v w := by ext i j; rfl
  map_smul' c v := by ext i j; rfl

/-- PDF p.1, notation: every nonzero vector of S has Schmidt rank at least r. -/
def HasLowerSchmidtRank {dA dB : ℕ}
    (S : Submodule ℂ (Bipartite dA dB)) (r : ℕ) : Prop :=
  ∀ v ∈ S, v ≠ 0 → r ≤ schmidtNumber v

/-- PDF p.1, notation: every nonzero vector of S has Schmidt rank at most r. -/
def HasUpperSchmidtRank {dA dB : ℕ}
    (S : Submodule ℂ (Bipartite dA dB)) (r : ℕ) : Prop :=
  ∀ v ∈ S, v ≠ 0 → schmidtNumber v ≤ r

/-- PDF pp.1,3: constant Schmidt rank means equality for all nonzero vectors. -/
def HasConstantSchmidtRank {dA dB : ℕ}
    (S : Submodule ℂ (Bipartite dA dB)) (r : ℕ) : Prop :=
  ∀ v ∈ S, v ≠ 0 → schmidtNumber v = r

/-- PDF p.2, Definition 7: every square minor is nonzero. Embeddings select
 distinct rows and columns. The order-zero minor is included and equals one. -/
def TotallyNonsingular {n : ℕ} (M : Matrix (Fin n) (Fin n) ℂ) : Prop :=
  ∀ (k : ℕ) (rows cols : Fin k ↪ Fin n),
    (M.submatrix rows cols).det ≠ 0

/-- PDF p.3: the completely antisymmetric subspace. The coefficient condition
is transpose = minus itself, without complex conjugation. -/
def antisymmetricSubspace : Submodule ℂ (Bipartite 3 3) where
  carrier := {v | ∀ i j, v (i, j) = -v (j, i)}
  zero_mem' := by intro i j; simp
  add_mem' := by
    intro v w hv hw i j
    change v (i, j) + w (i, j) = -(v (j, i) + w (j, i))
    rw [hv i j, hw i j, neg_add]
  smul_mem' := by
    intro c v hv i j
    change c * v (i, j) = -(c * v (j, i))
    rw [hv i j, mul_neg]

/-- PDF p.4: the canonical normalized orthogonal projector onto S, computed
from S itself. Its total-function value for the zero subspace is zero;
all physical applications below have strictly positive dimension. -/
def normalizedProjector {dA dB : ℕ} (S : Submodule ℂ (Bipartite dA dB)) :
    Matrix (Fin dA × Fin dB) (Fin dA × Fin dB) ℂ :=
  (Module.finrank ℂ S : ℂ)⁻¹ •
    (fun i j => (S.starProjection (QAlgorithms.ket j)) i)

/-- PDF p.1: the mixed-state Schmidt measure is the least achievable bound
on ranks of positive-weight components, without taking a logarithm.
Countable decompositions are written directly using weights and vectors; the
imported PureEnsemble is the distinct finite interface used for witnesses.
For physical density matrices the candidate set is nonempty (spectral ensemble)
and bounded below in N. On an invalid rho with no ensemble this definition has
Mathlib's Nat.sInf empty default zero; no theorem uses that default. -/
def schmidtMeasure {dA dB : ℕ}
    (rho : Matrix (Fin dA × Fin dB) (Fin dA × Fin dB) ℂ) : ℕ :=
  sInf {k : ℕ | ∃ (weight : ℕ → ℝ) (vector : ℕ → Bipartite dA dB),
    (∀ i, 0 ≤ weight i) ∧ HasSum weight 1 ∧
    (∀ i, ‖vector i‖ = 1) ∧
    (∀ a b, HasSum
      (fun i => (weight i : ℂ) * QAlgorithms.pureDensity (vector i) a b) (rho a b)) ∧
    ∀ i, 0 < weight i → schmidtNumber (vector i) ≤ k}

/-- Sanity: one coefficient is read in the ordered product basis. -/
example (v : Bipartite 2 3) : coefficientEquiv v (0 : Fin 2) (1 : Fin 3) =
    v ((0 : Fin 2), (1 : Fin 3)) := rfl

/-- Sanity: the zero subspace has no nonzero vectors to constrain. -/
example (r : ℕ) : HasLowerSchmidtRank (⊥ : Submodule ℂ (Bipartite 1 1)) r := by
  intro v hv hne
  exact (hne (by simpa using hv)).elim

/-- Sanity: the upper/constant predicates also exclude the zero vector. -/
example (r : ℕ) : HasUpperSchmidtRank (⊥ : Submodule ℂ (Bipartite 1 1)) r ∧
    HasConstantSchmidtRank (⊥ : Submodule ℂ (Bipartite 1 1)) r := by
  constructor <;> intro v hv hne <;> exact (hne (by simpa using hv)).elim

/-- Sanity: the order-zero determinant in the minor predicate equals one. -/
example {n : ℕ} (M : Matrix (Fin n) (Fin n) ℂ)
    (rows cols : Fin 0 ↪ Fin n) : (M.submatrix rows cols).det = 1 := by
  simp

/-- Sanity: antisymmetry permits zero, as a linear subspace must. -/
example : (0 : Bipartite 3 3) ∈ antisymmetricSubspace := by
  intro i j
  simp

/-- Sanity: normalization on the zero subspace returns zero, never a density. -/
example : normalizedProjector (⊥ : Submodule ℂ (Bipartite 1 1)) = 0 := by
  simp [normalizedProjector] <;> rfl

/-- Sanity: the imported finite ensemble has total weight one. -/
example {dA dB : ℕ} (E : PureEnsemble (Fin dA × Fin dB)) :
    ∑ i, E.weight i = 1 := E.total

/-- Sanity: a convergent decomposition with all positive-weight ranks at most
one supplies a candidate in the countable Schmidt-measure definition. -/
example {rho : Matrix (Fin 1 × Fin 1) (Fin 1 × Fin 1) ℂ}
    (weight : ℕ → ℝ) (vector : ℕ → Bipartite 1 1)
    (hw : ∀ i, 0 ≤ weight i) (hs : HasSum weight 1)
    (hv : ∀ i, ‖vector i‖ = 1)
    (he : ∀ a b, HasSum
      (fun i => (weight i : ℂ) * QAlgorithms.pureDensity (vector i) a b) (rho a b))
    (hr : ∀ i, 0 < weight i → schmidtNumber (vector i) ≤ 1) :
    1 ∈ {k : ℕ | ∃ (w : ℕ → ℝ) (v : ℕ → Bipartite 1 1),
      (∀ i, 0 ≤ w i) ∧ HasSum w 1 ∧ (∀ i, ‖v i‖ = 1) ∧
      (∀ a b, HasSum
        (fun i => (w i : ℂ) * QAlgorithms.pureDensity (v i) a b) (rho a b)) ∧
      ∀ i, 0 < w i → schmidtNumber (v i) ≤ k} :=
  ⟨weight, vector, hw, hs, hv, he, hr⟩

end QAlgorithms.Papers.Independent.Intake100.P43
Source
On the dimension of subspaces with bounded Schmidt rank, arXiv:0706.0705v1, https://arxiv.org/abs/0706.0705v1
Read-back

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

QAlgorithms.Papers.Independent.Intake100.P43.HasConstantSchmidtRank

For natural numbers dA,dB,rd_A,d_B,rdA​,dB​,r and a complex-linear subspace SSS of the Euclidean space of arrays v=(vij)v=(v_{ij})v=(vij​) with 0≤i<dA0\le i<d_A0≤i<dA​ and 0≤j<dB0\le j<d_B0≤j<dB​, this predicate means that every nonzero v∈Sv\in Sv∈S has coefficient-matrix rank exactly rrr:

rank⁡C((vij)i,j)=r.\operatorname{rank}_{\mathbb C}\bigl((v_{ij})_{i,j}\bigr)=r.rankC​((vij​)i,j​)=r.

No normalization is required, and no nonzero vector is required to exist in SSS. In particular, the zero subspace satisfies this predicate for every rrr, including when either ambient dimension is zero; for r=0r=0r=0, only the zero subspace satisfies it.

QAlgorithms.Papers.Independent.Intake100.P43.HasLowerSchmidtRank

For natural numbers dA,dB,rd_A,d_B,rdA​,dB​,r and a complex-linear subspace SSS of the Euclidean space of arrays v=(vij)v=(v_{ij})v=(vij​) with 0≤i<dA0\le i<d_A0≤i<dA​ and 0≤j<dB0\le j<d_B0≤j<dB​, this predicate means that every nonzero v∈Sv\in Sv∈S has coefficient-matrix rank at least rrr:

r≤rank⁡C((vij)i,j).r\le \operatorname{rank}_{\mathbb C}\bigl((v_{ij})_{i,j}\bigr).r≤rankC​((vij​)i,j​).

No normalization of vvv is required. The predicate holds vacuously for S={0}S=\{0\}S={0}, including every possible subspace when either ambient dimension is zero; for r=0r=0r=0, it holds for every SSS.

QAlgorithms.Papers.Independent.Intake100.P43.HasUpperSchmidtRank

For natural numbers dA,dB,rd_A,d_B,rdA​,dB​,r and a complex-linear subspace SSS of the Euclidean space of arrays v=(vij)v=(v_{ij})v=(vij​) with 0≤i<dA0\le i<d_A0≤i<dA​ and 0≤j<dB0\le j<d_B0≤j<dB​, this predicate means that every nonzero v∈Sv\in Sv∈S satisfies

rank⁡C((vij)i,j)≤r.\operatorname{rank}_{\mathbb C}\bigl((v_{ij})_{i,j}\bigr)\le r.rankC​((vij​)i,j​)≤r.

No normalization is required. The predicate holds vacuously for S={0}S=\{0\}S={0}, including every possible subspace when either ambient dimension is zero. When r=0r=0r=0, it can hold only for the zero subspace.

QAlgorithms.Papers.Independent.Intake100.P43.TotallyNonsingular

For every natural number nnn and complex n×nn\times nn×n matrix MMM, this predicate means that, for every natural number kkk and every two injective maps ρ,γ:{0,…,k−1}→{0,…,n−1}\rho,\gamma:\{0,\ldots,k-1\}\to\{0,\ldots,n-1\}ρ,γ:{0,…,k−1}→{0,…,n−1}, the square matrix with entries Mρ(i),γ(j)M_{\rho(i),\gamma(j)}Mρ(i),γ(j)​ has nonzero determinant. Thus every square submatrix obtained by independently selecting and ordering distinct rows and distinct columns must have nonzero determinant. The case k=0k=0k=0 is included and has determinant 111; for k>nk>nk>n, there are no such injections. Consequently, the unique 0×00\times00×0 matrix satisfies the predicate.

QAlgorithms.Papers.Independent.Intake100.P43.antisymmetricSubspace

This defines the complex-linear subspace of the Euclidean space C{0,1,2}×{0,1,2}\mathbb C^{\{0,1,2\}\times\{0,1,2\}}C{0,1,2}×{0,1,2} consisting exactly of vectors vvv satisfying vij=−vjiv_{ij}=-v_{ji}vij​=−vji​ for every i,j∈{0,1,2}i,j\in\{0,1,2\}i,j∈{0,1,2}. Equivalently, their 3×33\times33×3 coefficient matrices are skew-symmetric under ordinary transpose, without complex conjugation; in particular, all diagonal coordinates are zero. The zero vector is included, and the stated coordinate condition is preserved by addition and multiplication by any complex scalar.

QAlgorithms.Papers.Independent.Intake100.P43.coefficientEquiv

For every pair of natural numbers dA,dBd_A,d_BdA​,dB​, including zero, this defines a complex-linear equivalence from the Euclidean space C{0,…,dA−1}×{0,…,dB−1}\mathbb C^{\{0,\ldots,d_A-1\}\times\{0,\ldots,d_B-1\}}C{0,…,dA​−1}×{0,…,dB​−1} to the space of complex dA×dBd_A\times d_BdA​×dB​ matrices: a vector vvv is sent to the matrix MMM with Mij=v(i,j)M_{ij}=v_{(i,j)}Mij​=v(i,j)​, and a matrix MMM is sent back to the vector with coordinates v(i,j)=Mijv_{(i,j)}=M_{ij}v(i,j)​=Mij​. These maps are inverse and preserve addition and complex scalar multiplication. If either dimension is zero, both spaces consist only of zero.

QAlgorithms.Papers.Independent.Intake100.P43.normalizedProjector

For every pair of natural numbers dA,dBd_A,d_BdA​,dB​ and every complex-linear subspace SSS of the Euclidean space indexed by I={0,…,dA−1}×{0,…,dB−1}I=\{0,\ldots,d_A-1\}\times\{0,\ldots,d_B-1\}I={0,…,dA​−1}×{0,…,dB​−1}, this defines the I×II\times II×I complex matrix

Nab=(ΠSeb)adim⁡CS,N_{ab}=\frac{(\Pi_S e_b)_a}{\dim_{\mathbb C}S},Nab​=dimC​S(ΠS​eb​)a​​,

where ΠS\Pi_SΠS​ is the orthogonal projection onto SSS and ebe_beb​ has coordinate 111 at bbb and 000 elsewhere. The dimension is converted to a complex scalar before taking its inverse. Division by zero is interpreted as multiplication by zero, so this definition gives the zero matrix when S={0}S=\{0\}S={0}, including when either ambient dimension is zero.

QAlgorithms.Papers.Independent.Intake100.P43.schmidtMeasure

For natural numbers dA,dBd_A,d_BdA​,dB​ and any complex matrix ρ\rhoρ indexed by I×II\times II×I, where I={0,…,dA−1}×{0,…,dB−1}I=\{0,\ldots,d_A-1\}\times\{0,\ldots,d_B-1\}I={0,…,dA​−1}×{0,…,dB​−1}, this defines the infimum in N\mathbb NN of all natural numbers kkk for which there exist sequences wi∈Rw_i\in\mathbb Rwi​∈R and vectors vi∈CIv_i\in\mathbb C^Ivi​∈CI, indexed by every i∈Ni\in\mathbb Ni∈N, such that wi≥0w_i\ge0wi​≥0, ∑iwi=1\sum_i w_i=1∑i​wi​=1, every viv_ivi​ has Euclidean norm 111, and

ρab=∑i=0∞wi(vi)a(vi)b‾for every a,b∈I,\rho_{ab}=\sum_{i=0}^{\infty}w_i(v_i)_a\overline{(v_i)_b} \quad\text{for every }a,b\in I,ρab​=i=0∑∞​wi​(vi​)a​(vi​)b​​for every a,b∈I,

with each displayed sum required to converge to its stated value, and with rank⁡C(((vi)ab)a,b)≤k\operatorname{rank}_{\mathbb C}(((v_i)_{ab})_{a,b})\le krankC​(((vi​)ab​)a,b​)≤k whenever wi>0w_i>0wi​>0. Unit norm is required even for vectors with zero weight. No density-matrix hypothesis is imposed on ρ\rhoρ. If any admissible kkk exists, the value is the least such kkk; if none exists, the natural-number infimum is 000. In particular, if either ambient dimension is zero, unit vectors cannot exist and the value is 000.

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

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 30, 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