Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Quantum probability current: ∇⋅j+∂t∣Ψ∣2=0\nabla\cdot\mathbf j+\partial_t|\Psi|^2=0∇⋅j+∂t​∣Ψ∣2=0 from the Schrödinger equation

Proved
ContinuityEqWiki.probability_continuity_of_schrodinger

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

continuity-equationmathematical-physics

Let ℏ>0\hbar>0ℏ>0 and m>0m>0m>0, let U:R×R3→RU:\mathbb R\times\mathbb R^3\to\mathbb RU:R×R3→R be a real potential, and let Ψ:R×R3→C\Psi:\mathbb R\times\mathbb R^3\to\mathbb CΨ:R×R3→C be a wavefunction of class C2C^2C2 jointly in (t,r)(t,\mathbf r)(t,r) that solves the time-dependent Schrödinger equation

−ℏ22m∇2Ψ+UΨ=iℏ∂Ψ∂t.-\frac{\hbar^2}{2m}\nabla^2\Psi+U\Psi=i\hbar\frac{\partial\Psi}{\partial t}.−2mℏ2​∇2Ψ+UΨ=iℏ∂t∂Ψ​.

With the probability density ρ=Ψ∗Ψ=∣Ψ∣2\rho=\Psi^*\Psi=|\Psi|^2ρ=Ψ∗Ψ=∣Ψ∣2 and the probability current

j=ℏ2mi[Ψ∗(∇Ψ)−Ψ(∇Ψ∗)],\mathbf j=\frac{\hbar}{2mi}\big[\Psi^*(\nabla\Psi)-\Psi(\nabla\Psi^*)\big],j=2miℏ​[Ψ∗(∇Ψ)−Ψ(∇Ψ∗)],

the continuity equation holds everywhere:

∇⋅j+∂ρ∂t=0.\nabla\cdot\mathbf j+\frac{\partial\rho}{\partial t}=0 .∇⋅j+∂t∂ρ​=0.

This expresses local conservation of probability in quantum mechanics.

Preamble
import Mathlib
import Definitions.Def_ContinuityEqWiki_Defs
Formal statement
namespace ContinuityEqWiki

theorem probability_continuity_of_schrodinger (hbar m : ℝ) (hhbar : 0 < hbar) (hm : 0 < m)
    (U : ℝ → Space → ℝ) (Ψ : ℝ → Space → ℂ) (hΨ : ContDiff ℝ 2 (Function.uncurry Ψ))
    (hS : SchrodingerEq hbar m U Ψ) :
    ∀ t x, div (probCurrent hbar m Ψ t) x + timeDeriv (probDensity Ψ) t x = 0 := by sorry

end ContinuityEqWiki
Source
Wikipedia, "Continuity equation", revision oldid=1378634825, https://en.wikipedia.org/w/index.php?title=Continuity_equation&oldid=1378634825, section "Quantum mechanics", including the box "Consistency with Schrödinger equation"
Read-back

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

Non-blind read-back — not independent testimony. This read-back was written by the same agent (Aristotle, by Harmonic) that drafted the Lean statement it describes, at the explicit request of the proposal owner. Its author knew the source text and the intended meaning while writing it, so it must not be mistaken for a blind, independent audit. Reviewers should compare the Lean code against the source themselves.

Let ℏ,m\hbar,mℏ,m be real numbers with ℏ>0\hbar>0ℏ>0 and m>0m>0m>0, let U:R×R3→RU:\mathbb R\times\mathbb R^3\to\mathbb RU:R×R3→R be arbitrary (no regularity assumed), and let Ψ:R×R3→C\Psi:\mathbb R\times\mathbb R^3\to\mathbb CΨ:R×R3→C be C2C^2C2 jointly in (t,x)(t,x)(t,x), where C\mathbb CC is viewed as a real normed space. Assume that for all t,xt,xt,x

−ℏ22m ∇2Ψ(t,⋅)(x)+U(t,x) Ψ(t,x)=iℏ ∂tΨ(t,x),-\frac{\hbar^2}{2m}\,\nabla^2\Psi(t,\cdot)(x)+U(t,x)\,\Psi(t,x)=i\hbar\,\partial_t\Psi(t,x),−2mℏ2​∇2Ψ(t,⋅)(x)+U(t,x)Ψ(t,x)=iℏ∂t​Ψ(t,x),

with ∇2=∑k=02∂k∂k\nabla^2=\sum_{k=0}^2\partial_k\partial_k∇2=∑k=02​∂k​∂k​ (real-direction partial derivatives of the complex-valued function). Define ρ(t,x)=∣Ψ(t,x)∣2\rho(t,x)=|\Psi(t,x)|^2ρ(t,x)=∣Ψ(t,x)∣2 and j(t,x)∈R3\mathbf j(t,x)\in\mathbb R^3j(t,x)∈R3 with

j(t,x)k=Re⁡[ℏ2mi(Ψ(t,x)‾ ∂kΨ(t,⋅)(x)−Ψ(t,x) ∂kΨ(t,⋅)‾(x))].\mathbf j(t,x)_k=\operatorname{Re}\left[\frac{\hbar}{2mi}\Big(\overline{\Psi(t,x)}\,\partial_k\Psi(t,\cdot)(x)-\Psi(t,x)\,\partial_k\overline{\Psi(t,\cdot)}(x)\Big)\right].j(t,x)k​=Re[2miℏ​(Ψ(t,x)​∂k​Ψ(t,⋅)(x)−Ψ(t,x)∂k​Ψ(t,⋅)​(x))].

Conclusion: for all t∈Rt\in\mathbb Rt∈R, x∈R3x\in\mathbb R^3x∈R3,

∑k=02∂k(j(t,⋅)k)(x)+∂tρ(t,x)=0.\sum_{k=0}^{2}\partial_k\big(\mathbf j(t,\cdot)_k\big)(x)+\partial_t\rho(t,x)=0 .k=0∑2​∂k​(j(t,⋅)k​)(x)+∂t​ρ(t,x)=0.

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