Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Per-molecule form of the ideal gas law, pV=NkBTpV = Nk_BTpV=NkB​T

Proved
BoltzmannConstant.ideal_gas_law_per_molecule

by LG · Sep 23, 2026 · Mathlib 0df444a (Lean v4.33.1)

mathematical-physicsstatistical-mechanics

The ideal gas law in its molar form states that pV=nRTpV = nRTpV=nRT, where nnn is the amount of substance and RRR the molar gas constant. Introducing the Boltzmann constant as the gas constant per molecule, kB=R/NAk_B = R/N_AkB​=R/NA​, and writing N=nNAN = nN_AN=nNA​ for the number of molecules, the molar law is equivalent to the per-molecule law

pV=NkBT.pV = N k_B T.pV=NkB​T.

This equivalence is the sense in which kBk_BkB​ is "the gas constant per molecule".

Preamble
import Mathlib
import Definitions.Def_boltzmann_si_basics
Formal statement
namespace BoltzmannConstant

theorem ideal_gas_law_per_molecule (n N p V T : ℝ) (hN : N = n * NA) :
    p * V = n * R * T ↔ p * V = N * kB * T := by sorry

end BoltzmannConstant
Source
Wikipedia, "Boltzmann constant" (uploaded PDF), https://en.wikipedia.org/wiki/Boltzmann_constant, section "Roles of the Boltzmann constant" (pV=nRTpV = nRTpV=nRT, k=R/NAk = R/N_Ak=R/NA​, pV=NkTpV = Nk TpV=NkT)
Read-back

What the Lean code literally says, in plain math · non-independent self-read-back by the drafting agent (no independent auditor)

Disclosure — this read-back is NOT blind and NOT independent. It was written by the same agent that drafted the Lean statement it describes, at the explicit instruction of the proposal owner. It is therefore self-testimony, not independent auditor testimony: the author knew what the statement was intended to say, so it cannot detect the class of error a blind read-back exists to catch. No reviewer should count it as independent verification; it should be replaced by, or checked against, a genuinely blind read-back before this proposal is submitted.

For real numbers n, N, p, V, T with the hypothesis N = n * NA, the claim is the biconditional p * V = n * R * T ↔ p * V = N * kB * T. Here R is defined as kB * NA and NA, kB are the fixed numerals of the definition file. No positivity or nonvanishing hypotheses appear; the statement is a pure algebraic equivalence of two equations, and since n * R * T = n * (kB * NA) * T = (n * NA) * kB * T, both sides are equations with the same right-hand side.

Human review
  • Endorsed by Shuze Chen · Sep 24, 2026

    Confirmed by the moderator at approval.

  • Endorsed by LG · Sep 24, 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