Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Definitions for On the quantification of entanglement in infinite-dimensional quantum systems

Definition
QAlgorithms_Papers_Independent_Gap20_P05

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

prove2quantum

The objects the formalized statements of On the quantification of entanglement in infinite-dimensional quantum systems (arXiv:quant-ph/0112064) are stated in. Each was checked against the paper by a blind read-back and a moderator.

  • HamiltonianData: PDF pp.2--3, (1)--(2): ordered local eigenvalues, with multiplicity, and finite joint Gibbs partition sum at every positive inverse temperature. These real eigenvalues retain an arbitrary finite ground energy.
  • levelEnergy: PDF p.2: the energy of the sum Hamiltonian in the product eigenbasis.
  • spectralHamiltonian: PDF pp.2--4: adapt the ordered sum spectrum to the frozen semibounded Hamiltonian. Its frozen meanEnergy retains the finite ground energy and infinity.
  • energyBound: PDF p.4, (10): the STRICT energy sublevel in the entire trace-norm state space.
  • marginalEntropy: PDF p.3, (3): entropy of the A marginal, also used for mixed states.
  • exampleDelta: PDF p.3, Example 1: delta_k = 1/log_2 k, used only for k>=2.
  • exampleVector: PDF p.3, (4): the specified vector in the fixed energy eigenbasis. The theorem shifts the index to k+2 to remove the undefined printed k=1.
  • copyLevelEnergy: PDF pp.6--8: printed H^{tensor n}; changed to the additive n-copy Hamiltonian. The energy n*M and the product Gibbs state used by the proof require the sum of the single-copy Hamiltonians, not a product of their eigenvalues.
  • copySpectralHamiltonian: PDF pp.6--8: additive copy spectrum adapted to the frozen Hamiltonian; its lower bound is n times the original finite ground energy.
  • copyMeanEnergy: PDF pp.6--8: use frozen meanEnergy for the additive copy Hamiltonian. The argument is a normalized state; divergent expectations remain infinity.
  • FiniteRank: PDF p.6, Lemma 5: finite operator rank, without restriction to energy coordinates. This is a finite sum of rank-one operators on the full one-system Hilbert space.
  • FiniteSchmidtRank: PDF pp.6,10,12: printed finite-dimensional subspace of S(H); changed to finite LOCAL support, equivalently finite Schmidt rank. The finite-dimensional systems in the preamble and Lemma 5 applied to the A marginal pin this reading. Global rank one would make the condition automatic; no energy-basis cutoff is used.
  • countableFormationBits: PDF pp.8--9, (31)--(32): frozen countable trace-norm pure-state roof, converted from nats to bits. Frozen Information100.P08.formation uses finite ensembles on finite-dimensional spaces and cannot represent this domain. No energy constraint on components or optimal decomposition is assumed.
  • ComparisonState: PDF p.11: both expressly allowed comparison sets. false selects the closed convex hull D of products; true selects the trace-norm closure P of PPT states.
  • comparisonRelativeEntropyBits: PDF p.11, (45): infimum over ALL comparison states, without an energy bound. The generalized relative entropy has the usual value on normalized states; converting nats to bits preserves infinity and support failure.
Definition code
import Mathlib
import Definitions.Def_QAlgorithms_Papers_Independent_Dependency50_P33
import Definitions.Def_QAlgorithms_Papers_Independent_Frontier18_P01
import Definitions.Def_QAlgorithms_Defs_BipartiteSeparability
import Definitions.Def_QAlgorithms_Papers_Independent_Dependency50_P07
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P63
import Definitions.Def_QAlgorithms_Papers_Independent_Gap48_P26
import Definitions.Def_QAlgorithms_Papers_Independent_Next46_P42

/-!
On the quantification of entanglement in infinite-dimensional quantum systems,
arXiv:quant-ph/0112064v3. The explicitly authorized pinned accepted library
supplies nuclear trace class and the full trace norm on completed l2 spaces.
Both local systems have basis N; no cutoff is imposed. Entropy is in bits.
The two deferred intermediate assertions (24) and (27) are not premises.
Compilation is pending the batch mechanical handoff.
-/

noncomputable section

open Filter
open scoped ENNReal BigOperators Topology

attribute [local instance] Classical.propDecidable Classical.decEq

namespace QAlgorithms.Papers.Independent.Gap20.P05

open QAlgorithms.RealRegisters (Hilbert)
open QAlgorithms.Papers.Independent.Dependency50.P33
  (State PureState IsDensity rankOne traceSize traceClosure IsSeparable)
open QAlgorithms.Papers.Independent.Frontier18.P01
  (generalizedRelativeEntropy traceSecond)
open QAlgorithms.Entanglement (partialTransposeFirst)
open QAlgorithms.Papers.Independent.Dependency50.P07 (bipartitePower)
open QAlgorithms.Papers.Independent.Information100.P63 (tensorPower)
open QAlgorithms.Papers.Independent.Gap48.P26 (entropyBits)

/-- PDF pp.2--3, (1)--(2): ordered local eigenvalues, with multiplicity, and
finite joint Gibbs partition sum at every positive inverse temperature.
These real eigenvalues retain an arbitrary finite ground energy. -/
structure HamiltonianData where
  energyA : ℕ → ℝ
  energyB : ℕ → ℝ
  orderedA : Monotone energyA
  orderedB : Monotone energyB
  gibbs : ∀ beta : ℝ, 0 < beta →
    Summable (fun p : ℕ × ℕ => Real.exp (-beta * (energyA p.1 + energyB p.2)))

/-- PDF p.2: the energy of the sum Hamiltonian in the product eigenbasis. -/
def levelEnergy (h : HamiltonianData) (p : ℕ × ℕ) : ℝ :=
  h.energyA p.1 + h.energyB p.2

/-- PDF pp.2--4: adapt the ordered sum spectrum to the frozen semibounded
Hamiltonian. Its frozen meanEnergy retains the finite ground energy and infinity. -/
def spectralHamiltonian (h : HamiltonianData) :
    QAlgorithms.Papers.Independent.Frontier18.P01.Hamiltonian (ℕ × ℕ) where
  energy := levelEnergy h
  lower := levelEnergy h (0, 0)
  bounded_below := by
    intro p
    exact add_le_add (h.orderedA (Nat.zero_le p.1)) (h.orderedB (Nat.zero_le p.2))

/-- PDF p.4, (10): the STRICT energy sublevel in the entire trace-norm state space. -/
def energyBound (h : HamiltonianData) (M : ℝ) : Set (State (ℕ × ℕ)) :=
  {rho | (spectralHamiltonian h).meanEnergy rho < (M : EReal)}

/-- PDF p.3, (3): entropy of the A marginal, also used for mixed states. -/
def marginalEntropy {I J : Type} (X : Matrix (I × J) (I × J) ℂ) : ℝ≥0∞ :=
  entropyBits (traceSecond X)

/-- PDF p.3, Example 1: delta_k = 1/log_2 k, used only for k>=2. -/
def exampleDelta (k : ℕ) : ℝ := Real.log 2 / Real.log (k : ℝ)

/-- PDF p.3, (4): the specified vector in the fixed energy eigenbasis.
The theorem shifts the index to k+2 to remove the undefined printed k=1. -/
def exampleVector (k : ℕ) : Hilbert (ℕ × ℕ) :=
  (Real.sqrt (1 - exampleDelta k) : ℂ) • lp.single 2 (0, 0) 1 +
    (Real.sqrt (exampleDelta k / (k : ℝ)) : ℂ) •
      ∑ j ∈ Finset.range k, lp.single 2 (j + 1, j + 1) 1

/-- PDF pp.6--8: printed H^{tensor n}; changed to the additive n-copy Hamiltonian.
The energy n*M and the product Gibbs state used by the proof require the sum
of the single-copy Hamiltonians, not a product of their eigenvalues. -/
def copyLevelEnergy (h : HamiltonianData) (n : ℕ)
    (p : (Fin n → ℕ) × (Fin n → ℕ)) : ℝ :=
  ∑ t : Fin n, levelEnergy h (p.1 t, p.2 t)

/-- PDF pp.6--8: additive copy spectrum adapted to the frozen Hamiltonian;
its lower bound is n times the original finite ground energy. -/
def copySpectralHamiltonian (h : HamiltonianData) (n : ℕ) :
    QAlgorithms.Papers.Independent.Frontier18.P01.Hamiltonian
      ((Fin n → ℕ) × (Fin n → ℕ)) where
  energy := copyLevelEnergy h n
  lower := (n : ℝ) * levelEnergy h (0, 0)
  bounded_below := by
    intro p
    calc
      (n : ℝ) * levelEnergy h (0, 0) =
          ∑ _t : Fin n, levelEnergy h (0, 0) := by simp
      _ ≤ copyLevelEnergy h n p := by
        apply Finset.sum_le_sum
        intro t _ht
        exact add_le_add (h.orderedA (Nat.zero_le (p.1 t)))
          (h.orderedB (Nat.zero_le (p.2 t)))

/-- PDF pp.6--8: use frozen meanEnergy for the additive copy Hamiltonian.
The argument is a normalized state; divergent expectations remain infinity. -/
def copyMeanEnergy (h : HamiltonianData) (n : ℕ)
    (rho : State ((Fin n → ℕ) × (Fin n → ℕ))) : EReal :=
  (copySpectralHamiltonian h n).meanEnergy rho

/-- PDF p.6, Lemma 5: finite operator rank, without restriction to energy coordinates.
This is a finite sum of rank-one operators on the full one-system Hilbert space. -/
def FiniteRank {I : Type} (X : Matrix I I ℂ) : Prop :=
  ∃ (r : ℕ) (u v : Fin r → Hilbert I),
    ∀ i j, X i j = ∑ t : Fin r, u t i * star (v t j)

/-- PDF pp.6,10,12: printed finite-dimensional subspace of S(H); changed to
finite LOCAL support, equivalently finite Schmidt rank. The finite-dimensional
systems in the preamble and Lemma 5 applied to the A marginal pin this reading.
Global rank one would make the condition automatic; no energy-basis cutoff is used. -/
def FiniteSchmidtRank {I J : Type} (rho : PureState (I × J)) : Prop :=
  ∃ (u : Hilbert (I × J)), ‖u‖ = 1 ∧ rho.val.coefficients = rankOne u ∧
    ∃ (r : ℕ) (a : Fin r → Hilbert I) (b : Fin r → Hilbert J),
      ∀ i j, u (i, j) = ∑ t : Fin r, a t i * b t j

/-- PDF pp.8--9, (31)--(32): frozen countable trace-norm pure-state roof,
converted from nats to bits. Frozen Information100.P08.formation uses finite
ensembles on finite-dimensional spaces and cannot represent this domain.
No energy constraint on components or optimal decomposition is assumed. -/
def countableFormationBits {I J : Type} (X : Matrix (I × J) (I × J) ℂ) : ℝ≥0∞ :=
  QAlgorithms.Papers.Independent.Next46.P42.countableEof X /
    ENNReal.ofReal (Real.log 2)

/-- PDF p.11: both expressly allowed comparison sets. false selects the closed
convex hull D of products; true selects the trace-norm closure P of PPT states. -/
def ComparisonState {I J : Type} (ppt : Bool) (rho : State (I × J)) : Prop :=
  if ppt then rho.coefficients ∈ traceClosure
    {X : Matrix (I × J) (I × J) ℂ | IsDensity X ∧ IsDensity (partialTransposeFirst X)}
  else IsSeparable rho.coefficients

/-- PDF p.11, (45): infimum over ALL comparison states, without an energy bound.
The generalized relative entropy has the usual value on normalized states;
converting nats to bits preserves infinity and support failure. -/
def comparisonRelativeEntropyBits {I J : Type} (ppt : Bool)
    (X : Matrix (I × J) (I × J) ℂ) : ℝ≥0∞ :=
  ⨅ rho : {rho : State (I × J) // ComparisonState ppt rho},
    generalizedRelativeEntropy X rho.val.coefficients / ENNReal.ofReal (Real.log 2)

/-! Sanity checks pin signs, the inclusive diagonal-vector tail, and regrouping.
Tensor powers, partial transpose, entropy and countable decompositions are imported
from the pinned library rather than redeclared. -/

example : exampleDelta 2 = 1 := by
  simp [exampleDelta, (Real.log_pos (by norm_num : (1 : ℝ) < 2)).ne']

example : exampleVector 2 (1, 1) = (Real.sqrt (1 / 2) : ℂ) := by
  have htail :
      (∑ j ∈ Finset.range 2, lp.single 2 (j + 1, j + 1) (1 : ℂ) :
        Hilbert (ℕ × ℕ)) (1, 1) = 1 := by
    simp only [Finset.sum_range_succ, Finset.sum_range_zero, zero_add]
    change ((Pi.single (1, 1) (1 : ℂ) : (ℕ × ℕ) → ℂ) (1, 1) +
      (Pi.single (2, 2) (1 : ℂ) : (ℕ × ℕ) → ℂ) (1, 1)) = 1
    simp
  change (Real.sqrt (1 - exampleDelta 2) : ℂ) *
      (lp.single 2 (0, 0) (1 : ℂ) : Hilbert (ℕ × ℕ)) (1, 1) +
    (Real.sqrt (exampleDelta 2 / (2 : ℝ)) : ℂ) *
      (∑ j ∈ Finset.range 2, lp.single 2 (j + 1, j + 1) (1 : ℂ) :
        Hilbert (ℕ × ℕ)) (1, 1) = (Real.sqrt (1 / 2) : ℂ)
  rw [htail]
  simp [exampleDelta, lp.single_apply,
    (Real.log_pos (by norm_num : (1 : ℝ) < 2)).ne']

example (h : HamiltonianData) : levelEnergy h (0, 0) = h.energyA 0 + h.energyB 0 := rfl

example (h : HamiltonianData) :
    (spectralHamiltonian h).lower = levelEnergy h (0, 0) := rfl

example (h : HamiltonianData) (n : ℕ) :
    (copySpectralHamiltonian h n).lower = (n : ℝ) * levelEnergy h (0, 0) := rfl

example (h : HamiltonianData) (n : ℕ)
    (rho : State ((Fin n → ℕ) × (Fin n → ℕ))) :
    copyMeanEnergy h n rho = (copySpectralHamiltonian h n).meanEnergy rho := rfl

example (h : HamiltonianData) (p : (Fin 0 → ℕ) × (Fin 0 → ℕ)) :
    copyLevelEnergy h 0 p = 0 := by simp [copyLevelEnergy]

example (h : HamiltonianData) (p : (Fin 1 → ℕ) × (Fin 1 → ℕ)) :
    copyLevelEnergy h 1 p = levelEnergy h (p.1 0, p.2 0) := by
  simp [copyLevelEnergy]

example {I : Type} (X : Matrix I I ℂ) (p q : Fin 1 → I) :
    tensorPower 1 X p q = X (p 0) (q 0) := by simp [tensorPower]

example {I J : Type} (X : Matrix (I × J) (I × J) ℂ) :
    partialTransposeFirst (partialTransposeFirst X) = X := rfl

example {I J : Type} (X : Matrix (I × J) (I × J) ℂ) (n : ℕ)
    (p q : (Fin n → I) × (Fin n → J)) :
    bipartitePower X n p q = tensorPower n X
      (fun t => (p.1 t, p.2 t)) (fun t => (q.1 t, q.2 t)) := rfl

end QAlgorithms.Papers.Independent.Gap20.P05
Source
On the quantification of entanglement in infinite-dimensional quantum systems, arXiv:quant-ph/0112064v3, https://arxiv.org/abs/quant-ph/0112064v3
Read-back

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

QAlgorithms.Papers.Independent.Gap20.P05.ComparisonState

For arbitrary types I,JI,JI,J, a Boolean parameter ppt\mathrm{ppt}ppt, and a state ρ\rhoρ on I×JI\times JI×J, this defines a predicate by two cases. Here a state has a complex coefficient matrix admitting a countable expansion Xij=∑rur(i)vr(j)‾X_{ij}=\sum_r u_r(i)\overline{v_r(j)}Xij​=∑r​ur​(i)vr​(j)​, with square-summable vectors and ∑r∥ur∥∥vr∥<∞\sum_r\|u_r\|\|v_r\|<\infty∑r​∥ur​∥∥vr​∥<∞; every finite quadratic form ∑i,j∈szi‾Xijzj\sum_{i,j\in s}\overline{z_i}X_{ij}z_j∑i,j∈s​zi​​Xij​zj​ is real and nonnegative; and the real diagonal is summable with sum 111. Define τ(Z)\tau(Z)τ(Z) as the infimum of [∑r∥ur∥∥vr∥]+\left[\sum_r\|u_r\|\|v_r\|\right]_+[∑r​∥ur​∥∥vr​∥]+​ over such expansions of ZZZ, taking +∞+\infty+∞ when none exist. Membership of ZZZ in the trace closure of a set SSS means that for every real ε>0\varepsilon>0ε>0, some Y∈SY\in SY∈S satisfies τ(Z−Y)<ε\tau(Z-Y)<\varepsilonτ(Z−Y)<ε. If ppt\mathrm{ppt}ppt is true, the predicate says that ρ\rhoρ's coefficient matrix belongs to the trace closure of the matrices YYY for which both YYY and its first-factor partial transpose are density kernels, where

(YTI)(i,a),(j,b)=Y(j,a),(i,b).(Y^{T_I})_{(i,a),(j,b)}=Y_{(j,a),(i,b)}.(YTI​)(i,a),(j,b)​=Y(j,a),(i,b)​.

If ppt\mathrm{ppt}ppt is false, the predicate says that ρ\rhoρ's coefficient matrix belongs to the trace closure of the real convex hull of all matrices

(α⊗β)(i,a),(j,b)=αijβab,(\alpha\otimes\beta)_{(i,a),(j,b)}=\alpha_{ij}\beta_{ab},(α⊗β)(i,a),(j,b)​=αij​βab​,

with α,β\alpha,\betaα,β density kernels on I,JI,JI,J, respectively. There are no countability or nonemptiness assumptions on I,JI,JI,J; if either is empty, no state ρ\rhoρ satisfying the required normalization exists.

QAlgorithms.Papers.Independent.Gap20.P05.FiniteRank

For any type III and any complex matrix XXX indexed by III, this property means that there exist a natural number rrr and two families ut,vt∈ℓ2(I;C)u_t,v_t\in\ell^2(I;\mathbb C)ut​,vt​∈ℓ2(I;C), indexed by 0≤t<r0\le t<r0≤t<r, such that

Xi,j=∑t=0r−1ut(i)vt(j)‾(i,j∈I).X_{i,j}=\sum_{t=0}^{r-1}u_t(i)\overline{v_t(j)} \qquad(i,j\in I).Xi,j​=t=0∑r−1​ut​(i)vt​(j)​(i,j∈I).

No positivity, normalization, countability of III, or minimality of rrr is required. The value r=0r=0r=0 is allowed and gives the zero matrix.

QAlgorithms.Papers.Independent.Gap20.P05.FiniteSchmidtRank

For arbitrary types I,JI,JI,J, let ρ\rhoρ be a pure state on I×JI\times JI×J: its coefficient matrix admits a countable expansion ρp,q=∑ℓxℓ(p)yℓ(q)‾\rho_{p,q}=\sum_\ell x_\ell(p)\overline{y_\ell(q)}ρp,q​=∑ℓ​xℓ​(p)yℓ​(q)​ with square-summable vectors and ∑ℓ∥xℓ∥∥yℓ∥<∞\sum_\ell\|x_\ell\|\|y_\ell\|<\infty∑ℓ​∥xℓ​∥∥yℓ​∥<∞, its finite quadratic forms are real and nonnegative, its real diagonal is summable with sum 111, and it equals w(p)w(q)‾w(p)\overline{w(q)}w(p)w(q)​ for some unit vector w∈ℓ2(I×J;C)w\in\ell^2(I\times J;\mathbb C)w∈ℓ2(I×J;C). The defined property says that there exist a unit vector u∈ℓ2(I×J;C)u\in\ell^2(I\times J;\mathbb C)u∈ℓ2(I×J;C), a natural number rrr, and families at∈ℓ2(I;C)a_t\in\ell^2(I;\mathbb C)at​∈ℓ2(I;C), bt∈ℓ2(J;C)b_t\in\ell^2(J;\mathbb C)bt​∈ℓ2(J;C) for 0≤t<r0\le t<r0≤t<r, such that

ρp,q=u(p)u(q)‾andu(i,j)=∑t=0r−1at(i)bt(j)(p,q∈I×J, i∈I, j∈J).\rho_{p,q}=u(p)\overline{u(q)} \quad\text{and}\quad u(i,j)=\sum_{t=0}^{r-1}a_t(i)b_t(j) \qquad(p,q\in I\times J,\ i\in I,\ j\in J).ρp,q​=u(p)u(q)​andu(i,j)=t=0∑r−1​at​(i)bt​(j)(p,q∈I×J, i∈I, j∈J).

The factors are not required to be normalized or orthogonal, and rrr is not required to be minimal. Although r=0r=0r=0 is quantified over, it cannot satisfy the unit-norm requirement, since its sum would give u=0u=0u=0.

QAlgorithms.Papers.Independent.Gap20.P05.HamiltonianData

A Hamiltonian datum consists of two sequences EA,EB:N→RE_A,E_B:\mathbb N\to\mathbb REA​,EB​:N→R, proofs that both are nondecreasing—that is, EA(i)≤EA(j)E_A(i)\le E_A(j)EA​(i)≤EA​(j) and EB(i)≤EB(j)E_B(i)\le E_B(j)EB​(i)≤EB​(j) whenever i≤ji\le ji≤j—and the requirement that, for every real β>0\beta>0β>0, the family

(e−β(EA(i)+EB(j)))(i,j)∈N2\left(e^{-\beta(E_A(i)+E_B(j))}\right)_{(i,j)\in\mathbb N^2}(e−β(EA​(i)+EB​(j)))(i,j)∈N2​

is summable. The sequences include their values at 000; neither sequence is required to have nonnegative values.

QAlgorithms.Papers.Independent.Gap20.P05.comparisonRelativeEntropyBits

For arbitrary types I,JI,JI,J, a Boolean ppt\mathrm{ppt}ppt, and any complex matrix XXX on L=I×JL=I\times JL=I×J, this defines

inf⁡ρ∈CpptD(X,ρ)log⁡2in [0,∞].\inf_{\rho\in\mathcal C_{\mathrm{ppt}}}\frac{D(X,\rho)}{\log2} \quad\text{in }[0,\infty].ρ∈Cppt​inf​log2D(X,ρ)​in [0,∞].

A density kernel is a matrix admitting a countable expansion Aij=∑rur(i)vr(j)‾A_{ij}=\sum_r u_r(i)\overline{v_r(j)}Aij​=∑r​ur​(i)vr​(j)​, with ur,vr∈ℓ2u_r,v_r\in\ell^2ur​,vr​∈ℓ2 and ∑r∥ur∥∥vr∥<∞\sum_r\|u_r\|\|v_r\|<\infty∑r​∥ur​∥∥vr​∥<∞, having real nonnegative quadratic forms on every finite set and a summable real diagonal of sum 111. Set τ(Z)\tau(Z)τ(Z) equal to the infimum of the expansion costs [∑r∥ur∥∥vr∥]+\left[\sum_r\|u_r\|\|v_r\|\right]_+[∑r​∥ur​∥∥vr​∥]+​, or +∞+\infty+∞ if no expansion exists; trace closure means approximation to arbitrarily small positive error in τ\tauτ. When ppt\mathrm{ppt}ppt is true, Cppt\mathcal C_{\mathrm{ppt}}Cppt​ consists of density kernels in the trace closure of matrices YYY such that both YYY and YTIY^{T_I}YTI​ are density kernels, with (YTI)(i,a),(j,b)=Y(j,a),(i,b)(Y^{T_I})_{(i,a),(j,b)}=Y_{(j,a),(i,b)}(YTI​)(i,a),(j,b)​=Y(j,a),(i,b)​. When it is false, Cppt\mathcal C_{\mathrm{ppt}}Cppt​ consists of density kernels in the trace closure of the real convex hull of product density kernels (α⊗β)(i,a),(j,b)=αijβab(\alpha\otimes\beta)_{(i,a),(j,b)}=\alpha_{ij}\beta_{ab}(α⊗β)(i,a),(j,b)​=αij​βab​. The quantity DDD is explicitly

D(A,B)=sup⁡s⊆L finited(As,Bs),d(P,Q)={[Re⁡tr⁡ ⁣(f(P)−Plog⁡(Q)+Q−P)]+,ker⁡Q⊆ker⁡P,+∞,otherwise,D(A,B)=\sup_{s\subseteq L\text{ finite}}d(A_s,B_s),\qquad d(P,Q)= \begin{cases} \left[\operatorname{Re}\operatorname{tr}\!\left(f(P)-P\log(Q)+Q-P\right)\right]_+, &\ker Q\subseteq\ker P,\\ +\infty,&\text{otherwise}, \end{cases}D(A,B)=s⊆L finitesup​d(As​,Bs​),d(P,Q)={[Retr(f(P)−Plog(Q)+Q−P)]+​,+∞,​kerQ⊆kerP,otherwise,​

where f(x)=xlog⁡xf(x)=x\log xf(x)=xlogx, the matrix functions use continuous functional calculus, and [t]+=max⁡(t,0)[t]_+=\max(t,0)[t]+​=max(t,0) in [0,∞][0,\infty][0,∞]. The finite set sss may be empty. No density or trace-class assumption is imposed on XXX; an empty comparison class gives infimum +∞+\infty+∞, including when either label type is empty.

QAlgorithms.Papers.Independent.Gap20.P05.copyLevelEnergy

For a Hamiltonian datum hhh, consisting of nondecreasing real sequences EA,EBE_A,E_BEA​,EB​ with summable family e−β(EA(i)+EB(j))e^{-\beta(E_A(i)+E_B(j))}e−β(EA​(i)+EB​(j)) for every real β>0\beta>0β>0, every natural number nnn, and every pair of strings p=(a,b)p=(a,b)p=(a,b) with a,b:{0,…,n−1}→Na,b:\{0,\ldots,n-1\}\to\mathbb Na,b:{0,…,n−1}→N, this defines

Eh(n)(a,b)=∑t=0n−1(EA(at)+EB(bt)).E_h^{(n)}(a,b)=\sum_{t=0}^{n-1}\bigl(E_A(a_t)+E_B(b_t)\bigr).Eh(n)​(a,b)=t=0∑n−1​(EA​(at​)+EB​(bt​)).

The case n=0n=0n=0 is included: both strings are empty and the energy is 000.

QAlgorithms.Papers.Independent.Gap20.P05.copyMeanEnergy

For a Hamiltonian datum hhh, consisting of nondecreasing real sequences EA,EBE_A,E_BEA​,EB​ with summable family e−β(EA(i)+EB(j))e^{-\beta(E_A(i)+E_B(j))}e−β(EA​(i)+EB​(j)) for every β>0\beta>0β>0, a natural number nnn, and a state ρ\rhoρ indexed by pairs p=(a,b)p=(a,b)p=(a,b) of length-nnn natural-number strings, this defines the extended real number

Ln+∑p[(∑t=0n−1(EA(at)+EB(bt))−Ln)Re⁡ρp,p]+,Ln=n(EA(0)+EB(0)).L_n+\sum_p \left[ \left(\sum_{t=0}^{n-1}(E_A(a_t)+E_B(b_t))-L_n\right) \operatorname{Re}\rho_{p,p} \right]_+, \qquad L_n=n(E_A(0)+E_B(0)).Ln​+p∑​[(t=0∑n−1​(EA​(at​)+EB​(bt​))−Ln​)Reρp,p​]+​,Ln​=n(EA​(0)+EB​(0)).

Here [x]+=max⁡(x,0)[x]_+=\max(x,0)[x]+​=max(x,0), and the sum is taken in [0,∞][0,\infty][0,∞] before being embedded into the extended reals. A state means that ρp,q=∑ℓ≥0uℓ(p)vℓ(q)‾\rho_{p,q}=\sum_{\ell\ge0}u_\ell(p)\overline{v_\ell(q)}ρp,q​=∑ℓ≥0​uℓ​(p)vℓ​(q)​ for square-summable vectors with ∑ℓ∥uℓ∥∥vℓ∥<∞\sum_\ell\|u_\ell\|\|v_\ell\|<\infty∑ℓ​∥uℓ​∥∥vℓ​∥<∞, every finite quadratic form of ρ\rhoρ is real and nonnegative, and its real diagonal is summable with sum 111. Infinite mean energy is allowed; when n=0n=0n=0, the defined mean energy is 000.

QAlgorithms.Papers.Independent.Gap20.P05.copySpectralHamiltonian

For a Hamiltonian datum hhh, consisting of nondecreasing real sequences EA,EBE_A,E_BEA​,EB​ whose family e−β(EA(i)+EB(j))e^{-\beta(E_A(i)+E_B(j))}e−β(EA​(i)+EB​(j)) is summable for every real β>0\beta>0β>0, and every natural number nnn, this constructs a Hamiltonian on pairs of length-nnn natural-number strings. Its energy and specified lower bound are

Eh(n)(a,b)=∑t=0n−1(EA(at)+EB(bt)),Ln=n(EA(0)+EB(0)),E_h^{(n)}(a,b)=\sum_{t=0}^{n-1}\bigl(E_A(a_t)+E_B(b_t)\bigr), \qquad L_n=n\bigl(E_A(0)+E_B(0)\bigr),Eh(n)​(a,b)=t=0∑n−1​(EA​(at​)+EB​(bt​)),Ln​=n(EA​(0)+EB​(0)),

and the construction supplies a proof that Ln≤Eh(n)(a,b)L_n\le E_h^{(n)}(a,b)Ln​≤Eh(n)​(a,b) for every such pair. A Hamiltonian here consists of these two functions or values and the lower-bound proof. When n=0n=0n=0, the label set has one element, and both its energy and the lower bound are 000.

QAlgorithms.Papers.Independent.Gap20.P05.countableFormationBits

For arbitrary types I,JI,JI,J and any complex matrix XXX indexed by I×JI\times JI×J, this defines an extended nonnegative number as follows. Write [t]+=ofReal⁡(t)=max⁡(t,0)[t]_+=\operatorname{ofReal}(t)=\max(t,0)[t]+​=ofReal(t)=max(t,0), regarded as an element of [0,∞][0,\infty][0,∞], and, for any matrix AAA, define

Snat(A)=sup⁡s finite[Re⁡tr⁡(As)log⁡ ⁣(Re⁡tr⁡(As))−Re⁡tr⁡ ⁣(Aslog⁡(As))]+,S_{\mathrm{nat}}(A)=\sup_{s\text{ finite}} \left[\operatorname{Re}\operatorname{tr}(A_s)\log\!\bigl(\operatorname{Re}\operatorname{tr}(A_s)\bigr) -\operatorname{Re}\operatorname{tr}\!\bigl(A_s\log(A_s)\bigr)\right]_+,Snat​(A)=s finitesup​[Retr(As​)log(Retr(As​))−Retr(As​log(As​))]+​,

where AsA_sAs​ is the principal compression to sss and log⁡(As)\log(A_s)log(As​) is defined by continuous functional calculus using the real natural logarithm. A density kernel on a label type LLL is a matrix admitting an expansion Aij=∑r≥0ur(i)vr(j)‾A_{ij}=\sum_{r\ge0}u_r(i)\overline{v_r(j)}Aij​=∑r≥0​ur​(i)vr​(j)​, with ur,vr∈ℓ2(L;C)u_r,v_r\in\ell^2(L;\mathbb C)ur​,vr​∈ℓ2(L;C) and ∑r∥ur∥∥vr∥<∞\sum_r\|u_r\|\|v_r\|<\infty∑r​∥ur​∥∥vr​∥<∞, whose quadratic forms on every finite set are real and nonnegative, and whose real diagonal is summable with sum 111. A pure state is such a density kernel of the form uiuj‾u_i\overline{u_j}ui​uj​​ for a unit vector uuu. Let τ(Z)\tau(Z)τ(Z) be the infimum, over all expansions of the indicated kind for ZZZ, of [∑r∥ur∥∥vr∥]+\left[\sum_r\|u_r\|\|v_r\|\right]_+[∑r​∥ur​∥∥vr​∥]+​, with infimum +∞+\infty+∞ if there is no expansion. The defined quantity is

1log⁡2inf⁡pr≥0, ∑rpr=1σr pure states on I×Jτ(X−∑r<Nprσr)→0∑r≥0pr Snat ⁣((∑a∈J′(σr)(i,a),(j,a))i,j∈I).\frac1{\log2}\inf_{\substack{p_r\ge0,\ \sum_rp_r=1\\ \sigma_r\ \text{pure states on }I\times J\\ \tau(X-\sum_{r<N}p_r\sigma_r)\to0}} \sum_{r\ge0}p_r\,S_{\mathrm{nat}}\!\left(\left(\sum_{a\in J}'(\sigma_r)_{(i,a),(j,a)}\right)_{i,j\in I}\right).log21​pr​≥0, ∑r​pr​=1σr​ pure states on I×Jτ(X−∑r<N​pr​σr​)→0​inf​r≥0∑​pr​Snat​​(a∈J∑′​(σr​)(i,a),(j,a)​)i,j∈I​​.

The weights are required to be summable as real numbers, every σr\sigma_rσr​, including those with zero weight, must be a pure state, and the convergence is as N→∞N\to\inftyN→∞. No positivity, normalization, or trace-class hypothesis is imposed on XXX; an empty collection of admissible decompositions gives value +∞+\infty+∞.

QAlgorithms.Papers.Independent.Gap20.P05.energyBound

For a Hamiltonian datum hhh, consisting of nondecreasing real sequences EA,EBE_A,E_BEA​,EB​ whose family e−β(EA(i)+EB(j))e^{-\beta(E_A(i)+E_B(j))}e−β(EA​(i)+EB​(j)) is summable for every β>0\beta>0β>0, and any real MMM, this is the set of states ρ\rhoρ on N2\mathbb N^2N2 satisfying

L+(∑p=(i,j)∈N2[(EA(i)+EB(j)−L)Re⁡ρp,p]+)<M,L=EA(0)+EB(0),L+\left(\sum_{p=(i,j)\in\mathbb N^2} \bigl[(E_A(i)+E_B(j)-L)\operatorname{Re}\rho_{p,p}\bigr]_+\right)<M, \qquad L=E_A(0)+E_B(0),L+​p=(i,j)∈N2∑​[(EA​(i)+EB​(j)−L)Reρp,p​]+​​<M,L=EA​(0)+EB​(0),

where [x]+=max⁡(x,0)[x]_+=\max(x,0)[x]+​=max(x,0), the sum is taken in [0,∞][0,\infty][0,∞], and the comparison is in the extended real numbers. A state here is a complex matrix admitting an expansion ρp,q=∑ℓ≥0uℓ(p)vℓ(q)‾\rho_{p,q}=\sum_{\ell\ge0}u_\ell(p)\overline{v_\ell(q)}ρp,q​=∑ℓ≥0​uℓ​(p)vℓ​(q)​ with uℓ,vℓ∈ℓ2(N2;C)u_\ell,v_\ell\in\ell^2(\mathbb N^2;\mathbb C)uℓ​,vℓ​∈ℓ2(N2;C) and ∑ℓ∥uℓ∥∥vℓ∥<∞\sum_\ell\|u_\ell\|\|v_\ell\|<\infty∑ℓ​∥uℓ​∥∥vℓ​∥<∞, whose finite quadratic forms are real and nonnegative, and whose real diagonal entries are summable with sum 111. The energy inequality is strict, so states with energy exactly MMM, or infinite energy, are excluded; the set is empty when M≤LM\le LM≤L.

QAlgorithms.Papers.Independent.Gap20.P05.exampleDelta

For every natural number kkk, including 000 and 111, this defines the real number

δk=log⁡2log⁡k.\delta_k=\frac{\log 2}{\log k}.δk​=logklog2​.

The logarithm is the total real logarithm and division is total, so log⁡0=0\log 0=0log0=0 and division by 000 gives 000; consequently δ0=δ1=0\delta_0=\delta_1=0δ0​=δ1​=0.

QAlgorithms.Papers.Independent.Gap20.P05.exampleVector

For every natural number kkk, this defines a vector in ℓ2(N2;C)\ell^2(\mathbb N^2;\mathbb C)ℓ2(N2;C) by

vk=1−δk e(0,0)+δkk∑j=0k−1e(j+1,j+1),δk=log⁡2log⁡k,v_k= \sqrt{1-\delta_k}\,e_{(0,0)} +\sqrt{\frac{\delta_k}{k}}\sum_{j=0}^{k-1}e_{(j+1,j+1)}, \qquad \delta_k=\frac{\log 2}{\log k},vk​=1−δk​​e(0,0)​+kδk​​​j=0∑k−1​e(j+1,j+1)​,δk​=logklog2​,

where e(a,b)e_{(a,b)}e(a,b)​ has coordinate 111 at (a,b)(a,b)(a,b) and 000 elsewhere, and the real coefficients are regarded as complex numbers. Thus the diagonal tail runs from (1,1)(1,1)(1,1) through (k,k)(k,k)(k,k), inclusive. All operations are total: division by zero gives 000, the real square root of a negative number gives 000, and an empty sum is 000; in particular v0=v1=e(0,0)v_0=v_1=e_{(0,0)}v0​=v1​=e(0,0)​. The definition itself imposes no unit-norm condition.

QAlgorithms.Papers.Independent.Gap20.P05.levelEnergy

For a Hamiltonian datum hhh, consisting of nondecreasing real sequences EA,EBE_A,E_BEA​,EB​ such that ∑i,je−β(EA(i)+EB(j))\sum_{i,j}e^{-\beta(E_A(i)+E_B(j))}∑i,j​e−β(EA​(i)+EB​(j)) is summable for every β>0\beta>0β>0, and every pair p=(i,j)∈N2p=(i,j)\in\mathbb N^2p=(i,j)∈N2, its level energy is

Eh(i,j)=EA(i)+EB(j).E_h(i,j)=E_A(i)+E_B(j).Eh​(i,j)=EA​(i)+EB​(j).

This includes the level (0,0)(0,0)(0,0), and its energy need not be nonnegative.

QAlgorithms.Papers.Independent.Gap20.P05.marginalEntropy

For arbitrary types I,JI,JI,J and any complex matrix XXX indexed by I×JI\times JI×J, first form the matrix YYY indexed by III with entries Yi,j=∑a∈JX(i,a),(j,a)Y_{i,j}=\sum_{a\in J}X_{(i,a),(j,a)}Yi,j​=∑a∈J​X(i,a),(j,a)​. The marginal entropy is the following element of [0,∞][0,\infty][0,∞]:

1log⁡2sup⁡s⊆Is finite[Re⁡tr⁡(Ys) log⁡ ⁣(Re⁡tr⁡(Ys))−Re⁡tr⁡ ⁣(Ys cfc⁡(log⁡,Ys))]+,\frac{1}{\log 2}\sup_{\substack{s\subseteq I\\s\text{ finite}}} \left[ \operatorname{Re}\operatorname{tr}(Y_s)\, \log\!\bigl(\operatorname{Re}\operatorname{tr}(Y_s)\bigr) -\operatorname{Re}\operatorname{tr}\!\left(Y_s\,\operatorname{cfc}(\log,Y_s)\right) \right]_+,log21​s⊆Is finite​sup​[Retr(Ys​)log(Retr(Ys​))−Retr(Ys​cfc(log,Ys​))]+​,

where YsY_sYs​ is the restriction to rows and columns in sss, [x]+=max⁡(x,0)[x]_+=\max(x,0)[x]+​=max(x,0), and cfc⁡(log⁡,Ys)\operatorname{cfc}(\log,Y_s)cfc(log,Ys​) denotes the continuous functional calculus for the real logarithm. No countability, positivity, normalization, or summability hypothesis is imposed on XXX; the entrywise infinite sums use the total infinite-sum convention, giving 000 for a nonsummable complex family, and the supremum includes the empty restriction.

QAlgorithms.Papers.Independent.Gap20.P05.spectralHamiltonian

For a Hamiltonian datum hhh, consisting of nondecreasing real sequences EA,EBE_A,E_BEA​,EB​ with summable family e−β(EA(i)+EB(j))e^{-\beta(E_A(i)+E_B(j))}e−β(EA​(i)+EB​(j)) for every real β>0\beta>0β>0, this definition constructs a Hamiltonian on the label set N2\mathbb N^2N2: its energy at (i,j)(i,j)(i,j) is EA(i)+EB(j)E_A(i)+E_B(j)EA​(i)+EB​(j), its specified real lower bound is L=EA(0)+EB(0)L=E_A(0)+E_B(0)L=EA​(0)+EB​(0), and its lower-bound proof establishes

L≤EA(i)+EB(j)(i,j∈N).L\le E_A(i)+E_B(j)\qquad(i,j\in\mathbb N).L≤EA​(i)+EB​(j)(i,j∈N).

Here a Hamiltonian consists precisely of an energy function, a real lower bound, and a proof of that inequality; LLL may be negative.

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