xx_total_threshold
For an open XX spin chain of length n at inverse temperature beta > 0, xx_total_threshold n beta is the infimum of couplings g > 0 such that the total ergotropy of the thermal state rho_n(beta, g) with respect to the bare Hamiltonian H_0 = sum_i Z_i is strictly positive.
Statement
noncomputable def xx_total_threshold (n : ℕ) (β : ℝ) : ℝ
- Defined in
- arXiv:2611.05010, Yang et al., "Ergotropy Activation and Coherence in Dissipatively Charged Quantum Batteries", Section VI
- Verified
- 18 Nov 2026
- Axioms
- none listed
- Built on 1
- xx_interaction_hamiltonianThe interaction Hamiltonian V of an open XX spin chain of length n is the sum of nearest-neighbor flip-flop exchange terms, acting on…
Read back from the Lean
xx_total_threshold n β is a real-valued definition taking a natural number n (the system size) and a real number β (the inverse temperature).
It defines the threshold coupling strength as the infimum (in ℝ) of all positive coupling constants g > 0 such that the ergotropy W (rho g) is strictly positive:
sInf { g : ℝ | 0 < g ∧ 0 < W (rho g) }
where:
1. The state space is indexed by bitstrings s : Fin n → Bool (dimension 2ⁿ).
2. H0 is the diagonal matrix whose entry at (s, s) is ∑ i : Fin n, (if s i then 1 else -1) : ℂ.
3. H(g) = H0 + (g : ℂ) • xx_interaction_hamiltonian n.
4. rho g is the normalized thermal state (Matrix.trace expH)⁻¹ • expH, where expH = NormedSpace.exp ((-β : ℂ) • H(g)) is the matrix exponential with respect to the ℓ^∞ operator norm.
5. W σ is the ergotropy of matrix σ with respect to H0, defined as:
Re(Tr(H0 * σ)) - sInf { Re(Tr(H0 * (U * σ * Uᴴ))) | U ∈ Matrix.unitaryGroup (Fin n → Bool) ℂ }.
Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.
Lean source view module on GitHub
/-- Total ergotropy activation threshold c_tot(n, beta) for an open XX spin chain of length n at inverse temperature beta. -/ noncomputable def xx_total_threshold (n : ℕ) (β : ℝ) : ℝ := letI : NormedRing (Matrix (Fin n → Bool) (Fin n → Bool) ℂ) := Matrix.linftyOpNormedRing let H0 : Matrix (Fin n → Bool) (Fin n → Bool) ℂ := Matrix.diagonal fun s => (∑ i : Fin n, if s i then (1 : ℂ) else (-1 : ℂ)) let W (σ : Matrix (Fin n → Bool) (Fin n → Bool) ℂ) : ℝ := (Matrix.trace (H0 * σ)).re - sInf { (Matrix.trace (H0 * (U * σ * star U))).re | (U : Matrix (Fin n → Bool) (Fin n → Bool) ℂ) (_ : U ∈ Matrix.unitaryGroup (Fin n → Bool) ℂ) } let rho (g : ℝ) : Matrix (Fin n → Bool) (Fin n → Bool) ℂ := let H : Matrix (Fin n → Bool) (Fin n → Bool) ℂ := H0 + (g : ℂ) • xx_interaction_hamiltonian n let expH := NormedSpace.exp ((-β : ℂ) • H) (Matrix.trace expH)⁻¹ • expH sInf { g : ℝ | 0 < g ∧ 0 < W (rho g) }