Equivalence of the Clausius and the Kelvin statements
ProvedSecondLawThermo.clausius_iff_kelvinThroughout, is a type of empirical temperatures carrying a linear order ( means the reservoir at is colder than the one at ), and a cycle is a finitely supported function : for each reservoir temperature , the number is the net heat absorbed by the device from the reservoir at in one complete cycle (negative when heat is rejected to it), and only finitely many reservoirs are touched. The work delivered in the cycle is
which is the first law for a device returning to its initial state. A set of cycles stands for the physically realizable ones; it is assumed to be a convex cone: , (run two devices side by side), and for (scale a device). A cycle is reversible when and . A cycle operates between and when for every . A Carnot engine between a hot reservoir and a cold reservoir is a reversible cycle operating between and with , and . The efficiency relative to the hot reservoir is .
Statement. Let have at least two elements and let be a convex cone of realizable cycles admitting a Carnot engine between every pair of reservoirs at different temperatures. Then
This is the article's assertion that the two classical statements of the second law — Clausius's "heat can never pass from a colder to a warmer body without some other change" and Kelvin's "it is impossible for any system to operate in a thermodynamic cycle and deliver a net amount of energy by work to its surroundings while receiving energy by heat transfer from a single thermal reservoir" — say the same thing.
import Definitions.Def_SecondLawThermo_Defs import Mathlib
namespace SecondLawThermo
theorem clausius_iff_kelvin {Θ : Type*} [LinearOrder Θ] [Nontrivial Θ] (𝒞 : Set (Cycle Θ))
(h𝒞 : IsCycleCone 𝒞) (hCarnot : CarnotEnginesExist 𝒞) :
ClausiusStatement 𝒞 ↔ KelvinStatement 𝒞 := by sorry
end SecondLawThermoRead-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.
Let be a linearly ordered type with at least two distinct elements and let be a set of finitely supported functions , with . Assume , that is closed under addition and under scaling by nonnegative reals, and that for all there is with , , vanishing outside , , and . Then the following two assertions are equivalent:
- for all and all vanishing outside with : ;
- for all and all vanishing at every : .
The statement is an equivalence of the two assertions under the standing assumptions, not an unconditional equivalence.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.