eq41 43
OpenQAlgorithms.Papers.Independent.Support50.P15.eq41to43Let be Hermitian in positive finite dimension, , and a full-rank density matrix. Set and . For finite isothermal equilibration processes with fixed initial and final Hamiltonian , compute heat and extracted work . Then
This supremum is approached within every positive tolerance by actual finite equilibration processes. For any final state and heat , the corresponding work obeys . Free energy is uniquely minimized at . This records approachable reversible work, without claiming a finite-process maximum.
import Definitions.Def_QAlgorithms_Papers_Independent_Support50_P15
noncomputable section
attribute [local instance] Classical.propDecidable
open scoped Matrix ComplexConjugate ENNReal Matrix.Norms.L2Operator
open Filter MeasureTheory
namespace QAlgorithms.Papers.Independent.Support50.P15
open QAlgorithms.Papers.Independent.Information100.P56 (entropy)
/-- Eqs. (41)--(43), PDF p.13. The process optimum is a supremum, approached to any epsilon;
work is computed from actual heat and the fixed-H internal energy change. -/
theorem eq41to43 {d : ℕ} (hd : 0 < d) (h : Matrix (Fin d) (Fin d) ℂ)
(hh : h.IsHermitian) (t : ℝ) (ht : 0 < t) (a : EntropyState d) (ha : fullRank a.val) :
∃ hb : IsDensityMatrix (thermalFinite h t),
let b : EntropyState d := ⟨thermalFinite h t, hb⟩
let w := availableWork h t a
((t : EReal) * stateRelativeNats a b = (w : EReal)) ∧
w = -(h * (b.val - a.val)).trace.re + t * difference b.val a.val ∧
IsLUB {v | ∃ p : Process d, isIsothermal p h t a ∧ v = extractedWork p h} w ∧
(∀ e > 0, ∃ p : Process d, isIsothermal p h t a ∧ w - e < extractedWork p h ∧ extractedWork p h ≤ w) ∧
(∀ (r : EntropyState d) (q : ℝ), q ≤ t * difference r.val a.val →
let w' := q - (h * (r.val - a.val)).trace.re
w' ≤ helmholtzFreeEnergy h a.val t - helmholtzFreeEnergy h r.val t ∧
((helmholtzFreeEnergy h a.val t - helmholtzFreeEnergy h r.val t : ℝ) : EReal) =
(t : EReal) * stateRelativeNats a b - (t : EReal) * stateRelativeNats r b ∧ w' ≤ w) ∧
(∀ r : EntropyState d, helmholtzFreeEnergy h b.val t ≤ helmholtzFreeEnergy h r.val t ∧
(helmholtzFreeEnergy h r.val t = helmholtzFreeEnergy h b.val t ↔ r = b)) := by sorry
end QAlgorithms.Papers.Independent.Support50.P15
end
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
Let be any positive natural number, including , let be a Hermitian complex matrix, let , and let be a positive semidefinite matrix of trace with . For a density matrix , write , with the logarithm interpreted by spectral functional calculus and , and put . Define as an extended real number: it is if , and otherwise it is , where the functional-calculus logarithm takes value at eigenvalue . The assertion is that is a density matrix and, writing , all the following hold:
Here and below, identities involving are identities in the extended reals, with real quantities embedded there. A process consists of a positive integer , density matrices , and matrices ; the processes considered satisfy , every has zero kernel, every is Hermitian, , and . Its extracted work is
The number is the least upper bound of all such extracted works, and for every real some such process satisfies . Moreover, for every density matrix , without a full-rank assumption, and every real , the number satisfies
Finally, every density matrix satisfies , with equality if and only if .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.