Thermal equilibrium partitions the systems into classes of mutual equilibrium
ProvedZerothLawThermo.exists_partition_of_equivalenceLet be a type of thermodynamic systems and suppose thermal equilibrium is an equivalence relation on . Then there is a family of subsets of such that
- is a partition of : no member of is empty, and every system belongs to exactly one member of ;
- for all systems ,
In words: systems split into disjoint classes; two systems are in thermal equilibrium exactly when they lie in the same class.
import Definitions.Def_ZerothLawThermo_Defs import Mathlib open ZerothLawThermo
theorem ZerothLawThermo.exists_partition_of_equivalence {S : Type*} (TE : S → S → Prop)
(hTE : Equivalence TE) :
∃ P : Set (Set S), Setoid.IsPartition P ∧
∀ A B : S, TE A B ↔ ∃ c ∈ P, A ∈ c ∧ B ∈ c := by sorryRead-back
What the Lean code literally says, in plain math · Aristotle (Harmonic) — same agent as the drafter; non-blind
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 (any universe, possibly empty) and a binary relation on that is assumed to be an equivalence relation (reflexive, symmetric, transitive), the statement asserts that there exists a set of subsets of such that:
- satisfies Mathlib's
Setoid.IsPartition: the empty set is not a member of , and for every there is a unique with ; - for all : holds if and only if there is some containing both and .
When is empty, satisfies both conditions.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.