Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Internal energy is unique up to an additive constant

Proved
FirstLawThermo.isInternalEnergy_unique_up_to_const

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

first-lawinternal-energythermodynamics

Let P\mathcal PP be a set of processes of a closed system with state set σ\sigmaσ, and let O∈σO\in\sigmaO∈σ be a reference state such that every state AAA is linked to OOO by an adiabatic process in P\mathcal PP, going either from OOO to AAA or from AAA to OOO. If UUU and U′U'U′ are both internal energies for P\mathcal PP, then there is a constant c∈Rc\in\mathbb Rc∈R with

U′(A)=U(A)+cfor every state A.U'(A)=U(A)+c\qquad\text{for every state }A.U′(A)=U(A)+cfor every state A.

Together with the previous milestone this says that internal energy is determined exactly up to an additive constant. It is "customarily stated relative to a conventionally chosen standard reference state of the system".

Formalization Note Only one direction of adiabatic accessibility is required for each state, in line with Münster's remark (quoted in the article) that it is not always possible to reach any state from any other by an adiabatic process.

Preamble
import Definitions.Def_FirstLawThermo_Defs
import Mathlib

open FirstLawThermo
Formal statement
theorem FirstLawThermo.isInternalEnergy_unique_up_to_const {σ : Type*}
    (procs : Set (Process σ)) (O : σ) (hlink : AdiabaticallyLinkedTo procs O)
    (U U' : σ → ℝ) (hU : IsInternalEnergy procs U) (hU' : IsInternalEnergy procs U') :
    ∃ c : ℝ, ∀ A : σ, U' A = U A + c := by sorry
Source
Wikipedia, "First law of thermodynamics", revision oldid=1366986255, https://en.wikipedia.org/w/index.php?title=First_law_of_thermodynamics&oldid=1366986255; Section "Original statements: the thermodynamic approach": "It is defined only up to an arbitrary additive constant of integration ... The internal energy is customarily stated relative to a conventionally chosen standard reference state of the system."; Section "Evidence ...", subsection "Adiabatic processes" (adiabatic work from a reference state OOO to an arbitrary state AAA, or from AAA to OOO); Section "Various statements of the law for closed systems" (Münster 1970: not every state is adiabatically accessible from every other).
Read-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 σ\sigmaσ, an arbitrary set P\mathcal PP of processes on σ\sigmaσ and a point O∈σO\in\sigmaO∈σ, assume that for every A∈σA\in\sigmaA∈σ there is a p∈Pp\in\mathcal Pp∈P whose adiabatic proposition holds and which goes from OOO to AAA or from AAA to OOO (start/finish equal to these states). Let U,U′:σ→RU,U':\sigma\to\mathbb RU,U′:σ→R both satisfy V(pfinish)−V(pstart)=−W(p)V(p_{\mathrm{finish}})-V(p_{\mathrm{start}})=-W(p)V(pfinish​)−V(pstart​)=−W(p) for every p∈Pp\in\mathcal Pp∈P whose adiabatic proposition holds (V=UV=UV=U and V=U′V=U'V=U′). Then there exists a real ccc such that

U′(A)=U(A)+cfor all A∈σ.U'(A)=U(A)+c\quad\text{for all }A\in\sigma.U′(A)=U(A)+cfor all A∈σ.

No composition, null-process or path-independence assumption is made.

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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me