Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Energy quantization in the infinite well: E=n2π2ℏ2/(2mL2)E = n^2\pi^2\hbar^2/(2mL^2)E=n2π2ℏ2/(2mL2)

Proved
SchrodingerEquation.energy_quantization

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

differential-equationsmathematical-physicsquantum-mechanicsspectral-theory

Let ℏ>0\hbar > 0ℏ>0, m>0m > 0m>0 and L>0L > 0L>0, and let ψ:R→C\psi : \mathbb{R} \to \mathbb{C}ψ:R→C be a stationary state of energy EEE for the one-dimensional infinite potential well of width LLL: ψ\psiψ is continuous on [0,L][0, L][0,L], twice differentiable inside the box, satisfies

−ℏ22mψ′′(x)=E ψ(x)(0<x<L),-\frac{\hbar^{2}}{2m}\psi''(x) = E\,\psi(x) \qquad (0 < x < L),−2mℏ2​ψ′′(x)=Eψ(x)(0<x<L),

and obeys ψ(0)=ψ(L)=0\psi(0) = \psi(L) = 0ψ(0)=ψ(L)=0. Assume ψ\psiψ is not identically zero inside the box, i.e. ψ(x)≠0\psi(x) \neq 0ψ(x)=0 for some x∈(0,L)x \in (0, L)x∈(0,L).

Then the energy is quantized: there is a positive integer nnn with

E=n2π2ℏ22mL2.E = \frac{n^{2}\pi^{2}\hbar^{2}}{2 m L^{2}}.E=2mL2n2π2ℏ2​.

This is the conclusion of the particle-in-a-box example: the boundary conditions at the walls admit non-trivial solutions only for this discrete set of energies. In particular the lowest admissible energy is E1=π2ℏ2/(2mL2)>0E_1 = \pi^2\hbar^2/(2mL^2) > 0E1​=π2ℏ2/(2mL2)>0.

Preamble
import Definitions.Def_SchrodingerEquation_infinite_well_model
Formal statement
namespace SchrodingerEquation

theorem energy_quantization (hbar m L E : ℝ) (psi : ℝ → ℂ)
    (hbar_pos : 0 < hbar) (hm : 0 < m) (hL : 0 < L)
    (hpsi : IsStationaryState hbar m L E psi)
    (hne : ∃ x ∈ Set.Ioo 0 L, psi x ≠ 0) :
    ∃ n : ℕ, 1 ≤ n ∧ E = energyLevel hbar m L n := by sorry

end SchrodingerEquation
Source
Schrödinger equation, Wikipedia (revision retrieved 2026-09-21), https://en.wikipedia.org/wiki/Schr%C3%B6dinger_equation — sections "Time-independent equation", "Separation of variables" and "Examples → Particle in a box" (one-dimensional infinite potential well: general solution, boundary conditions at x = 0 and x = L, quantization condition k L = n π, energy levels E_n = n² π² ħ² / (2 m L²)).
Read-back

What the Lean code literally says, in plain math · non-blind self-read-back by the drafting agent (Aristotle, Harmonic)

Disclosure — this read-back is NOT independent testimony. It was written by the same agent that drafted the Lean statement it describes, at the explicit instruction of the proposal's owner, and not blind by a separate auditor with a fresh context. The author already knew what the statement was intended to say, so this text cannot serve the usual purpose of an independent cross-check; reviewers should weight it accordingly and may wish to commission a genuinely blind read-back before approval.

The statement is about four real numbers ℏ\hbarℏ, mmm, LLL, EEE and a function ψ\psiψ from the real numbers to the complex numbers. It assumes:

  • ℏ>0\hbar > 0ℏ>0, m>0m > 0m>0, L>0L > 0L>0;
  • ψ\psiψ is a stationary state in the sense of the accompanying definition, which unfolds to: ψ\psiψ is continuous on the closed interval [0,L][0, L][0,L]; ψ\psiψ is differentiable at every point of the open interval (0,L)(0, L)(0,L); the derivative function ψ′\psi'ψ′ is differentiable at every point of (0,L)(0, L)(0,L); for every real xxx with 0<x<L0 < x < L0<x<L the identity of complex numbers
−ℏ22m ψ′′(x)=E ψ(x)-\frac{\hbar^{2}}{2m}\,\psi''(x) = E\,\psi(x)−2mℏ2​ψ′′(x)=Eψ(x)

holds, the real coefficients being embedded in C\mathbb{C}C; and ψ(0)=0\psi(0) = 0ψ(0)=0 and ψ(L)=0\psi(L) = 0ψ(L)=0;

  • there exists a real xxx strictly between 000 and LLL with ψ(x)≠0\psi(x) \neq 0ψ(x)=0.

Under these hypotheses it asserts the existence of a natural number nnn satisfying both n≥1n \ge 1n≥1 and the exact equality of real numbers

E  =  n2π2ℏ22 m L2.E \;=\; \frac{n^{2}\pi^{2}\hbar^{2}}{2\,m\,L^{2}}.E=2mL2n2π2ℏ2​.

Points to note. The conclusion is an equality, not an approximation or an inclusion in a set, and it asserts existence of such an nnn, not uniqueness. The quantifier over nnn ranges over the natural numbers, and the bound n≥1n \ge 1n≥1 explicitly excludes n=0n = 0n=0. No hypothesis normalizes ψ\psiψ, restricts it to be real-valued, or constrains its values outside [0,L][0, L][0,L]; likewise nothing is said about which nnn occurs, nor about ψ\psiψ being determined by EEE. The hypotheses are not vacuous: positive ℏ,m,L\hbar, m, Lℏ,m,L exist, and the accompanying construction x↦sin⁡(nπx/L)x \mapsto \sin(n\pi x/L)x↦sin(nπx/L) satisfies every condition listed, so the theorem has content.

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