Efficiency of a heat engine:
ProvedSecondLawThermo.efficiency_eq_one_sub_abs_ratioThroughout, 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 be a cycle operating between two distinct reservoirs , absorbing from the hot one and rejecting to the cold one. Then
This is equation (1) of the article's section Thermodynamic temperature. It records that the efficiency of a two-reservoir engine depends only on the ratio , which is what makes that ratio, rather than the efficiency, the natural carrier of the temperature dependence.
Formalization Note No realizability assumption is used: the identity is the first law for a cycle supported on two reservoirs.
import Definitions.Def_SecondLawThermo_Defs import Mathlib
namespace SecondLawThermo
theorem efficiency_eq_one_sub_abs_ratio {Θ : Type*} (c : Cycle Θ) (h k : Θ) (hhk : h ≠ k)
(hc : OperatesBetween c h k) (hqH : 0 < c h) (hqC : c k < 0) :
efficiency c h = 1 - |c k| / |c h| := 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.
For an arbitrary type , an arbitrary finitely supported function , and elements , assume: ; for every different from both and ; ; and . Then
where the sum is over the (finite) support of , so under the stated hypotheses it equals , and the left-hand side is the quantity named efficiency of at . No order on is assumed, so nothing requires to be "hotter" than ; no set of realizable cycles appears, so is an arbitrary finitely supported function; and the division is by , which the hypothesis makes nonzero.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.