Cross-entropy against a block-modified spectral state
ProvedOAI.EntropyPhotonNumber.block_crossEntropyLet be the -mode Fock space. Let be a finite set and any set, let be a Hilbert basis of , and let with . For a matrix let
be its embedding as an operator acting on the span of the finite block . Let be Hermitian with orthonormal eigenvectors and eigenvalues (as chosen by the spectral theorem). The block-modified basis is for and for ; the partition function is , and the modified weights are , , which are positive and sum to . The block state is the state .
For a state write (computed as over the number basis) and define the cross-entropy of relative to the spectral data as
Theorem. Let be a state such that the series converges (absolutely). Then the series converges, and
The left side is the cross-entropy of against the block state (eigenbasis , eigenvalues ). The formula expresses it through the unperturbed cross-entropy and two finite-block expectations, which makes the dependence on explicit (affine in plus ) for variational arguments.
Formalization Note The values are written as real parts of complex inner products, the identity is a HasSum statement, and is the tsum crossEntropy b p σ.
import Mathlib
import Definitions.Def_EntropyPhotonNumber
import Definitions.Def_OAI_MathematicalPhysics_Fock_Beam
import Definitions.Def_OAI_Analysis_QuantumTrace_Basic
import Definitions.Def_OAI_MathematicalPhysics_Fock_Operators
import Definitions.Def_OAI_InformationTheory_PhotonNumber_Gibbs
import Definitions.Def_OAI_Analysis_TensorLp
import Definitions.Def_OAI_InformationTheory_PhotonNumber_BeamTrace
import Definitions.Def_OAI_InformationTheory_PhotonNumber_Functions
import Definitions.Def_OAI_Analysis_DiagonalForms
import Definitions.Def_OAI_InformationTheory_PhotonNumber_ThermalMetric
import Definitions.Def_OAI_InformationTheory_PhotonNumber_BeamForms
import Definitions.Def_OAI_InformationTheory_PhotonNumber_Generator
import Definitions.Def_OAI_InformationTheory_PhotonNumber_SpectralLog
import Definitions.Def_OAI_InformationTheory_PhotonNumber_Continuity
import Definitions.Def_OAI_InformationTheory_PhotonNumber_Entropy
import Definitions.Def_OAI_InformationTheory_PhotonNumber_GibbsVariational
import Definitions.Def_OAI_Analysis_Herglotz
import Definitions.Def_OAI_InformationTheory_PhotonNumber_Interpolation
import Definitions.Def_OAI_InformationTheory_PhotonNumber_SpectralForms
import Definitions.Def_OAI_InformationTheory_PhotonNumber_Contraction
import Definitions.Def_OAI_InformationTheory_PhotonNumber_FiniteVariation
open OAI OAI.EntropyPhotonNumber
open scoped ComplexConjugate
open scoped BigOperators ComplexConjugate
open scoped BigOperators ComplexConjugate ENNReal Topology
open MeasureTheory
open scoped BigOperators
open MvPolynomial
open scoped BigOperators ComplexConjugate Classical
open Submodule
open scoped ENNReal
open Module
open scoped ComplexConjugate BigOperators Matrix
open scoped ComplexConjugate
open scoped BigOperators ComplexConjugate
open scoped BigOperators ComplexConjugate ENNReal Topology
open MeasureTheory
open scoped BigOperators
open MvPolynomial
open scoped BigOperators ComplexConjugate Classical
open Submodule
open scoped ENNReal
open Module
open scoped ComplexConjugate BigOperators Matrix
open NormedSpace
open scoped Matrix.Norms.Operator
open QuantumTrace
variable {n : ℕ} {I J : Type*} [Fintype I] [DecidableEq I]theorem OAI.EntropyPhotonNumber.block_crossEntropy (σ : State n) (b : HilbertBasis (I ⊕ J) ℂ (Fock n))
(p : I ⊕ J → ℝ) (hp : ∀ j, 0 < p j) (hs : HasSum p 1)
(hc : Summable (fun j => (-Real.log (p j))*(inner ℂ (b j) (σ.op (b j))).re))
(M : Matrix I I ℂ) (hM : M.IsHermitian) :
HasSum (fun j => (-Real.log (FiniteBlock.weights p M hM j))*
(inner ℂ (FiniteBlock.basis b hM.eigenvectorBasis j)
(σ.op (FiniteBlock.basis b hM.eigenvectorBasis j))).re)
(crossEntropy b p σ+
(expectation σ (FiniteBlock.block b (Matrix.diagonal (fun i => (Real.log (p (Sum.inl i)) : ℂ))))).re-
(expectation σ (FiniteBlock.block b M)).re+Real.log (FiniteBlock.partition p M hM)) := by sorry