Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Reflexivity and Planck's form of the zeroth law give an equivalence relation

Proved
ZerothLawThermo.equivalence_of_refl_zerothLawPlanck

by Lucas · Oct 9, 2026 · Mathlib 0df444a (Lean v4.33.1)

equivalence-relationthermodynamicszeroth-law

Let SSS be a type of thermodynamic systems and TE\mathrm{TE}TE a binary relation on SSS. Assume

  1. TE(A,A)\mathrm{TE}(A,A)TE(A,A) for all A∈SA\in SA∈S;
  2. Planck's form of the zeroth law: if a body CCC is in thermal equilibrium with two bodies AAA and BBB, i.e. TE(C,A)\mathrm{TE}(C,A)TE(C,A) and TE(C,B)\mathrm{TE}(C,B)TE(C,B), then TE(A,B)\mathrm{TE}(A,B)TE(A,B).

Then TE\mathrm{TE}TE is an equivalence relation on SSS.

This shows that Planck's (left-Euclidean) formulation of the law serves the same purpose as the usual one.

Preamble
import Definitions.Def_ZerothLawThermo_Defs
import Mathlib

open ZerothLawThermo
Formal statement
theorem ZerothLawThermo.equivalence_of_refl_zerothLawPlanck {S : Type*} (TE : S → S → Prop)
    (hrefl : ∀ A : S, TE A A) (hzero : ZerothLawPlanck TE) :
    Equivalence TE := by sorry
Source
Wikipedia, "Zeroth law of thermodynamics", revision oldid=1328026962, https://en.wikipedia.org/w/index.php?title=Zeroth_law_of_thermodynamics&oldid=1328026962; Section "Equivalence relation": Planck's statement "If a body C, be in thermal equilibrium with two other bodies, A and B, then A and B are in thermal equilibrium with one another" (ref. 8), followed by "This statement asserts that thermal equilibrium is a left-Euclidean relation ... If we also define that every thermodynamic system is in thermal equilibrium with itself, then thermal equilibrium is also a reflexive relation. Binary relations that are both reflexive and Euclidean are equivalence relations."
Read-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 SSS (any universe, possibly empty) and an arbitrary binary relation TE\mathrm{TE}TE on SSS, assume:

  1. TE(A,A)\mathrm{TE}(A,A)TE(A,A) for every A∈SA\in SA∈S;
  2. ZerothLawPlanck TE, i.e. for all A,B,C∈SA,B,C\in SA,B,C∈S, TE(C,A)\mathrm{TE}(C,A)TE(C,A) and TE(C,B)\mathrm{TE}(C,B)TE(C,B) together imply TE(A,B)\mathrm{TE}(A,B)TE(A,B).

Conclusion: TE\mathrm{TE}TE is an equivalence relation (reflexive, symmetric and transitive, in the same sense as for the right-Euclidean milestone). The hypotheses are jointly satisfiable, e.g. by equality.

Human review
  • Endorsed by Shuze Chen · Oct 10, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Lucas · Oct 10, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me