Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Definitions for Second-order asymptotics for quantum hypothesis testing in settings beyond i.i.d. - quantum lattice systems and more

Definition
QAlgorithms_Papers_Independent_Bridge50_P02

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

prove2quantum

The objects the formalized statements of Second-order asymptotics for quantum hypothesis testing in settings beyond i.i.d. - quantum lattice systems and more (arXiv:1510.04682) are stated in. Each was checked against the paper by a blind read-back and a moderator.

  • finitePairRelativeEntropyNats: PDF p.6, (2.4): positive Umegaki entropy in nats, converting the accepted nonpositive relative-entropy convention. Used only with support inclusion.
  • pairInformationVarianceNats: PDF p.6, (2.5): PAIR information variance, in nats squared. Distinct from the accepted single-density spectral informationVariance in bits squared.
  • realPetzLogOverlap: PDF pp.6,9: real analytic representative of the Petz logarithm. Kernel powers vanish; all uses have common support or support inclusion near s=1.
  • optimalTestingExponentNats: PDF pp.8--10: testing exponent in natural logarithms, on the stated valid inputs.
  • symmetricError: PDF p.12, (3.9): infimum of the SUM of the errors, with no prior factor 1/2.
  • spectralIntegral: PDF p.7, (2.11): integration against the FINITE spectral measure of -log Delta in Omega_B. Its mass is Tr B, with no implicit normalization.
  • spectralTail: PDF p.13, (3.13): finite spectral mass of (-infinity,nu].
  • modularLowProjector: PDF p.14: spectral projector of Delta_(rho|sigma) on the STRICT interval [0,L).
  • eigenvalueSet: PDF p.13: distinct eigenvalues, for the explicit spectral-sum identity.
  • eigenprojector: PDF p.5: spectral projection of a Hermitian matrix at lambda.
  • TestingSequence: PDF pp.8--9: a pair of finite spaces at each positive sequence index. No density, support, or analytic conclusions are built into this data structure.
  • StatePairs: PDF pp.5--9: nonzero spaces, trace-one PSD pairs, and finite relative entropy domain.
  • FaithfulPairs: PDF pp.6--9: the standing faithful-state restriction.
  • AnalyticCumulants: PDF pp.9,11: analytic extensions of real log-Laplace germs, a common disc, finite pointwise real limits, and one bound uniform in the index and the whole disc. No variance limit or central limit theorem is assumed here.
  • ConditionOne: PDF pp.8--9, Condition 1, with nondecreasing positive divergent weights. Repeated weights are permitted. The support-inclusion version is used in Remark 1.
  • relativeEntropyRate: PDF p.9, (3.1): constructed limit, rather than a free entropy-rate parameter. The rates-exist theorem establishes that this topological limit exists under Condition 1.
  • varianceRate: PDF p.9, (3.2): constructed variance-rate limit; its value may be zero.
  • relativeEntropyCorrection: PDF p.10, (3.5): signed entropy correction.
  • secondOrderCoefficient: PDF p.9: second-order coefficient, including the zero-variance case.
  • SecondOrderBounds: PDF pp.9--10: both quantified clauses, with an all-index upper bound and eventual lower bound. The remainders are actual real FUNCTIONS of the weight, not free sequence errors.
  • iidSequence: PDF p.16: slot k is tensor power k+1; no source n=0 is introduced.
  • iidWeight: PDF p.16: IID weights at positive source indices.
  • RandomVariable: PDF p.11: a measurable real random variable on a probability space, varying with k.
  • logLaplace: PDF p.11: real log-Laplace transform; exponential integrability is a theorem hypothesis.
  • BrycWeakLimit: PDF p.11: weak convergence, tested against every bounded continuous real function. This also describes a Dirac Gaussian limit when the limiting variance is zero.
  • Site: PDF p.17: sites of the integer lattice.
  • manhattan: PDF p.17: Manhattan distance between sites.
  • SpinInteraction: PDF p.17: local observables on a common q-dimensional one-site space.
  • translateSupport: PDF p.17: translate a finite support.
  • translatedSite: PDF p.17: site identification under translation, with no basis change.
  • TranslationInvariant: PDF p.17: covariance of the actual local matrices under every translation.
  • FiniteRange: PDF p.18: some positive R kills all terms with Manhattan diameter at least R. For finite nonempty sets the diameter is attained; empty terms already vanish.
  • latticeIncludeLocal: PDF p.17: inclusion A -> A tensor I on Z^d, in the named site bases. The accepted Next46.P28.includeLocal is restricted to subsets of Z.
  • localHamiltonian: PDF p.18, (4.4): interaction Hamiltonian, constructed by summing all contained terms.
  • spinBox: PDF p.18: Lambda_n={-n,...,n}^d, with n=k+1.
  • spinSequence: PDF p.18, (4.5): the two actual finite-volume Gibbs matrices.
  • spinVolumeWeight: PDF p.18: lattice volume (2n+1)^d; unrelated to the accepted angular-momentum spinWeight.
  • normalizedPartition: PDF p.19, (4.8): partition function normalized by the completely mixed state.
  • clusterGerm: PDF p.19, (4.8)--(4.10): the canonical cluster-coefficient germ. Subset Mobius inversion of the finite-volume normalized partition logarithms. Complex.log is used only near zero, where every partition value is near 1. Analytic continuation to the full polydisc is a conclusion, never an assumption.
  • ClusterSmallness: PDF p.19, (4.11): nonnegative extended sum, so divergence is infinity, never zero.
  • torusMeasure: PDF p.22: normalized Lebesgue measure on the Fourier cube [0,2pi)^d.
  • torusAverage: PDF p.22: normalized integral of a real symbol on the Fourier cube.
  • symbolCompression: PDF pp.22--23: compression of the Fourier multiplier to {0,...,n-1}^d. The sign is exp(-i <j-k,x>), as in the source. Finite enumeration changes basis only.
  • fermionSequence: PDF p.23, (4.16): finite Fock densities, using the accepted exterior-power construction. The occupation basis includes the vacuum and all particle-number sectors.
  • fermionWeight: PDF p.23: volume n^d, with positive source index n=k+1.
  • symbolEntropy: PDF p.23, (4.20): relative entropy density of the commuting Fourier symbols.
  • symbolPressure: PDF p.23, (4.21): limiting real Petz log-overlap density.
Definition code
import Mathlib
import Definitions.Def_QAlgorithms_Papers_Independent_Claimed50_P15
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P63
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P58
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P71
import Definitions.Def_QAlgorithms_Papers_Independent_Next46_P23

/-! Statements from Datta--Pautrat--Rouze, arXiv:1510.04682v4.
All logarithms are natural. A sequence slot k represents the positive source index k+1.
All new definitions are confined to this paper. Compilation is pending.
Theorem 4 is recorded as accepted-library reuse; source-defective clauses are in HARD.md. -/

noncomputable section

open Filter MeasureTheory
open scoped BigOperators ENNReal Matrix ComplexConjugate ComplexOrder Matrix.Norms.L2Operator Topology

namespace QAlgorithms.Papers.Independent.Bridge50.P02

attribute [local instance] Classical.propDecidable Classical.decEq

open QAlgorithms.Papers.Independent.Claimed50.P15
  (evaluate positiveMatrixRpow modularMatrix modularQuadratic resolventOverlap petzOverlap
    finiteRelativeEntropyNats)
open QAlgorithms.Papers.Independent.Information100.P71 (supportPower SupportIncluded)
open QAlgorithms.Papers.Independent.Information100.P63 (Mat tensorPower testingBeta)
open QAlgorithms.Papers.Independent.Information100.P58 (normalQuantile)

variable {I : Type} [Fintype I] [DecidableEq I]

/-- PDF p.6, (2.4): positive Umegaki entropy in nats, converting the accepted
nonpositive relative-entropy convention. Used only with support inclusion. -/
def finitePairRelativeEntropyNats (rho sigma : Mat I) : ℝ :=
  -finiteRelativeEntropyNats rho sigma

/-- PDF p.6, (2.5): PAIR information variance, in nats squared. Distinct from the
accepted single-density spectral informationVariance in bits squared. -/
def pairInformationVarianceNats (rho sigma : Mat I) : ℝ :=
  evaluate rho ((cfc Real.log rho - cfc Real.log sigma) ^ 2) -
    finitePairRelativeEntropyNats rho sigma ^ 2

/-- PDF pp.6,9: real analytic representative of the Petz logarithm.
Kernel powers vanish; all uses have common support or support inclusion near s=1. -/
def realPetzLogOverlap (rho sigma : Mat I) (s : ℝ) : ℝ :=
  Real.log ((supportPower rho s * supportPower sigma (1-s)).trace.re)

/-- PDF pp.8--10: testing exponent in natural logarithms, on the stated valid inputs. -/
def optimalTestingExponentNats (rho sigma : Mat I) (epsilon : ℝ) : ℝ :=
  -Real.log (testingBeta epsilon rho sigma)

/-- PDF p.12, (3.9): infimum of the SUM of the errors, with no prior factor 1/2. -/
def symmetricError (A B : Mat I) : ℝ :=
  sInf {e : ℝ | ∃ T : Mat I, QAlgorithms.IsEffect T ∧
    e = evaluate A (1-T) + evaluate B T}

/-- PDF p.7, (2.11): integration against the FINITE spectral measure of -log Delta
in Omega_B. Its mass is Tr B, with no implicit normalization. -/
def spectralIntegral (A B : Mat I) (f : ℝ → ℝ) : ℝ :=
  modularQuadratic B (cfc (fun t : ℝ => f (-Real.log t)) (modularMatrix A B))

/-- PDF p.13, (3.13): finite spectral mass of (-infinity,nu]. -/
def spectralTail (A B : Mat I) (nu : ℝ) : ℝ :=
  spectralIntegral A B (fun x => if x ≤ nu then 1 else 0)

/-- PDF p.14: spectral projector of Delta_(rho|sigma) on the STRICT interval [0,L). -/
def modularLowProjector (rho sigma : Mat I) (L : ℝ) : Mat (I × I) :=
  cfc (fun t : ℝ => if 0 ≤ t ∧ t < L then 1 else 0) (modularMatrix rho sigma)

/-- PDF p.13: distinct eigenvalues, for the explicit spectral-sum identity. -/
def eigenvalueSet (A : Mat I) (hA : A.IsHermitian) : Finset ℝ :=
  Finset.univ.image hA.eigenvalues

/-- PDF p.5: spectral projection of a Hermitian matrix at lambda. -/
def eigenprojector (A : Mat I) (lambda : ℝ) : Mat I :=
  cfc (fun x : ℝ => if x = lambda then 1 else 0) A

/-- PDF pp.8--9: a pair of finite spaces at each positive sequence index.
No density, support, or analytic conclusions are built into this data structure. -/
structure TestingSequence where
  Index : ℕ → Type
  finite : ∀ k, Fintype (Index k)
  decidable : ∀ k, DecidableEq (Index k)
  rho : ∀ k, Mat (Index k)
  sigma : ∀ k, Mat (Index k)

attribute [instance] TestingSequence.finite TestingSequence.decidable

/-- PDF pp.5--9: nonzero spaces, trace-one PSD pairs, and finite relative entropy domain. -/
def StatePairs (S : TestingSequence) : Prop :=
  ∀ k, Nonempty (S.Index k) ∧ QAlgorithms.IsDensityMatrix (S.rho k) ∧
    QAlgorithms.IsDensityMatrix (S.sigma k) ∧ SupportIncluded (S.rho k) (S.sigma k)

/-- PDF pp.6--9: the standing faithful-state restriction. -/
def FaithfulPairs (S : TestingSequence) : Prop :=
  ∀ k, (S.rho k).PosDef ∧ (S.sigma k).PosDef

/-- PDF pp.9,11: analytic extensions of real log-Laplace germs, a common disc,
finite pointwise real limits, and one bound uniform in the index and the whole disc.
No variance limit or central limit theorem is assumed here. -/
def AnalyticCumulants (w : ℕ → ℝ) (h : ℕ → ℝ → ℝ) : Prop :=
  ∃ r : ℝ, 0 < r ∧ ∃ H : ℕ → ℂ → ℂ,
    (∀ k, AnalyticOnNhd ℂ (H k) (Metric.ball 0 r)) ∧
    (∀ k x, |x| < r → H k (x : ℂ) = (h k x : ℂ)) ∧
    (∀ x : ℝ, |x| < r → ∃ l : ℂ,
      Tendsto (fun k => H k (x : ℂ) / (w k : ℂ)) atTop (nhds l)) ∧
    (∃ C : ℝ, ∀ k z, ‖z‖ < r → ‖H k z‖ ≤ C * w k)

/-- PDF pp.8--9, Condition 1, with nondecreasing positive divergent weights.
Repeated weights are permitted. The support-inclusion version is used in Remark 1. -/
def ConditionOne (S : TestingSequence) (w : ℕ → ℝ) : Prop :=
  StatePairs S ∧ (∀ k, 0 < w k) ∧ Monotone w ∧ Tendsto w atTop atTop ∧
    AnalyticCumulants w (fun k x => realPetzLogOverlap (S.rho k) (S.sigma k) (1-x))

/-- PDF p.9, (3.1): constructed limit, rather than a free entropy-rate parameter.
The rates-exist theorem establishes that this topological limit exists under Condition 1. -/
def relativeEntropyRate (S : TestingSequence) (w : ℕ → ℝ) : ℝ :=
  limUnder atTop (fun k => finitePairRelativeEntropyNats (S.rho k) (S.sigma k) / w k)

/-- PDF p.9, (3.2): constructed variance-rate limit; its value may be zero. -/
def varianceRate (S : TestingSequence) (w : ℕ → ℝ) : ℝ :=
  limUnder atTop (fun k => pairInformationVarianceNats (S.rho k) (S.sigma k) / w k)

/-- PDF p.10, (3.5): signed entropy correction. -/
def relativeEntropyCorrection (S : TestingSequence) (w : ℕ → ℝ) (k : ℕ) : ℝ :=
  finitePairRelativeEntropyNats (S.rho k) (S.sigma k) - w k * relativeEntropyRate S w

/-- PDF p.9: second-order coefficient, including the zero-variance case. -/
def secondOrderCoefficient (S : TestingSequence) (w : ℕ → ℝ) (epsilon : ℝ) : ℝ :=
  Real.sqrt (varianceRate S w) * normalQuantile epsilon

/-- PDF pp.9--10: both quantified clauses, with an all-index upper bound and eventual lower
bound. The remainders are actual real FUNCTIONS of the weight, not free sequence errors. -/
def SecondOrderBounds (S : TestingSequence) (w center : ℕ → ℝ) (epsilon : ℝ) : Prop :=
  (∀ t : ℝ, secondOrderCoefficient S w epsilon < t →
    ∃ f : ℝ → ℝ, Asymptotics.IsLittleO atTop f Real.sqrt ∧
      ∀ k, optimalTestingExponentNats (S.rho k) (S.sigma k) epsilon ≤
        center k + Real.sqrt (w k) * t + f (w k)) ∧
  (∀ t : ℝ, t < secondOrderCoefficient S w epsilon →
    ∀ f : ℝ → ℝ, Asymptotics.IsLittleO atTop f Real.sqrt →
      ∀ᶠ k in atTop, center k + Real.sqrt (w k) * t + f (w k) ≤
        optimalTestingExponentNats (S.rho k) (S.sigma k) epsilon)

/-- PDF p.16: slot k is tensor power k+1; no source n=0 is introduced. -/
def iidSequence (rho sigma : Mat I) : TestingSequence where
  Index k := Fin (k+1) → I
  finite _ := inferInstance
  decidable _ := Classical.decEq _
  rho k := tensorPower (k+1) rho
  sigma k := tensorPower (k+1) sigma

/-- PDF p.16: IID weights at positive source indices. -/
def iidWeight (k : ℕ) : ℝ := (k+1 : ℕ)

/-- PDF p.11: a measurable real random variable on a probability space, varying with k. -/
structure RandomVariable where
  Space : Type
  measurableSpace : MeasurableSpace Space
  measure : @Measure Space measurableSpace
  probability : @IsProbabilityMeasure Space measurableSpace measure
  value : Space → ℝ
  measurable_value : @Measurable Space ℝ measurableSpace inferInstance value

attribute [instance] RandomVariable.measurableSpace RandomVariable.probability

/-- PDF p.11: real log-Laplace transform; exponential integrability is a theorem hypothesis. -/
def logLaplace (X : RandomVariable) (x : ℝ) : ℝ :=
  Real.log (∫ a, Real.exp (-x * X.value a) ∂X.measure)

/-- PDF p.11: weak convergence, tested against every bounded continuous real function.
This also describes a Dirac Gaussian limit when the limiting variance is zero. -/
def BrycWeakLimit (X : ℕ → RandomVariable) (w : ℕ → ℝ) (v : ℝ) : Prop :=
  ∀ f : ℝ → ℝ, Continuous f → (∃ C : ℝ, ∀ x, |f x| ≤ C) →
    Tendsto (fun k => ∫ a, f (((X k).value a + deriv (logLaplace (X k)) 0) / Real.sqrt (w k)) ∂(X k).measure) atTop
      (nhds (∫ y, f y ∂ProbabilityTheory.gaussianReal 0 (Real.toNNReal v)))

example (rho sigma : Mat I) : finitePairRelativeEntropyNats rho sigma =
    -finiteRelativeEntropyNats rho sigma := rfl

set_option maxHeartbeats 2000000 in
example (rho sigma : Mat I) : relativeEntropyCorrection (iidSequence rho sigma) iidWeight 0 =
    finitePairRelativeEntropyNats (tensorPower 1 rho) (tensorPower 1 sigma) -
      relativeEntropyRate (iidSequence rho sigma) iidWeight := by
  unfold relativeEntropyCorrection
  rw [show iidWeight 0 = (1 : ℝ) by norm_num [iidWeight], one_mul]
  rw [show (iidSequence rho sigma).decidable 0 =
    (inferInstance : DecidableEq (Fin 1 → I)) from Subsingleton.elim _ _] <;> rfl

example (rho sigma : Mat I) : tensorPower 0 rho = tensorPower 0 sigma := by
  funext a b
  simp [QAlgorithms.Papers.Independent.Information100.P63.tensorPower]

/-- PDF p.17: sites of the integer lattice. -/
abbrev Site (d : ℕ) := Fin d → ℤ

/-- PDF p.17: Manhattan distance between sites. -/
def manhattan {d : ℕ} (x y : Site d) : ℝ := ∑ j, |((x j - y j : ℤ) : ℝ)|

/-- PDF p.17: local observables on a common q-dimensional one-site space. -/
structure SpinInteraction (d q : ℕ) where
  term : ∀ X : Finset (Site d), Mat (X → Fin q)
  hermitian : ∀ X, (term X).IsHermitian
  empty_zero : term ∅ = 0

/-- PDF p.17: translate a finite support. -/
def translateSupport {d : ℕ} (X : Finset (Site d)) (t : Site d) : Finset (Site d) :=
  X.image (fun x => x+t)

/-- PDF p.17: site identification under translation, with no basis change. -/
def translatedSite {d : ℕ} (X : Finset (Site d)) (t : Site d) (x : X) :
    translateSupport X t :=
  ⟨x.val+t, Finset.mem_image.mpr ⟨x.val, x.property, rfl⟩⟩

/-- PDF p.17: covariance of the actual local matrices under every translation. -/
def TranslationInvariant {d q : ℕ} (Phi : SpinInteraction d q) : Prop :=
  ∀ (X : Finset (Site d)) (t : Site d) (a b : translateSupport X t → Fin q),
    Phi.term (translateSupport X t) a b =
      Phi.term X (fun x => a (translatedSite X t x)) (fun x => b (translatedSite X t x))

/-- PDF p.18: some positive R kills all terms with Manhattan diameter at least R.
For finite nonempty sets the diameter is attained; empty terms already vanish. -/
def FiniteRange {d q : ℕ} (Phi : SpinInteraction d q) : Prop :=
  ∃ R : ℝ, 0 < R ∧ ∀ X : Finset (Site d),
    (∃ x ∈ X, ∃ y ∈ X, R ≤ manhattan x y) → Phi.term X = 0

/-- PDF p.17: inclusion A -> A tensor I on Z^d, in the named site bases.
The accepted Next46.P28.includeLocal is restricted to subsets of Z. -/
def latticeIncludeLocal {d q : ℕ} (Y X : Finset (Site d)) (hYX : Y ⊆ X)
    (A : Mat (Y → Fin q)) : Mat (X → Fin q) :=
  fun a b => if ∀ x : X, x.val ∉ Y → a x = b x then
    A (fun y => a ⟨y.val, hYX y.property⟩) (fun y => b ⟨y.val, hYX y.property⟩)
  else 0

/-- PDF p.18, (4.4): interaction Hamiltonian, constructed by summing all contained terms. -/
def localHamiltonian {d q : ℕ} (Phi : SpinInteraction d q) (X : Finset (Site d)) :
    Mat (X → Fin q) :=
  ∑ Y ∈ X.powerset, if hYX : Y ⊆ X then latticeIncludeLocal Y X hYX (Phi.term Y) else 0

/-- PDF p.18: Lambda_n={-n,...,n}^d, with n=k+1. -/
def spinBox (d k : ℕ) : Finset (Site d) :=
  Finset.univ.image (fun a : Fin d → Fin (2*(k+1)+1) =>
    fun j => ((a j).val : ℤ) - (k+1 : ℤ))

/-- PDF p.18, (4.5): the two actual finite-volume Gibbs matrices. -/
def spinSequence {d q : ℕ} (Phi Psi : SpinInteraction d q) (beta1 beta2 : ℝ) :
    TestingSequence where
  Index k := spinBox d k → Fin q
  finite _ := inferInstance
  decidable _ := Classical.decEq _
  rho k := QAlgorithms.gibbsState ((-beta1 : ℂ) • localHamiltonian Phi (spinBox d k))
  sigma k := QAlgorithms.gibbsState ((-beta2 : ℂ) • localHamiltonian Psi (spinBox d k))

/-- PDF p.18: lattice volume (2n+1)^d; unrelated to the accepted angular-momentum spinWeight. -/
def spinVolumeWeight (d k : ℕ) : ℝ := ((2*(k+1)+1 : ℕ) : ℝ)^d

/-- PDF p.19, (4.8): partition function normalized by the completely mixed state. -/
def normalizedPartition {d q : ℕ} (Phi Psi : SpinInteraction d q)
    (beta1 beta2 : ℝ) (X : Finset (Site d)) (z : ℂ × ℂ) : ℂ :=
  ((q : ℂ)^X.card)⁻¹ *
    (NormedSpace.exp ((z.1 * (beta1 : ℂ)) • localHamiltonian Phi X) *
      NormedSpace.exp ((z.2 * (beta2 : ℂ)) • localHamiltonian Psi X)).trace

/-- PDF p.19, (4.8)--(4.10): the canonical cluster-coefficient germ.
Subset Mobius inversion of the finite-volume normalized partition logarithms.
Complex.log is used only near zero, where every partition value is near 1.
Analytic continuation to the full polydisc is a conclusion, never an assumption. -/
def clusterGerm {d q : ℕ} (Phi Psi : SpinInteraction d q) (beta1 beta2 : ℝ)
    (X : Finset (Site d)) (z : ℂ × ℂ) : ℂ :=
  ∑ Y ∈ X.powerset, (-1 : ℂ)^(X.card-Y.card) *
    Complex.log (normalizedPartition Phi Psi beta1 beta2 Y z)

/-- PDF p.19, (4.11): nonnegative extended sum, so divergence is infinity, never zero. -/
def ClusterSmallness {d q : ℕ} (Phi Psi : SpinInteraction d q)
    (beta1 beta2 a delta : ℝ) : Prop :=
  (∑' X : {X : Finset (Site d) // (0 : Site d) ∈ X},
    ENNReal.ofReal (Real.exp (2*a*(X.val.card : ℝ)) *
      (Real.exp (delta*(beta1*‖Phi.term X.val‖ + beta2*‖Psi.term X.val‖))-1))) ≤
    ENNReal.ofReal a

/-- PDF p.22: normalized Lebesgue measure on the Fourier cube [0,2pi)^d. -/
def torusMeasure (d : ℕ) : Measure (Fin d → ℝ) :=
  (ENNReal.ofReal ((2*Real.pi)^d))⁻¹ •
    volume.restrict (Set.pi Set.univ (fun _ => Set.Ico (0 : ℝ) (2*Real.pi)))

/-- PDF p.22: normalized integral of a real symbol on the Fourier cube. -/
def torusAverage {d : ℕ} (f : (Fin d → ℝ) → ℝ) : ℝ := ∫ x, f x ∂torusMeasure d

/-- PDF pp.22--23: compression of the Fourier multiplier to {0,...,n-1}^d.
The sign is exp(-i <j-k,x>), as in the source. Finite enumeration changes basis only. -/
def symbolCompression {d : ℕ} (qhat : (Fin d → ℝ) → ℝ) (n : ℕ) :
    Mat (Fin (Fintype.card (Fin d → Fin n))) :=
  let e := Fintype.equivFin (Fin d → Fin n)
  fun j k => ∫ x : Fin d → ℝ,
    Complex.exp (-Complex.I * ((∑ l,
      (((e.symm j l).val : ℝ)-((e.symm k l).val : ℝ))*x l) : ℂ)) * (qhat x : ℂ)
      ∂torusMeasure d

/-- PDF p.23, (4.16): finite Fock densities, using the accepted exterior-power construction.
The occupation basis includes the vacuum and all particle-number sectors. -/
def fermionSequence {d : ℕ} (qhat rhat : (Fin d → ℝ) → ℝ) : TestingSequence where
  Index k := Finset (Fin (Fintype.card (Fin d → Fin (k+1))))
  finite _ := inferInstance
  decidable _ := Classical.decEq _
  rho k := QAlgorithms.Papers.Independent.Next46.P23.quasiFree (symbolCompression qhat (k+1))
  sigma k := QAlgorithms.Papers.Independent.Next46.P23.quasiFree (symbolCompression rhat (k+1))

/-- PDF p.23: volume n^d, with positive source index n=k+1. -/
def fermionWeight (d k : ℕ) : ℝ := ((k+1 : ℕ) : ℝ)^d

/-- PDF p.23, (4.20): relative entropy density of the commuting Fourier symbols. -/
def symbolEntropy {d : ℕ} (qhat rhat : (Fin d → ℝ) → ℝ) : ℝ :=
  torusAverage (fun x => qhat x * Real.log (qhat x / rhat x) +
    (1-qhat x)*Real.log ((1-qhat x)/(1-rhat x)))

/-- PDF p.23, (4.21): limiting real Petz log-overlap density. -/
def symbolPressure {d : ℕ} (qhat rhat : (Fin d → ℝ) → ℝ) (s : ℝ) : ℝ :=
  torusAverage (fun x => Real.log ((qhat x)^s * (rhat x)^(1-s) +
    (1-qhat x)^s * (1-rhat x)^(1-s)))

example (k : ℕ) : spinVolumeWeight 1 k = (2*(k+1)+1 : ℕ) := by simp [spinVolumeWeight]

example (k : ℕ) : fermionWeight 1 k = (k+1 : ℕ) := by simp [fermionWeight]

example (d k : ℕ) : fermionWeight d k = ((k+1 : ℕ) : ℝ)^d := rfl

example (H : Mat I) (beta : ℝ) : QAlgorithms.gibbsState ((-beta : ℂ) • H) =
    (NormedSpace.exp ((-beta : ℂ) • H)).trace⁻¹ • NormedSpace.exp ((-beta : ℂ) • H) := rfl

example {d q : ℕ} (Phi Psi : SpinInteraction d q) (b1 b2 : ℝ) (X : Finset (Site d)) :
    clusterGerm Phi Psi b1 b2 X =
      fun z => ∑ Y ∈ X.powerset, (-1 : ℂ)^(X.card-Y.card) *
        Complex.log (normalizedPartition Phi Psi b1 b2 Y z) := rfl

end QAlgorithms.Papers.Independent.Bridge50.P02
Source
Second-order asymptotics for quantum hypothesis testing in settings beyond i.i.d. - quantum lattice systems and more, arXiv:1510.04682v4, https://arxiv.org/abs/1510.04682v4
Read-back

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

QAlgorithms.Papers.Independent.Bridge50.P02.AnalyticCumulants

For arbitrary functions w:N→Rw:\mathbb N\to\mathbb Rw:N→R and h:N×R→Rh:\mathbb N\times\mathbb R\to\mathbb Rh:N×R→R, this property means that there exist a real radius r>0r>0r>0 and functions Hk:C→CH_k:\mathbb C\to\mathbb CHk​:C→C, one for every k∈Nk\in\mathbb Nk∈N, such that each HkH_kHk​ is complex analytic at every point of {z:∣z∣<r}\{z:|z|<r\}{z:∣z∣<r}, and Hk(x)=h(k,x)H_k(x)=h(k,x)Hk​(x)=h(k,x) for every real xxx with ∣x∣<r|x|<r∣x∣<r, identifying real numbers with complex numbers. For each such real xxx, there exists a complex number ℓx\ell_xℓx​ such that Hk(x)/w(k)→ℓxH_k(x)/w(k)\to\ell_xHk​(x)/w(k)→ℓx​ as k→∞k\to\inftyk→∞. There also exists a real constant CCC such that

∣Hk(z)∣≤Cw(k)for every k∈N and every ∣z∣<r.|H_k(z)|\le Cw(k) \qquad\text{for every }k\in\mathbb N\text{ and every }|z|<r.∣Hk​(z)∣≤Cw(k)for every k∈N and every ∣z∣<r.

No positivity, monotonicity, or growth assumption on www, and no sign restriction on CCC, is included. Division is total, so the quotient is zero when w(k)=0w(k)=0w(k)=0; the displayed bound must still hold at every index.

QAlgorithms.Papers.Independent.Bridge50.P02.BrycWeakLimit

For a sequence XkX_kXk​ of real random variables, each equipped with its own probability space, probability measure μk\mu_kμk​, and measurable value function, a function w:N→Rw:\mathbb N\to\mathbb Rw:N→R, and v∈Rv\in\mathbb Rv∈R, this property means that, for every continuous f:R→Rf:\mathbb R\to\mathbb Rf:R→R for which there exists C∈RC\in\mathbb RC∈R satisfying ∣f(x)∣≤C|f(x)|\le C∣f(x)∣≤C for all xxx, one has

lim⁡k→∞∫f ⁣(Xk(a)+ℓk′(0)wk) dμk(a)=∫f(y) dN(0,max⁡(v,0))(y),ℓk(x)=log⁡ ⁣(∫e−xXk(a) dμk(a)).\lim_{k\to\infty} \int f\!\left(\frac{X_k(a)+\ell_k'(0)}{\sqrt{w_k}}\right)\,d\mu_k(a) = \int f(y)\,d\mathcal N(0,\max(v,0))(y), \qquad \ell_k(x)=\log\!\left(\int e^{-xX_k(a)}\,d\mu_k(a)\right).k→∞lim​∫f(wk​​Xk​(a)+ℓk′​(0)​)dμk​(a)=∫f(y)dN(0,max(v,0))(y),ℓk​(x)=log(∫e−xXk​(a)dμk​(a)).

No positivity or divergence assumption on www, integrability assumption on the exponential, or differentiability assumption on ℓk\ell_kℓk​ is part of this definition. The integrals and derivatives use their totalized values, with a nonintegrable real integrand having integral 000, a derivative equal to 000 where differentiability fails, log⁡0=0\log 0=0log0=0, x=0\sqrt{x}=0x​=0 for x≤0x\le0x≤0, and division by 000 equal to 000. In particular, when wk≤0w_k\le0wk​≤0, the argument of fff on the left is 000; when v≤0v\le0v≤0, the Gaussian on the right is the point mass at 000.

QAlgorithms.Papers.Independent.Bridge50.P02.ClusterSmallness

For arbitrary natural numbers d,qd,qd,q, interactions Φ,Ψ\Phi,\PsiΦ,Ψ assigning Hermitian complex matrices Φ(X),Ψ(X)\Phi(X),\Psi(X)Φ(X),Ψ(X) to configurations on each finite X⊆ZdX\subseteq\mathbb Z^dX⊆Zd, with zero matrices at X=∅X=\varnothingX=∅, and arbitrary real numbers β1,β2,a,δ\beta_1,\beta_2,a,\deltaβ1​,β2​,a,δ, this proposition means

∑X⊆Zd finite0∈Xmax⁡ ⁣{e2a∣X∣(eδ(β1∥Φ(X)∥+β2∥Ψ(X)∥)−1), 0}≤max⁡{a,0}.\sum_{\substack{X\subseteq\mathbb Z^d\ \mathrm{finite}\\0\in X}} \max\!\left\{ e^{2a|X|} \left(e^{\delta(\beta_1\|\Phi(X)\|+\beta_2\|\Psi(X)\|)}-1\right),\,0 \right\} \le \max\{a,0\}.X⊆Zd finite0∈X​∑​max{e2a∣X∣(eδ(β1​∥Φ(X)∥+β2​∥Ψ(X)∥)−1),0}≤max{a,0}.

The sum is a nonnegative extended-real sum and may equal +∞+\infty+∞; the norms are the matrix norms occurring in the definition. No sign restrictions on the four real parameters are part of this proposition, and each potentially negative summand is replaced by zero before summation. The origin is the all-zero site; when d=0d=0d=0, the site space has one element.

QAlgorithms.Papers.Independent.Bridge50.P02.ConditionOne

For a testing sequence SSS with finite index types IkI_kIk​ having decidable equality and matrices ρk,σk\rho_k,\sigma_kρk​,σk​, and a function w:N→Rw:\mathbb N\to\mathbb Rw:N→R, this property requires that every IkI_kIk​ be nonempty, that ρk,σk\rho_k,\sigma_kρk​,σk​ be positive semidefinite with complex trace 111, and that ker⁡σk⊆ker⁡ρk\ker\sigma_k\subseteq\ker\rho_kkerσk​⊆kerρk​. It also requires w(k)>0w(k)>0w(k)>0 at every index, w(k)≤w(l)w(k)\le w(l)w(k)≤w(l) whenever k≤lk\le lk≤l, and w(k)→+∞w(k)\to+\inftyw(k)→+∞. Define

hk(x)=log⁡ ⁣(Re⁡tr⁡(ρk[1−x]σk[x])),h_k(x)=\log\!\left(\operatorname{Re}\operatorname{tr} \bigl(\rho_k^{[1-x]}\sigma_k^{[x]}\bigr)\right),hk​(x)=log(Retr(ρk[1−x]​σk[x]​)),

where A[t]A^{[t]}A[t] is obtained by real continuous functional calculus from the function that is zero at 000 and equals the total real power utu^tut at u≠0u\ne0u=0, including when t=0t=0t=0. Finally, there must exist r>0r>0r>0, functions Hk:C→CH_k:\mathbb C\to\mathbb CHk​:C→C analytic at every point of ∣z∣<r|z|<r∣z∣<r, and C∈RC\in\mathbb RC∈R, such that Hk(x)=hk(x)H_k(x)=h_k(x)Hk​(x)=hk​(x) for real ∣x∣<r|x|<r∣x∣<r, each sequence Hk(x)/w(k)H_k(x)/w(k)Hk​(x)/w(k) converges to some complex number, and ∣Hk(z)∣≤Cw(k)|H_k(z)|\le Cw(k)∣Hk​(z)∣≤Cw(k) for every kkk and ∣z∣<r|z|<r∣z∣<r. All requirements include k=0k=0k=0; positive definiteness of the matrices is not required.

QAlgorithms.Papers.Independent.Bridge50.P02.FaithfulPairs

For a testing sequence SSS, consisting of finite index types IkI_kIk​ with decidable equality and complex square matrices ρk,σk\rho_k,\sigma_kρk​,σk​ indexed by IkI_kIk​, this property means that, for every natural number kkk, including k=0k=0k=0, both ρk\rho_kρk​ and σk\sigma_kσk​ are positive definite. It imposes no trace normalization, support condition, or nonemptiness requirement on IkI_kIk​; positive definiteness on an empty index type has no nonzero vectors on which to test strict positivity.

QAlgorithms.Papers.Independent.Bridge50.P02.FiniteRange

For natural numbers d,qd,qd,q, let Φ\PhiΦ assign Hermitian complex matrices ΦX\Phi_XΦX​ to finite X⊆ZdX\subseteq\mathbb Z^dX⊆Zd, indexed by configurations X→{0,…,q−1}X\to\{0,\ldots,q-1\}X→{0,…,q−1}, with Φ∅=0\Phi_\varnothing=0Φ∅​=0. This predicate means that there exists a real R>0R>0R>0 such that, for every finite XXX, if there are x,y∈Xx,y\in Xx,y∈X satisfying R≤∑j=0d−1∣xj−yj∣R\le\sum_{j=0}^{d-1}|x_j-y_j|R≤∑j=0d−1​∣xj​−yj​∣, then ΦX=0\Phi_X=0ΦX​=0. The threshold inequality includes equality. For an empty or singleton XXX, the antecedent cannot hold; when d=0d=0d=0, all these distances are 000, so the antecedent cannot hold for any XXX.

QAlgorithms.Papers.Independent.Bridge50.P02.RandomVariable

This structure consists of a type Ω\OmegaΩ, a specified measurable-space structure on Ω\OmegaΩ, a measure μ\muμ on that measurable space, a proof that μ\muμ is a probability measure, a function X:Ω→RX:\Omega\to\mathbb RX:Ω→R, and a proof that XXX is measurable for the specified measurable-space structure and the usual measurable structure on R\mathbb RR. No finiteness, boundedness, integrability, or moment assumptions are included.

QAlgorithms.Papers.Independent.Bridge50.P02.SecondOrderBounds

For any testing sequence SSS of complex matrices ρk,σk\rho_k,\sigma_kρk​,σk​ on finite index types with decidable equality, arbitrary functions w,c:N→Rw,c:\mathbb N\to\mathbb Rw,c:N→R (with ccc the supplied center), and any real ϵ\epsilonϵ, define

βk=inf⁡{Re⁡tr⁡(Tσk):T≥0, 1−T≥0, 1−ϵ≤Re⁡tr⁡(Tρk)},Ek=−log⁡βk.\beta_k=\inf\left\{\operatorname{Re}\operatorname{tr}(T\sigma_k): T\ge0,\ 1-T\ge0,\ 1-\epsilon\le\operatorname{Re}\operatorname{tr}(T\rho_k)\right\}, \qquad E_k=-\log\beta_k.βk​=inf{Retr(Tσk​):T≥0, 1−T≥0, 1−ϵ≤Retr(Tρk​)},Ek​=−logβk​.

Also let a=v qϵa=\sqrt v\,q_\epsilona=v​qϵ​, where qϵ=inf⁡{z:ϵ≤Φ(z)}q_\epsilon=\inf\{z:\epsilon\le\Phi(z)\}qϵ​=inf{z:ϵ≤Φ(z)} for the standard normal distribution function Φ\PhiΦ, and vvv is the total limit-value operator applied to Vk/w(k)V_k/w(k)Vk​/w(k), with Vk=Re⁡tr⁡(ρk(log⁡ρk−log⁡σk)2)−Dk2V_k=\operatorname{Re}\operatorname{tr}(\rho_k(\log\rho_k-\log\sigma_k)^2)-D_k^2Vk​=Retr(ρk​(logρk​−logσk​)2)−Dk2​ and Dk=−Re⁡tr⁡(ρk(log⁡σk−log⁡ρk))D_k=-\operatorname{Re}\operatorname{tr}(\rho_k(\log\sigma_k-\log\rho_k))Dk​=−Retr(ρk​(logσk​−logρk​)); matrix logarithms use real continuous functional calculus. The property is the conjunction of the following two assertions: for every real t>at>at>a, there exists f:R→Rf:\mathbb R\to\mathbb Rf:R→R with f=o(⋅)f=o(\sqrt{\cdot})f=o(⋅​) at +∞+\infty+∞ such that

Ek≤c(k)+w(k) t+f(w(k))for every k∈N;E_k\le c(k)+\sqrt{w(k)}\,t+f(w(k)) \quad\text{for every }k\in\mathbb N;Ek​≤c(k)+w(k)​t+f(w(k))for every k∈N;

and for every real t<at<at<a and every such function fff,

c(k)+w(k) t+f(w(k))≤Ekfor all sufficiently large k.c(k)+\sqrt{w(k)}\,t+f(w(k))\le E_k \quad\text{for all sufficiently large }k.c(k)+w(k)​t+f(w(k))≤Ek​for all sufficiently large k.

Here f=o(⋅)f=o(\sqrt{\cdot})f=o(⋅​) means that for every η>0\eta>0η>0, eventually ∣f(x)∣≤η∣x∣|f(x)|\le\eta|\sqrt x|∣f(x)∣≤η∣x​∣ as x→+∞x\to+\inftyx→+∞. No bound is required at t=at=at=a. No state, support, weight, convergence, or error-range hypotheses are included; the infima, logarithms, division, and square roots are total, including log⁡0=0\log0=0log0=0 and x=0\sqrt x=0x​=0 for x<0x<0x<0.

QAlgorithms.Papers.Independent.Bridge50.P02.Site

For every natural number ddd, a site is a function from {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1} to Z\mathbb ZZ, equivalently an integer vector with ddd coordinates. For d=0d=0d=0, there is exactly one site, the empty function.

QAlgorithms.Papers.Independent.Bridge50.P02.SpinInteraction

For natural numbers d,qd,qd,q, a spin interaction consists of a complex square matrix ΦX\Phi_XΦX​ for every finite set X⊆ZdX\subseteq\mathbb Z^dX⊆Zd, whose rows and columns are indexed by all configurations X→{0,…,q−1}X\to\{0,\ldots,q-1\}X→{0,…,q−1}, together with requirements that every ΦX\Phi_XΦX​ is Hermitian and Φ∅=0\Phi_\varnothing=0Φ∅​=0. No positivity, translation invariance, or range condition is part of this structure. The parameters may be 000: when q=0q=0q=0, a nonempty XXX has no configurations, whereas the empty XXX has one configuration.

QAlgorithms.Papers.Independent.Bridge50.P02.StatePairs

For any testing sequence SSS, whose data consist of finite types IkI_kIk​ with decidable equality and complex Ik×IkI_k\times I_kIk​×Ik​ matrices ρk,σk\rho_k,\sigma_kρk​,σk​ for every natural number kkk, this property requires, for every kkk, that IkI_kIk​ be nonempty, that both matrices be positive semidefinite with complex trace exactly one, and that ker⁡σk⊆ker⁡ρk\ker\sigma_k\subseteq\ker\rho_kkerσk​⊆kerρk​. Explicitly, every vector annihilated by σk\sigma_kσk​ must also be annihilated by ρk\rho_kρk​. These requirements include k=0k=0k=0; neither matrix is required to be invertible, so singular density matrices are included.

QAlgorithms.Papers.Independent.Bridge50.P02.TestingSequence

A testing sequence consists of a type IkI_kIk​ for every natural number kkk, including k=0k=0k=0, a finite enumeration and decidable equality for each IkI_kIk​, and two complex square matrices ρk,σk\rho_k,\sigma_kρk​,σk​ indexed by Ik×IkI_k\times I_kIk​×Ik​. The index types may vary with kkk and may be empty. The structure imposes no positivity, Hermiticity, trace normalization, invertibility, support inclusion, or relation between different indices.

QAlgorithms.Papers.Independent.Bridge50.P02.TranslationInvariant

For natural numbers d,qd,qd,q, let Φ\PhiΦ assign to each finite X⊆ZdX\subseteq\mathbb Z^dX⊆Zd a Hermitian complex matrix ΦX\Phi_XΦX​ indexed by configurations X→{0,…,q−1}X\to\{0,\ldots,q-1\}X→{0,…,q−1}, with Φ∅=0\Phi_\varnothing=0Φ∅​=0. This predicate requires that for every finite XXX, every t∈Zdt\in\mathbb Z^dt∈Zd, and every two configurations a,ba,ba,b on X+t={x+t:x∈X}X+t=\{x+t:x\in X\}X+t={x+t:x∈X}, (ΦX+t)a,b=(ΦX)x↦a(x+t), x↦b(x+t)(\Phi_{X+t})_{a,b}=(\Phi_X)_{x\mapsto a(x+t),\,x\mapsto b(x+t)}(ΦX+t​)a,b​=(ΦX​)x↦a(x+t),x↦b(x+t)​. Empty supports and d=0d=0d=0 are included; for q=0q=0q=0 and nonempty XXX, the quantification over configurations is empty.

QAlgorithms.Papers.Independent.Bridge50.P02.clusterGerm

For natural numbers d,qd,qd,q, interactions Φ,Ψ\Phi,\PsiΦ,Ψ assigning Hermitian matrices to finite subsets of Zd\mathbb Z^dZd, with zero matrices on the empty set, real numbers β1,β2\beta_1,\beta_2β1​,β2​, a finite site set XXX, and z=(z1,z2)∈C2z=(z_1,z_2)\in\mathbb C^2z=(z1​,z2​)∈C2, this defines

CX(z)=∑Y⊆X(−1)∣X∣−∣Y∣Log⁡ ⁣[(q∣Y∣)−1Tr⁡ ⁣(ez1β1HΦ,Yez2β2HΨ,Y)].C_X(z)=\sum_{Y\subseteq X}(-1)^{|X|-|Y|} \operatorname{Log}\!\left[ (q^{|Y|})^{-1}\operatorname{Tr} \!\left(e^{z_1\beta_1H_{\Phi,Y}}e^{z_2\beta_2H_{\Psi,Y}}\right) \right].CX​(z)=Y⊆X∑​(−1)∣X∣−∣Y∣Log[(q∣Y∣)−1Tr(ez1​β1​HΦ,Y​ez2​β2​HΨ,Y​)].

For either interaction, HΦ,YH_{\Phi,Y}HΦ,Y​ is the sum over V⊆YV\subseteq YV⊆Y of its matrix on configurations V→{0,…,q−1}V\to\{0,\ldots,q-1\}V→{0,…,q−1}, extended to YYY by requiring the row and column configurations to agree outside VVV. The logarithm is the principal complex logarithm, used as a total function, including its value 000 at zero. The subtraction ∣X∣−∣Y∣|X|-|Y|∣X∣−∣Y∣ is natural-number subtraction, and Y⊆XY\subseteq XY⊆X ensures it is the ordinary nonnegative difference. All zero-dimensional and empty-set cases are included; in particular, C∅(z)=0C_\varnothing(z)=0C∅​(z)=0.

QAlgorithms.Papers.Independent.Bridge50.P02.eigenprojector

For a finite type III with decidable equality, an arbitrary complex I×II\times II×I matrix AAA, and any real λ\lambdaλ, this defines the real functional calculus of AAA for the function equal to one at λ\lambdaλ and zero elsewhere. For Hermitian AAA, this is the orthogonal projection onto its λ\lambdaλ-eigenspace, and is zero if λ\lambdaλ is absent from the spectrum. Hermiticity is not a hypothesis: for non-Hermitian AAA, the functional calculus returns zero. There are no positivity or normalization assumptions, and the index type may be empty.

QAlgorithms.Papers.Independent.Bridge50.P02.eigenvalueSet

For a finite type III with decidable equality, a complex I×II\times II×I matrix AAA, and a hypothesis that AAA is Hermitian, this defines the finite set {λi:i∈I}\{\lambda_i:i\in I\}{λi​:i∈I}, where (λi)i∈I(\lambda_i)_{i\in I}(λi​)i∈I​ is the real eigenvalue family supplied by the Hermitian spectral decomposition of AAA. Repeated eigenvalues appear only once in this set. No positivity or normalization is assumed; if III is empty, the set is empty.

QAlgorithms.Papers.Independent.Bridge50.P02.fermionSequence

For every natural number ddd and arbitrary functions q^,r^:Rd→R\widehat q,\widehat r:\mathbb R^d\to\mathbb Rq​,r:Rd→R, this constructs a sequence of pairs of complex matrices as follows. At index k≥0k\ge0k≥0, put Dk=(k+1)dD_k=(k+1)^dDk​=(k+1)d; the matrix index set is the set of all subsets of {0,…,Dk−1}\{0,\ldots,D_k-1\}{0,…,Dk​−1}, equipped with its finite structure and a decision procedure for equality. For either symbol s^\widehat ss, choose the finite equivalence e:{0,…,k}d→{0,…,Dk−1}e:\{0,\ldots,k\}^d\to\{0,\ldots,D_k-1\}e:{0,…,k}d→{0,…,Dk​−1}, and define

Ts^(j,l)=1(2π)d∫[0,2π)de−i∑a(e−1(j)a−e−1(l)a)xas^(x) dx.T_{\widehat s}(j,l)=\frac1{(2\pi)^d}\int_{[0,2\pi)^d} e^{-i\sum_a(e^{-1}(j)_a-e^{-1}(l)_a)x_a}\widehat s(x)\,dx.Ts​(j,l)=(2π)d1​∫[0,2π)d​e−i∑a​(e−1(j)a​−e−1(l)a​)xa​s(x)dx.

For a Dk×DkD_k\times D_kDk​×Dk​ matrix TTT, set A=T(1−T)−1A=T(1-T)^{-1}A=T(1−T)−1, and form a matrix Γ(A)\Gamma(A)Γ(A) indexed by subsets S,US,US,U by setting its entry to zero when ∣S∣≠∣U∣|S|\ne|U|∣S∣=∣U∣, and otherwise to the determinant of the submatrix of AAA with rows in SSS and columns in UUU, both in increasing order. The sequence is

ρk=(Tr⁡Γ(Aq^))−1Γ(Aq^),σk=(Tr⁡Γ(Ar^))−1Γ(Ar^).\rho_k=(\operatorname{Tr}\Gamma(A_{\widehat q}))^{-1}\Gamma(A_{\widehat q}), \qquad \sigma_k=(\operatorname{Tr}\Gamma(A_{\widehat r}))^{-1}\Gamma(A_{\widehat r}).ρk​=(TrΓ(Aq​​))−1Γ(Aq​​),σk​=(TrΓ(Ar​))−1Γ(Ar​).

No positivity, normalization, or support conditions are fields of this constructed sequence. The integrals are total Bochner integrals, the square-matrix inverse is zero on singular matrices, and scalar reciprocals at zero are zero. The construction includes d=0d=0d=0, for which Dk=1D_k=1Dk​=1.

QAlgorithms.Papers.Independent.Bridge50.P02.fermionWeight

For every pair of natural numbers d,kd,kd,k, this defines the real number

wd(k)=(k+1)d,w_d(k)=(k+1)^d,wd​(k)=(k+1)d,

where k+1k+1k+1 is converted to a real number before exponentiation. In particular, w0(k)=1w_0(k)=1w0​(k)=1 for every kkk, and wd(0)=1w_d(0)=1wd​(0)=1 for every ddd.

QAlgorithms.Papers.Independent.Bridge50.P02.finitePairRelativeEntropyNats

For a finite type III with decidable equality and arbitrary complex matrices ρ,σ\rho,\sigmaρ,σ indexed by I×II\times II×I, this defines the real number

Re⁡Tr⁡ ⁣(ρ(log⁡ρ−log⁡σ)),\operatorname{Re}\operatorname{Tr}\!\left(\rho\bigl(\log\rho-\log\sigma\bigr)\right),ReTr(ρ(logρ−logσ)),

where each matrix logarithm uses real continuous functional calculus with the scalar function log⁡\loglog. No positivity, trace normalization, invertibility, or support inclusion is assumed. The scalar logarithm is total, with log⁡0=0\log 0=0log0=0 and log⁡x=log⁡∣x∣\log x=\log|x|logx=log∣x∣ for negative xxx; real functional calculus on a non-Hermitian matrix returns zero. The index type may be empty, in which case the value is zero.

QAlgorithms.Papers.Independent.Bridge50.P02.iidSequence

For any finite type III with decidable equality and any complex square matrices ρ,σ\rho,\sigmaρ,σ indexed by III, this constructs a testing sequence whose index type at k∈Nk\in\mathbb Nk∈N is the set of functions {0,…,k}→I\{0,\ldots,k\}\to I{0,…,k}→I, equipped with its finite enumeration and a classically chosen decidable equality. Its matrices have entries

ρk(a,b)=∏i=0kρ(a(i),b(i)),σk(a,b)=∏i=0kσ(a(i),b(i)).\rho_k(a,b)=\prod_{i=0}^{k}\rho(a(i),b(i)), \qquad \sigma_k(a,b)=\prod_{i=0}^{k}\sigma(a(i),b(i)).ρk​(a,b)=i=0∏k​ρ(a(i),b(i)),σk​(a,b)=i=0∏k​σ(a(i),b(i)).

Thus index k=0k=0k=0 uses one tensor factor. No nonemptiness, positivity, trace normalization, or support condition on I,ρ,σI,\rho,\sigmaI,ρ,σ is required; if III is empty, every index type in this sequence is empty.

QAlgorithms.Papers.Independent.Bridge50.P02.iidWeight

For every natural number kkk, including k=0k=0k=0, this defines the real weight w(k)=k+1w(k)=k+1w(k)=k+1, where the natural number k+1k+1k+1 is converted to a real number; in particular, w(0)=1w(0)=1w(0)=1.

QAlgorithms.Papers.Independent.Bridge50.P02.latticeIncludeLocal

For natural numbers d,qd,qd,q, finite sets Y,X⊆ZdY,X\subseteq\mathbb Z^dY,X⊆Zd, a specified inclusion Y⊆XY\subseteq XY⊆X, and a complex matrix AAA indexed by configurations on YYY with values in {0,…,q−1}\{0,\ldots,q-1\}{0,…,q−1}, this defines a matrix on configurations on XXX: its entry at configurations a,ba,ba,b is Aa∣Y,b∣YA_{a|_Y,b|_Y}Aa∣Y​,b∣Y​​ if a(x)=b(x)a(x)=b(x)a(x)=b(x) for every x∈X∖Yx\in X\setminus Yx∈X∖Y, and is 000 otherwise. Thus Y=∅Y=\varnothingY=∅ gives the single scalar entry of AAA times the identity on configurations on XXX, and Y=XY=XY=X imposes no agreement condition outside YYY. Zero values of ddd and qqq are allowed.

QAlgorithms.Papers.Independent.Bridge50.P02.localHamiltonian

For natural numbers d,qd,qd,q, an assignment Φ\PhiΦ of Hermitian matrices ΦY\Phi_YΦY​ to finite Y⊆ZdY\subseteq\mathbb Z^dY⊆Zd, indexed by configurations Y→{0,…,q−1}Y\to\{0,\ldots,q-1\}Y→{0,…,q−1} and satisfying Φ∅=0\Phi_\varnothing=0Φ∅​=0, and a finite set X⊆ZdX\subseteq\mathbb Z^dX⊆Zd, this defines a complex matrix HΦ,XH_{\Phi,X}HΦ,X​ indexed by configurations on XXX, with entries (HΦ,X)a,b=∑Y⊆X1{a∣X∖Y=b∣X∖Y}(ΦY)a∣Y,b∣Y(H_{\Phi,X})_{a,b}=\sum_{Y\subseteq X}\mathbf1_{\{a|_{X\setminus Y}=b|_{X\setminus Y}\}}(\Phi_Y)_{a|_Y,b|_Y}(HΦ,X​)a,b​=∑Y⊆X​1{a∣X∖Y​=b∣X∖Y​}​(ΦY​)a∣Y​,b∣Y​​. The sum includes both Y=∅Y=\varnothingY=∅ and Y=XY=XY=X; the explicit inclusion check in each summand always succeeds because the sum ranges over subsets of XXX. In particular, HΦ,∅=0H_{\Phi,\varnothing}=0HΦ,∅​=0. No translation invariance or finite range is assumed, and d,qd,qd,q may be 000.

QAlgorithms.Papers.Independent.Bridge50.P02.logLaplace

For a random-variable structure consisting of a measurable space Ω\OmegaΩ, a probability measure μ\muμ, and a measurable function X:Ω→RX:\Omega\to\mathbb RX:Ω→R, and for every real xxx, this defines the real number

log⁡ ⁣(∫Ωe−xX(a) dμ(a)).\log\!\left(\int_\Omega e^{-xX(a)}\,d\mu(a)\right).log(∫Ω​e−xX(a)dμ(a)).

The minus sign in the exponential is part of the definition. No integrability or exponential-moment hypothesis is required: the real integral is the total Bochner integral, assigned zero when the integrand is not integrable, and the total real logarithm satisfies log⁡0=0\log0=0log0=0.

QAlgorithms.Papers.Independent.Bridge50.P02.manhattan

For every natural number ddd and sites x,y∈Zdx,y\in\mathbb Z^dx,y∈Zd, this defines the real number ∑j=0d−1∣xj−yj∣\sum_{j=0}^{d-1}|x_j-y_j|∑j=0d−1​∣xj​−yj​∣, with each integer coordinate difference regarded as a real number. For d=0d=0d=0, the empty sum is 000.

QAlgorithms.Papers.Independent.Bridge50.P02.modularLowProjector

For a finite type III with decidable equality, arbitrary complex I×II\times II×I matrices ρ,σ\rho,\sigmaρ,σ, and any real LLL, form D(i,j),(k,l)=ρik(σ−1)ljD_{(i,j),(k,l)}=\rho_{ik}(\sigma^{-1})_{lj}D(i,j),(k,l)​=ρik​(σ−1)lj​. This defines the real functional calculus of DDD for the indicator of [0,L)[0,L)[0,L): a scalar spectral value ttt receives value one exactly when 0≤t<L0\le t<L0≤t<L, and zero otherwise. No positivity, Hermiticity, invertibility, normalization, or positivity of LLL is assumed. When DDD is Hermitian this selects its eigenspaces in [0,L)[0,L)[0,L), including its kernel if L>0L>0L>0; when DDD is non-Hermitian the functional calculus returns zero. The inverse of singular σ\sigmaσ is zero. For L≤0L\le0L≤0, the resulting matrix is zero, and empty III is allowed.

QAlgorithms.Papers.Independent.Bridge50.P02.normalizedPartition

For arbitrary natural numbers d,qd,qd,q, let the sites be Zd\mathbb Z^dZd, and let Φ,Ψ\Phi,\PsiΦ,Ψ assign to every finite site set YYY a Hermitian complex matrix indexed by configurations Y→{0,…,q−1}Y\to\{0,\ldots,q-1\}Y→{0,…,q−1}, with their matrices on the empty set equal to zero. For real numbers β1,β2\beta_1,\beta_2β1​,β2​, a finite site set XXX, and z=(z1,z2)∈C2z=(z_1,z_2)\in\mathbb C^2z=(z1​,z2​)∈C2, this defines

ZX(z)=q−∣X∣Tr⁡ ⁣(ez1β1HΦ,Xez2β2HΨ,X).Z_X(z)=q^{-|X|}\operatorname{Tr}\!\left( e^{z_1\beta_1 H_{\Phi,X}}e^{z_2\beta_2 H_{\Psi,X}} \right).ZX​(z)=q−∣X∣Tr(ez1​β1​HΦ,X​ez2​β2​HΨ,X​).

Here HΦ,X=∑Y⊆XΦ(Y)~H_{\Phi,X}=\sum_{Y\subseteq X}\widetilde{\Phi(Y)}HΦ,X​=∑Y⊆X​Φ(Y)​, where the entry of Φ(Y)~\widetilde{\Phi(Y)}Φ(Y)​ at configurations u,vu,vu,v on XXX is Φ(Y)u∣Y,v∣Y\Phi(Y)_{u|_Y,v|_Y}Φ(Y)u∣Y​,v∣Y​​ if uuu and vvv agree outside YYY, and is zero otherwise; HΨ,XH_{\Psi,X}HΨ,X​ is defined identically from Ψ\PsiΨ. The exponentials are matrix exponentials, and q−∣X∣q^{-|X|}q−∣X∣ means the complex reciprocal of q∣X∣q^{|X|}q∣X∣. No positivity assumptions on the temperatures or on qqq are imposed: the reciprocal of zero is defined to be zero. For X=∅X=\varnothingX=∅, the value is 111.

QAlgorithms.Papers.Independent.Bridge50.P02.optimalTestingExponentNats

For a finite type III with decidable equality, arbitrary complex I×II\times II×I matrices ρ,σ\rho,\sigmaρ,σ, and any real ϵ\epsilonϵ, let

βϵ(ρ,σ)=inf⁡{Re⁡Tr⁡(Tσ):T⪰0, 1−T⪰0, 1−ϵ≤Re⁡Tr⁡(Tρ)}.\beta_\epsilon(\rho,\sigma)= \inf\left\{\operatorname{Re}\operatorname{Tr}(T\sigma): T\succeq0,\ \mathbf1-T\succeq0,\ 1-\epsilon\le \operatorname{Re}\operatorname{Tr}(T\rho)\right\}.βϵ​(ρ,σ)=inf{ReTr(Tσ):T⪰0, 1−T⪰0, 1−ϵ≤ReTr(Tρ)}.

This defines −log⁡βϵ(ρ,σ)-\log\beta_\epsilon(\rho,\sigma)−logβϵ​(ρ,σ). Neither matrix is assumed to be a density matrix, and ϵ\epsilonϵ has no prescribed range. The infimum is taken in the real numbers; an empty feasible set has infimum zero. The real logarithm also has log⁡0=0\log0=0log0=0, so a zero infimum gives exponent zero, while a negative infimum is evaluated using log⁡x=log⁡∣x∣\log x=\log|x|logx=log∣x∣. Empty III is permitted and gives zero.

QAlgorithms.Papers.Independent.Bridge50.P02.pairInformationVarianceNats

For a finite type III with decidable equality and arbitrary complex I×II\times II×I matrices ρ,σ\rho,\sigmaρ,σ, let Lρ,LσL_\rho,L_\sigmaLρ​,Lσ​ be their logarithms under real continuous functional calculus. This defines

Re⁡Tr⁡ ⁣(ρ(Lρ−Lσ)2)−[Re⁡Tr⁡ ⁣(ρ(Lρ−Lσ))]2,\operatorname{Re}\operatorname{Tr}\!\left(\rho(L_\rho-L_\sigma)^2\right) -\left[\operatorname{Re}\operatorname{Tr}\!\left(\rho(L_\rho-L_\sigma)\right)\right]^2,ReTr(ρ(Lρ​−Lσ​)2)−[ReTr(ρ(Lρ​−Lσ​))]2,

where the matrix square means matrix multiplication. No positivity, normalization, invertibility, support inclusion, or nonnegativity of the resulting number is required. Scalar logarithms use log⁡0=0\log 0=0log0=0 and log⁡x=log⁡∣x∣\log x=\log|x|logx=log∣x∣ for x<0x<0x<0, and real functional calculus returns zero on non-Hermitian matrices. Empty III is allowed and gives zero.

QAlgorithms.Papers.Independent.Bridge50.P02.realPetzLogOverlap

For a finite type III with decidable equality, arbitrary complex I×II\times II×I matrices ρ,σ\rho,\sigmaρ,σ, and any real sss, define Pt(X)P_t(X)Pt​(X) by real continuous functional calculus using the scalar function that is zero at x=0x=0x=0 and equals the total real power xtx^txt otherwise. The declaration defines

log⁡ ⁣(Re⁡Tr⁡(Ps(ρ)P1−s(σ))).\log\!\left(\operatorname{Re}\operatorname{Tr}\bigl(P_s(\rho)P_{1-s}(\sigma)\bigr)\right).log(ReTr(Ps​(ρ)P1−s​(σ))).

There are no positivity, normalization, invertibility, support, or restrictions on sss. In particular, P0P_0P0​ assigns zero to zero eigenvalues, and Pt(X)=0P_t(X)=0Pt​(X)=0 when XXX is non-Hermitian. The outer logarithm is real and total: it is zero at zero and equals log⁡∣x∣\log|x|log∣x∣ at negative arguments. Empty III therefore gives zero.

QAlgorithms.Papers.Independent.Bridge50.P02.relativeEntropyCorrection

For any testing sequence SSS of complex matrices ρj,σj\rho_j,\sigma_jρj​,σj​ on finite index types with decidable equality, any real weight function www, and every natural index kkk, including zero, this defines

Dk−w(k)d,Dj=−Re⁡tr⁡(ρj(log⁡σj−log⁡ρj)),D_k-w(k)d,\qquad D_j=-\operatorname{Re}\operatorname{tr} \bigl(\rho_j(\log\sigma_j-\log\rho_j)\bigr),Dk​−w(k)d,Dj​=−Retr(ρj​(logσj​−logρj​)),

where matrix logarithms use real continuous functional calculus and ddd is the value selected by the total limit-value operator for Dj/w(j)D_j/w(j)Dj​/w(j) as j→∞j\to\inftyj→∞. No normalization, support, positivity, convergence, or asymptotic size of this correction is assumed or asserted; the quotients defining ddd use total division, including zero denominators.

QAlgorithms.Papers.Independent.Bridge50.P02.relativeEntropyRate

For any testing sequence SSS, with complex matrices ρk,σk\rho_k,\sigma_kρk​,σk​ on finite index types having decidable equality, and any real function w:N→Rw:\mathbb N\to\mathbb Rw:N→R, this defines the real value obtained by applying the total limit-value operator at k→∞k\to\inftyk→∞ to

Dkw(k),Dk=−Re⁡tr⁡(ρk(log⁡σk−log⁡ρk)),\frac{D_k}{w(k)},\qquad D_k=-\operatorname{Re}\operatorname{tr} \bigl(\rho_k(\log\sigma_k-\log\rho_k)\bigr),w(k)Dk​​,Dk​=−Retr(ρk​(logσk​−logρk​)),

where each matrix logarithm uses real continuous functional calculus. No density-matrix, support, nonemptiness, positivity-of-weight, or convergence hypothesis is imposed. If the sequence converges, the value is its limit; the definition remains assigned a value without asserting convergence. A zero denominator gives quotient zero.

QAlgorithms.Papers.Independent.Bridge50.P02.secondOrderCoefficient

For any testing sequence SSS, any w:N→Rw:\mathbb N\to\mathbb Rw:N→R, and any real ϵ\epsilonϵ, this defines

v qϵ,qϵ=inf⁡{z∈R:ϵ≤Φ(z)},Φ(z)=∫−∞ze−x2/22π dx,\sqrt v\,q_\epsilon,\qquad q_\epsilon=\inf\{z\in\mathbb R:\epsilon\le\Phi(z)\}, \quad \Phi(z)=\int_{-\infty}^{z}\frac{e^{-x^2/2}}{\sqrt{2\pi}}\,dx,v​qϵ​,qϵ​=inf{z∈R:ϵ≤Φ(z)},Φ(z)=∫−∞z​2π​e−x2/2​dx,

where vvv is the value selected by the total limit-value operator for Vk/w(k)V_k/w(k)Vk​/w(k) as k→∞k\to\inftyk→∞, with

Vk=Re⁡tr⁡(ρk(log⁡ρk−log⁡σk)2)−[−Re⁡tr⁡(ρk(log⁡σk−log⁡ρk))]2.V_k=\operatorname{Re}\operatorname{tr} \bigl(\rho_k(\log\rho_k-\log\sigma_k)^2\bigr) -\left[-\operatorname{Re}\operatorname{tr} \bigl(\rho_k(\log\sigma_k-\log\rho_k)\bigr)\right]^2.Vk​=Retr(ρk​(logρk​−logσk​)2)−[−Retr(ρk​(logσk​−logρk​))]2.

The matrices belong to the finite index types of SSS, and logarithms use real continuous functional calculus. No state, weight, convergence, variance-sign, or restriction 0<ϵ<10<\epsilon<10<ϵ<1 is assumed. The square root is the total real square root, which is zero on negative inputs, and the real infimum defining qϵq_\epsilonqϵ​ is total even when its set is empty or unbounded below.

QAlgorithms.Papers.Independent.Bridge50.P02.spectralIntegral

For a finite type III with decidable equality, arbitrary complex I×II\times II×I matrices A,BA,BA,B, and any function f:R→Rf:\mathbb R\to\mathbb Rf:R→R, form the matrix DDD indexed by I×II\times II×I with D(i,j),(k,l)=Aik(B−1)ljD_{(i,j),(k,l)}=A_{ik}(B^{-1})_{lj}D(i,j),(k,l)​=Aik​(B−1)lj​, and the vector v(i,j)=(B)ijv_{(i,j)}=(\sqrt B)_{ij}v(i,j)​=(B​)ij​, where B\sqrt BB​ uses real continuous functional calculus. Let KKK be the real functional calculus of DDD for t↦f(−log⁡t)t\mapsto f(-\log t)t↦f(−logt). The defined number is

Re⁡∑i,j∈Iv(i,j)‾∑k,l∈IK(i,j),(k,l)v(k,l).\operatorname{Re}\sum_{i,j\in I}\overline{v_{(i,j)}} \sum_{k,l\in I}K_{(i,j),(k,l)}v_{(k,l)}.Rei,j∈I∑​v(i,j)​​k,l∈I∑​K(i,j),(k,l)​v(k,l)​.

No positivity, Hermiticity, invertibility, normalization, or regularity of fff is assumed. The inverse is the total matrix inverse, which is zero for singular BBB; scalar log⁡0=0\log0=0log0=0, so zero spectral values use f(0)f(0)f(0). Real functional calculus returns zero on non-Hermitian matrices, and scalar square roots of negative numbers are zero. Empty III gives zero.

QAlgorithms.Papers.Independent.Bridge50.P02.spectralTail

For a finite type III with decidable equality, arbitrary complex I×II\times II×I matrices A,BA,BA,B, and any real threshold ν\nuν, set D(i,j),(k,l)=Aik(B−1)ljD_{(i,j),(k,l)}=A_{ik}(B^{-1})_{lj}D(i,j),(k,l)​=Aik​(B−1)lj​ and v(i,j)=(B)ijv_{(i,j)}=(\sqrt B)_{ij}v(i,j)​=(B​)ij​. Let KKK be the real functional calculus of DDD for the indicator function t↦1{−log⁡t≤ν}t\mapsto\mathbf1_{\{-\log t\le\nu\}}t↦1{−logt≤ν}​. This defines Re⁡∑p,q∈I×Ivp‾Kpqvq\operatorname{Re}\sum_{p,q\in I\times I}\overline{v_p}K_{pq}v_qRe∑p,q∈I×I​vp​​Kpq​vq​, with an inclusive inequality at the threshold. No positivity, Hermiticity, invertibility, or normalization is assumed. The inverse is zero for singular BBB, real functional calculus is zero on non-Hermitian matrices, and log⁡0=0\log0=0log0=0, so zero spectral values satisfy the indicator exactly when 0≤ν0\le\nu0≤ν. Empty III gives zero.

QAlgorithms.Papers.Independent.Bridge50.P02.spinBox

For natural numbers d,kd,kd,k, this defines the finite set of all sites x∈Zdx\in\mathbb Z^dx∈Zd satisfying −(k+1)≤xj≤k+1-(k+1)\le x_j\le k+1−(k+1)≤xj​≤k+1 in every coordinate jjj. It is obtained by independently choosing each coordinate from 0,…,2(k+1)0,\ldots,2(k+1)0,…,2(k+1) and subtracting k+1k+1k+1. Thus k=0k=0k=0 gives coordinates in {−1,0,1}\{-1,0,1\}{−1,0,1}, and d=0d=0d=0 gives the singleton containing the empty site.

QAlgorithms.Papers.Independent.Bridge50.P02.spinSequence

For natural numbers d,qd,qd,q, two assignments Φ,Ψ\Phi,\PsiΦ,Ψ of Hermitian complex interaction matrices to finite subsets of Zd\mathbb Z^dZd, each vanishing on the empty subset, and arbitrary real numbers β1,β2\beta_1,\beta_2β1​,β2​, this defines a sequence of matrix pairs. At index k∈Nk\in\mathbb Nk∈N, let Bk={x∈Zd:−(k+1)≤xj≤k+1 for every j}B_k=\{x\in\mathbb Z^d:-(k+1)\le x_j\le k+1\text{ for every }j\}Bk​={x∈Zd:−(k+1)≤xj​≤k+1 for every j}; the finite index type, equipped with decidable equality, is the set of configurations Bk→{0,…,q−1}B_k\to\{0,\ldots,q-1\}Bk​→{0,…,q−1}. On this index type set HΦ,kH_{\Phi,k}HΦ,k​ to have entry ∑Y⊆Bk1{a∣Bk∖Y=b∣Bk∖Y}(ΦY)a∣Y,b∣Y\sum_{Y\subseteq B_k}\mathbf1_{\{a|_{B_k\setminus Y}=b|_{B_k\setminus Y}\}}(\Phi_Y)_{a|_Y,b|_Y}∑Y⊆Bk​​1{a∣Bk​∖Y​=b∣Bk​∖Y​}​(ΦY​)a∣Y​,b∣Y​​, and define HΨ,kH_{\Psi,k}HΨ,k​ in the same way. The pair is ρk=(tr⁡e−β1HΦ,k)−1e−β1HΦ,k\rho_k=(\operatorname{tr}e^{-\beta_1H_{\Phi,k}})^{-1}e^{-\beta_1H_{\Phi,k}}ρk​=(tre−β1​HΦ,k​)−1e−β1​HΦ,k​ and σk=(tr⁡e−β2HΨ,k)−1e−β2HΨ,k\sigma_k=(\operatorname{tr}e^{-\beta_2H_{\Psi,k}})^{-1}e^{-\beta_2H_{\Psi,k}}σk​=(tre−β2​HΨ,k​)−1e−β2​HΨ,k​, using complex scalar inversion, with inverse 000 defined as 000. Neither translation invariance nor finite range is required. The parameters d,qd,qd,q may be 000; for q=0q=0q=0, each nonempty box has no configurations, so both matrices are the unique matrices on an empty index type.

QAlgorithms.Papers.Independent.Bridge50.P02.spinVolumeWeight

For every pair of natural numbers d,kd,kd,k, this defines the real number

wd(k)=(2(k+1)+1)d=(2k+3)d,w_d(k)=(2(k+1)+1)^d=(2k+3)^d,wd​(k)=(2(k+1)+1)d=(2k+3)d,

where the integer base is converted to a real number before exponentiation. Both d=0d=0d=0 and k=0k=0k=0 are allowed; in particular, w0(k)=1w_0(k)=1w0​(k)=1 and wd(0)=3dw_d(0)=3^dwd​(0)=3d.

QAlgorithms.Papers.Independent.Bridge50.P02.symbolCompression

For every natural number ddd, every function q^:Rd→R\widehat q:\mathbb R^d\to\mathbb Rq​:Rd→R, and every natural number nnn, let En={0,…,n−1}dE_n=\{0,\ldots,n-1\}^dEn​={0,…,n−1}d, let D=∣En∣=ndD=|E_n|=n^dD=∣En​∣=nd, and choose the finite-set equivalence e:En→{0,…,D−1}e:E_n\to\{0,\ldots,D-1\}e:En​→{0,…,D−1} used in the definition. This defines a complex D×DD\times DD×D matrix with entries

Qn(j,k)=1(2π)d∫[0,2π)dexp⁡ ⁣(−i∑ℓ=1d(e−1(j)ℓ−e−1(k)ℓ)xℓ)q^(x) dx.Q_n(j,k)=\frac1{(2\pi)^d} \int_{[0,2\pi)^d} \exp\!\left(-i\sum_{\ell=1}^d \bigl(e^{-1}(j)_\ell-e^{-1}(k)_\ell\bigr)x_\ell\right) \widehat q(x)\,dx.Qn​(j,k)=(2π)d1​∫[0,2π)d​exp(−iℓ=1∑d​(e−1(j)ℓ​−e−1(k)ℓ​)xℓ​)q​(x)dx.

The coordinate values are converted to real numbers before subtraction. No regularity, integrability, or range restriction on q^\widehat qq​ is assumed; each entry uses the total complex Bochner integral and is zero if its integrand is not integrable. If n=0n=0n=0 and d>0d>0d>0, the matrix has size zero; if d=0d=0d=0, including n=0n=0n=0, it has size one and its entry is q^\widehat qq​ at the unique point.

QAlgorithms.Papers.Independent.Bridge50.P02.symbolEntropy

For every natural number ddd and arbitrary functions q^,r^:Rd→R\widehat q,\widehat r:\mathbb R^d\to\mathbb Rq​,r:Rd→R, this defines

1(2π)d∫[0,2π)d[q^(x)log⁡q^(x)r^(x)+(1−q^(x))log⁡1−q^(x)1−r^(x)]dx.\frac1{(2\pi)^d}\int_{[0,2\pi)^d} \left[ \widehat q(x)\log\frac{\widehat q(x)}{\widehat r(x)} +(1-\widehat q(x)) \log\frac{1-\widehat q(x)}{1-\widehat r(x)} \right]dx.(2π)d1​∫[0,2π)d​[q​(x)logr(x)q​(x)​+(1−q​(x))log1−r(x)1−q​(x)​]dx.

There are no measurability, integrability, or range assumptions on the symbols. Division by zero is defined to give zero, and the real logarithm is total, with log⁡0=0\log0=0log0=0 and log⁡(−u)=log⁡u\log(-u)=\log ulog(−u)=logu for u>0u>0u>0. The integral is the total real Bochner integral, so its value is zero if the displayed integrand is not integrable. When d=0d=0d=0, the definition evaluates the displayed expression at the unique point of R0\mathbb R^0R0.

QAlgorithms.Papers.Independent.Bridge50.P02.symbolPressure

For every natural number ddd, arbitrary functions q^,r^:Rd→R\widehat q,\widehat r:\mathbb R^d\to\mathbb Rq​,r:Rd→R, and real number sss, this defines

Pq^,r^(s)=∫[0,2π)dlog⁡ ⁣(q^(x)sr^(x)1−s+(1−q^(x))s(1−r^(x))1−s)dx(2π)d.P_{\widehat q,\widehat r}(s)= \int_{[0,2\pi)^d} \log\!\left( \widehat q(x)^s\widehat r(x)^{1-s} +(1-\widehat q(x))^s(1-\widehat r(x))^{1-s} \right)\frac{dx}{(2\pi)^d}.Pq​,r​(s)=∫[0,2π)d​log(q​(x)sr(x)1−s+(1−q​(x))s(1−r(x))1−s)(2π)ddx​.

Here Rd\mathbb R^dRd means functions from {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1} to R\mathbb RR, and the integral is the real integral against Lebesgue measure restricted to the indicated cube and normalized by (2π)−d(2\pi)^{-d}(2π)−d. No measurability, integrability, periodicity, or bounds on either function are required by this definition; powers and logarithms use their total real-valued definitions, including log⁡0=0\log 0=0log0=0, and the integral is also total, with value zero for a nonintegrable integrand. The definition includes d=0d=0d=0, when the domain consists of the single empty tuple and the normalized measure has mass one.

QAlgorithms.Papers.Independent.Bridge50.P02.symmetricError

For a finite type III with decidable equality and arbitrary complex I×II\times II×I matrices A,BA,BA,B, this defines the real infimum

inf⁡T⪰01−T⪰0[Re⁡Tr⁡(A(1−T))+Re⁡Tr⁡(BT)].\inf_{\substack{T\succeq0\\ \mathbf1-T\succeq0}} \left[ \operatorname{Re}\operatorname{Tr}\bigl(A(\mathbf1-T)\bigr) +\operatorname{Re}\operatorname{Tr}(BT) \right].T⪰01−T⪰0​inf​[ReTr(A(1−T))+ReTr(BT)].

Thus the tests range over all positive semidefinite matrices whose complements are positive semidefinite, including T=0T=0T=0 and T=1T=\mathbf1T=1; they need not be projections. No positivity or trace normalization of A,BA,BA,B, or nonemptiness of III, is assumed. For empty III, the value is zero.

QAlgorithms.Papers.Independent.Bridge50.P02.torusAverage

For every natural number ddd and every function f:Rd→Rf:\mathbb R^d\to\mathbb Rf:Rd→R, this defines

⟨f⟩Td=∫Rdf(x) dμd(x),dμd=(2π)−d1[0,2π)d dx.\langle f\rangle_{\mathbb T^d} =\int_{\mathbb R^d}f(x)\,d\mu_d(x), \qquad d\mu_d=(2\pi)^{-d}\mathbf1_{[0,2\pi)^d}\,dx.⟨f⟩Td​=∫Rd​f(x)dμd​(x),dμd​=(2π)−d1[0,2π)d​dx.

No measurability or integrability hypothesis on fff is required by the definition; the integral is the total Bochner integral, which is zero when fff is not integrable. For d=0d=0d=0, this is evaluation at the unique point of R0\mathbb R^0R0.

QAlgorithms.Papers.Independent.Bridge50.P02.torusMeasure

For every natural number ddd, this defines a measure μd\mu_dμd​ on Rd\mathbb R^dRd by restricting Lebesgue measure to the half-open box [0,2π)d[0,2\pi)^d[0,2π)d and multiplying it by (2π)−d(2\pi)^{-d}(2π)−d:

μd(E)=vol⁡(E∩[0,2π)d)(2π)d\mu_d(E)=\frac{\operatorname{vol}(E\cap[0,2\pi)^d)}{(2\pi)^d}μd​(E)=(2π)dvol(E∩[0,2π)d)​

for measurable EEE. The normalization and multiplication are taken in the nonnegative extended reals. The case d=0d=0d=0 is included: the underlying space has one point and the measure gives it mass 111.

QAlgorithms.Papers.Independent.Bridge50.P02.translateSupport

For every natural number ddd, finite set X⊆ZdX\subseteq\mathbb Z^dX⊆Zd, and translation vector t∈Zdt\in\mathbb Z^dt∈Zd, this defines X+t={x+t:x∈X}X+t=\{x+t:x\in X\}X+t={x+t:x∈X}, using coordinatewise integer addition and retaining the result as a finite set. In particular, translating the empty set gives the empty set; d=0d=0d=0 is allowed.

QAlgorithms.Papers.Independent.Bridge50.P02.translatedSite

For every natural number ddd, finite set X⊆ZdX\subseteq\mathbb Z^dX⊆Zd, translation vector t∈Zdt\in\mathbb Z^dt∈Zd, and element x∈Xx\in Xx∈X, this defines the element x+tx+tx+t of the finite set X+t={y+t:y∈X}X+t=\{y+t:y\in X\}X+t={y+t:y∈X}, including its membership in that set. When XXX is empty there is no such argument xxx.

QAlgorithms.Papers.Independent.Bridge50.P02.varianceRate

For any testing sequence SSS, with complex matrices ρk,σk\rho_k,\sigma_kρk​,σk​ on finite index types having decidable equality, and any w:N→Rw:\mathbb N\to\mathbb Rw:N→R, this defines the real value selected by the total limit-value operator at k→∞k\to\inftyk→∞ for the sequence

Vkw(k),Vk=Re⁡tr⁡(ρk(log⁡ρk−log⁡σk)2)−Dk2,Dk=−Re⁡tr⁡(ρk(log⁡σk−log⁡ρk)).\frac{V_k}{w(k)},\qquad V_k=\operatorname{Re}\operatorname{tr} \bigl(\rho_k(\log\rho_k-\log\sigma_k)^2\bigr)-D_k^2, \quad D_k=-\operatorname{Re}\operatorname{tr} \bigl(\rho_k(\log\sigma_k-\log\rho_k)\bigr).w(k)Vk​​,Vk​=Retr(ρk​(logρk​−logσk​)2)−Dk2​,Dk​=−Retr(ρk​(logσk​−logρk​)).

Matrix logarithms use real continuous functional calculus. There are no density-matrix, support, nonemptiness, weight, convergence, or nonnegativity assumptions. When the displayed sequence converges, the defined value equals its limit; convergence is not itself asserted. Division by zero gives zero.

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

    Confirmed by the moderator at approval.

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