Lemma 8: the full product-energy diagonal expansion
OpenQAlgorithms.Papers.Independent.Extend50.P14.diagonal_energy_expansionLet n,d≥1 and let H be Hermitian and diagonal in the product basis of n d-level systems. For 1≤l<d put Z^{(l)}=|l-1⟩⟨l-1|-|l⟩⟨l|. There are real diagonal entries h_x and real coefficients c_a indexed by patterns a that choose I or one Z^{(l)} at each site, such that
This is the source expansion with each selected site and nonzero level counted once. For d=1 the nonidentity sum is empty.
import Definitions.Def_QAlgorithms_Papers_Independent_Extend50_P14
noncomputable section
namespace QAlgorithms.Papers.Independent.Extend50.P14
open scoped Classical Matrix ComplexConjugate Matrix.Norms.Frobenius
open MeasureTheory
-- Exact accepted aliases and physical operators, without local redeclarations.
open QAlgorithms.Papers.Independent.Information100.P60 (Mat)
open QAlgorithms.Papers.Independent.Advance50.P49 (onWire multiSwap)
attribute [local instance 100] LieRing.ofAssociativeRing
/-- PDF p.48, Lemma 8/G39–G40: the full physical product-energy expansion.
Positive d makes Tr(I)=d^n nonzero; d=1 leaves only the scalar term. -/
theorem diagonal_energy_expansion (n d : ℕ) (hn : 1 ≤ n) (hd : 1 ≤ d)
(H : EMat n d) (hH : H.IsHermitian) (hDiag : Matrix.IsDiag H) :
(∃ h : EnergyBasis n d → ℝ, H = Matrix.diagonal (fun x => (h x : ℂ))) ∧
∃ c : (Fin n → Option (Fin (d-1))) → ℝ,
H = (Matrix.trace H / (d : ℂ)^n) • (1 : EMat n d) +
∑ a ∈ Finset.univ.filter (fun a => ∃ j, a j ≠ none),
(c a : ℂ) • energyDiagonalMonomial n d a := by sorry
end QAlgorithms.Papers.Independent.Extend50.P14
end
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
For every pair of natural numbers and every Hermitian diagonal complex matrix on , there exists a real-valued function on such that , and there exists a real coefficient function on all assignments that give each site either no index or an index , such that
Here is diagonal, with , where and, for an assigned index , is at , at , and otherwise. All real scalars in the matrix identity are regarded as complex scalars, and the sum ranges over every assignment with at least one assigned index. Neither nor is asserted to be unique. The case is included: the displayed sum is empty and the data space is one-dimensional.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.