Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 8.2 — Heisenberg uncertainty principle Δ_ψ(A)Δ_ψ(B) ≥ ½|𝔼_ψ([A,B])|

Proved
TeschlQM.Algebraic.heisenberg

by mikedeng1 · Sep 29, 2026 · Mathlib 0df444a (Lean v4.33.1)

functional-analysismathematical-physicsp2o-batch-books5p2o-gran-per-chapterp2o-plan-bookp2o-v1quantum-mechanics

Let AAA and BBB be symmetric operators in a complex Hilbert space H\mathfrak HH, and let ψ\psiψ be a state (∥ψ∥=1\|\psi\| = 1∥ψ∥=1) with ψ∈D(AB)∩D(BA)\psi \in \mathfrak D(AB) \cap \mathfrak D(BA)ψ∈D(AB)∩D(BA), i.e. ψ∈D(A)∩D(B)\psi \in \mathfrak D(A) \cap \mathfrak D(B)ψ∈D(A)∩D(B), Bψ∈D(A)B\psi \in \mathfrak D(A)Bψ∈D(A) and Aψ∈D(B)A\psi \in \mathfrak D(B)Aψ∈D(B). With [A,B]ψ=ABψ−BAψ[A, B]\psi = AB\psi - BA\psi[A,B]ψ=ABψ−BAψ,

Δψ(A) Δψ(B)≥12∣Eψ([A,B])∣=12∣⟨ψ,ABψ−BAψ⟩∣.\Delta_\psi(A)\,\Delta_\psi(B) \ge \frac12 \big|\mathbb E_\psi([A, B])\big| = \frac12\big|\langle \psi, AB\psi - BA\psi\rangle\big|.Δψ​(A)Δψ​(B)≥21​​Eψ​([A,B])​=21​​⟨ψ,ABψ−BAψ⟩​.

Equality holds if (B−Eψ(B))ψ=iλ(A−Eψ(A))ψ(B - \mathbb E_\psi(B))\psi = i\lambda (A - \mathbb E_\psi(A))\psi(B−Eψ​(B))ψ=iλ(A−Eψ​(A))ψ for some λ∈R∖{0}\lambda \in \mathbb R \setminus \{0\}λ∈R∖{0}, or if ψ\psiψ is an eigenvector of AAA or of BBB.

For position and momentum this gives Δψ(pj)Δψ(xk)≥δjk/2\Delta_\psi(p_j)\Delta_\psi(x_k) \ge \delta_{jk}/2Δψ​(pj​)Δψ​(xk​)≥δjk​/2.

Formalization Note. Eψ(A)=⟨ψ,Aψ⟩\mathbb E_\psi(A) = \langle\psi, A\psi\rangleEψ​(A)=⟨ψ,Aψ⟩ and Δψ(A)=∥Aψ−Eψ(A)ψ∥\Delta_\psi(A) = \|A\psi - \mathbb E_\psi(A)\psi\|Δψ​(A)=∥Aψ−Eψ​(A)ψ∥ are Teschl's (2.5)–(2.6), which presuppose a state; the hypothesis ∥ψ∥=1\|\psi\| = 1∥ψ∥=1 is added explicitly (without it the inequality fails by scaling). The equality clause is an implication, as in the book, not an equivalence.

Preamble
import Mathlib
import Definitions.Def_TeschlQM_Shared_IsSymmetric
import Definitions.Def_TeschlQM_Algebraic_expectation
Formal statement
namespace TeschlQM.Algebraic

open scoped InnerProductSpace

/-- Teschl, Theorem 8.2 (Heisenberg Uncertainty Principle), p. 174. For symmetric `A`, `B` and a
state `ψ ∈ 𝔇(AB) ∩ 𝔇(BA)` (`‖ψ‖ = 1`),
`Δ_ψ(A) Δ_ψ(B) ≥ ½ |𝔼_ψ([A, B])|` with `[A, B]ψ = ABψ − BAψ` (8.10), and equality holds if
`(B − 𝔼_ψ(B))ψ = iλ(A − 𝔼_ψ(A))ψ` for some real `λ ≠ 0` (8.11), or if `ψ` is an eigenstate of `A`
or of `B`. -/
theorem heisenberg {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H]
    [CompleteSpace H] (A B : H →ₗ.[ℂ] H) (hA : TeschlQM.Shared.IsSymmetric A) (hB : TeschlQM.Shared.IsSymmetric B)
    (ψ : H) (hψ : ‖ψ‖ = 1) (hψA : ψ ∈ A.domain) (hψB : ψ ∈ B.domain)
    (hAB : B ⟨ψ, hψB⟩ ∈ A.domain) (hBA : A ⟨ψ, hψA⟩ ∈ B.domain) :
    deviation A ⟨ψ, hψA⟩ * deviation B ⟨ψ, hψB⟩ ≥
        1 / 2 * ‖⟪ψ, A ⟨B ⟨ψ, hψB⟩, hAB⟩ - B ⟨A ⟨ψ, hψA⟩, hBA⟩⟫_ℂ‖ ∧
      ((∃ lam : ℝ, lam ≠ 0 ∧
          B ⟨ψ, hψB⟩ - expectation B ⟨ψ, hψB⟩ • ψ =
            (Complex.I * lam) • (A ⟨ψ, hψA⟩ - expectation A ⟨ψ, hψA⟩ • ψ)) ∨
        (∃ a : ℂ, A ⟨ψ, hψA⟩ = a • ψ) ∨ (∃ b : ℂ, B ⟨ψ, hψB⟩ = b • ψ) →
        deviation A ⟨ψ, hψA⟩ * deviation B ⟨ψ, hψB⟩ =
          1 / 2 * ‖⟪ψ, A ⟨B ⟨ψ, hψB⟩, hAB⟩ - B ⟨A ⟨ψ, hψA⟩, hBA⟩⟫_ℂ‖) := by sorry

end TeschlQM.Algebraic
Source
Teschl, Mathematical Methods in Quantum Mechanics, AMS GSM 99, 2009, p. 174, Theorem 8.2
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

Imported objects. These come from imported files whose code is not reproduced here and are not unfolded:

  • a predicate "symmetric" on partially defined operators;
  • two quantities written Eψ(⋅)\mathbb E_\psi(\cdot)Eψ​(⋅) ("expectation", complex-valued) and Δψ(⋅)\Delta_\psi(\cdot)Δψ​(⋅) ("deviation", real-valued). Each takes an operator and a vector in its domain.

Setting. H\mathcal HH is a complex Hilbert space: a complete inner product space whose inner product is conjugate-linear in the first slot.

Hypotheses.

  • AAA and BBB are partially defined C\mathbb CC-linear operators on H\mathcal HH, and both satisfy the imported "symmetric" predicate.
  • ψ∈H\psi\in\mathcal Hψ∈H has ∥ψ∥=1\|\psi\|=1∥ψ∥=1.
  • ψ∈D(A)\psi\in\mathfrak D(A)ψ∈D(A) and ψ∈D(B)\psi\in\mathfrak D(B)ψ∈D(B).
  • Bψ∈D(A)B\psi\in\mathfrak D(A)Bψ∈D(A) and Aψ∈D(B)A\psi\in\mathfrak D(B)Aψ∈D(B).

Statement. Two claims hold.

  1. The uncertainty inequality:
Δψ(A) Δψ(B)  ≥  12 ∣⟨ψ, A(Bψ)−B(Aψ)⟩∣.\Delta_\psi(A)\,\Delta_\psi(B)\;\ge\;\tfrac12\,\bigl|\langle\psi,\ A(B\psi)-B(A\psi)\rangle\bigr| .Δψ​(A)Δψ​(B)≥21​​⟨ψ, A(Bψ)−B(Aψ)⟩​.

Here ∣⋅∣|\cdot|∣⋅∣ is the complex modulus. 2. If at least one of the following holds:

  • (a) there is a real λ≠0\lambda\neq0λ=0 with Bψ−Eψ(B) ψ=iλ (Aψ−Eψ(A) ψ)B\psi-\mathbb E_\psi(B)\,\psi = i\lambda\,\bigl(A\psi-\mathbb E_\psi(A)\,\psi\bigr)Bψ−Eψ​(B)ψ=iλ(Aψ−Eψ​(A)ψ);
  • (b) Aψ=aψA\psi=a\psiAψ=aψ for some complex aaa;
  • (c) Bψ=bψB\psi=b\psiBψ=bψ for some complex bbb;

then equality holds:

Δψ(A) Δψ(B)=12∣⟨ψ, A(Bψ)−B(Aψ)⟩∣.\Delta_\psi(A)\,\Delta_\psi(B)=\tfrac12\bigl|\langle\psi,\ A(B\psi)-B(A\psi)\rangle\bigr| .Δψ​(A)Δψ​(B)=21​​⟨ψ, A(Bψ)−B(Aψ)⟩​.

Degenerate cases.

  • The condition ∥ψ∥=1\|\psi\|=1∥ψ∥=1 excludes ψ=0\psi=0ψ=0 and the trivial space H={0}\mathcal H=\{0\}H={0}. With that exception, the hypotheses on ψ\psiψ are satisfiable whenever the domains allow.
  • In (b) and (c) the eigenvalues a,ba,ba,b may be any complex numbers, not only real ones.
  • In (a), λ\lambdaλ must be real and nonzero.
  • All other content depends on the unshown definitions of "symmetric", Eψ\mathbb E_\psiEψ​ and Δψ\Delta_\psiΔψ​.
Human review
  • Endorsed by Shuze Chen · Oct 2, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 2, 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