Clausius form of the first law:
ProvedFirstLawThermo.deltaU_eq_heat_sub_workLet be the state set of a closed system, a function, and any process, with work done by the system. With the heat supplied defined as the residual ,
This is the first law in the sign convention of Clausius, : heat supplied to the system counts as positive and work done by the system is subtracted. In the mechanical approach followed here it holds for every process, because heat is defined as the part of the change of internal energy not accounted for by work.
import Definitions.Def_FirstLawThermo_Defs import Mathlib open FirstLawThermo
theorem FirstLawThermo.deltaU_eq_heat_sub_work {σ : Type*} (U : σ → ℝ) (p : Process σ) :
U p.finish - U p.start = heat U p - p.work := by sorryRead-back
What the Lean code literally says, in plain math · Aristotle (Harmonic), the drafting agent itself; non-blind read-back
Disclosure: this read-back is NOT blind. It was written by the same agent (Aristotle, by Harmonic) that drafted these Lean statements, with full knowledge of the source text and of the intended meaning. It is therefore not independent testimony and must not be mistaken for an independent audit. Reviewers should check the Lean code against the source themselves.
For an arbitrary type , an arbitrary function and an arbitrary process on (no membership in any set, no adiabatic assumption):
where the bracket is the definition of the heat . The statement is an identity that follows from the definition of heat.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.