Imports
/- Copyright (c) 2026 Axiomatic-AI. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Matteo Cipollina -/ module public import Physlib.QuantumMechanics.Operators.Covariance

Uncertainty bounds for partial linear maps

i. Overview

In this module we prove abstract Robertson and Robertson–Schrödinger uncertainty bounds for symmetric partial linear maps on a complex inner product space. The statements are independent of any concrete position or momentum operator.

The centered-commutator results use only the domain assumptions needed to form the centered vectors. The raw-commutator results add the second-order domain hypotheses required to apply A to and B to .

ii. Key results

    inner_im_of_commutator_eq : an anti-Hermitian commutator identity fixes the imaginary part of an inner product.

    centeredCommutatorExpectation : the scalar commutator of the centered vectors.

    rawCommutatorExpectation : the expectation of the raw commutator on a state.

    inner_centered_commutator_of_raw_commutator : a raw commutator expectation gives the centered commutator expectation.

    state_uncertainty_squared_of_centered_commutator : the Robertson squared bound from a centered commutator identity.

    state_uncertainty_squared_with_covariance_of_centered_commutator : the strengthened Robertson–Schrödinger bound.

    state_uncertainty_of_centered_commutator : the standard-deviation form of the bound.

    state_uncertainty_squared_of_raw_commutator, state_uncertainty_squared_with_covariance_of_raw_commutator, and state_uncertainty_of_raw_commutator : variants using a raw commutator expectation.

iii. Table of contents

    A. Inner product lemmas

    B. Centered commutator bounds

    C. Raw commutator bounds

iv. References

    [H. P. Robertson, The Uncertainty Principle (1929)][robertson1929uncertainty].

    [E. Schrodinger, Zum Heisenbergschen Unscharfeprinzip (1930)][schrodinger1930heisenberg].

    [B. C. Hall, Quantum Theory for Mathematicians, Chapter 12][hall2013quantum].

@[expose] public section

A. Inner product lemmas

H:Type u_1inst✝¹:NormedAddCommGroup Hinst✝:InnerProductSpace Hu:Hv:Hc:h_comm:u, v⟫_ - v, u⟫_ = Complex.I * ch_conj_im:(v, u⟫_).im = -(u, v⟫_).imh_im:(u, v⟫_).im - -(u, v⟫_).im = c(u, v⟫_).im = c / 2 All goals completed! 🐙H:Type u_1inst✝¹:NormedAddCommGroup Hinst✝:InnerProductSpace Hu:Hv:Hc:h_comm:u, v⟫_ - v, u⟫_ = Complex.I * c(u, v⟫_).re * (u, v⟫_).re + c / 2 * (c / 2) = (u, v⟫_).re ^ 2 + (c / 2) ^ 2 All goals completed! 🐙H:Type u_1inst✝¹:NormedAddCommGroup Hinst✝:InnerProductSpace Hψ:Ha:Hb:Hμa:μb:hμa_right:ψ, a⟫_ = μahμa_left:a, ψ⟫_ = μahμb_right:ψ, b⟫_ = μbhμb_left:b, ψ⟫_ = μbhψ_norm:ψ = 1a, b⟫_ - μb * μa - star μa * μb + star μa * μb * 1 ^ 2 - (b, a⟫_ - μa * μb - star μb * μa + star μb * μa * 1 ^ 2) = a, b⟫_ - b, a⟫_ H:Type u_1inst✝¹:NormedAddCommGroup Hinst✝:InnerProductSpace Hψ:Ha:Hb:Hμa:μb:hμa_right:ψ, a⟫_ = μahμa_left:a, ψ⟫_ = μahμb_right:ψ, b⟫_ = μbhμb_left:b, ψ⟫_ = μbhψ_norm:ψ = 1a, b⟫_ - μa * μb - μa * μb + μa * (μb * (1 * 1)) - (b, a⟫_ - μa * μb - μa * μb + μa * (μb * (1 * 1))) = a, b⟫_ - b, a⟫_ All goals completed! 🐙All goals completed! 🐙 _ = Complex.I * c := h_raw

The scalar commutator of the centered vectors of A and B in the state ψ.

def centeredCommutatorExpectation (A B : H →ₗ.[] H) (ψ : A.domain) (hψB : (ψ : H) B.domain) : := centered A ψ, centered B ψ, hψB⟫_ - centered B ψ, hψB, centered A ψ⟫_

The expectation of the raw commutator [A, B] in the state ψ, with explicit second-order domain witnesses.

def rawCommutatorExpectation (A B : H →ₗ.[] H) (ψ : A.domain) (hψB : (ψ : H) B.domain) (hBA : A ψ B.domain) (hAB : B ψ, hψB A.domain) : := (ψ : H), A B ψ, hψB, hAB - B A ψ, hBA⟫_
H:Type u_1inst✝¹:NormedAddCommGroup Hinst✝:InnerProductSpace Hu:Hv:Hc:h_comm:u, v⟫_ - v, u⟫_ = Complex.I * ch_sq:|c / 2| ^ 2 (u * v) ^ 2(|c| / 2) ^ 2 (u * v) ^ 2 All goals completed! 🐙x:y:z:hx:0 xhz:0 zhxy:z ^ 2 x * yhs:z x * yz x * y All goals completed! 🐙

B. Centered commutator bounds

include h_centered

A centered commutator identity implies the squared Robertson uncertainty bound.

H:Type u_1inst✝¹:NormedAddCommGroup Hinst✝:InnerProductSpace HA:H →ₗ.[] HB:H →ₗ.[] Hψ:A.domainhψB:ψ B.domainc:h_centered:A.centeredCommutatorExpectation B ψ hψB = Complex.I * c(|c| / 2) ^ 2 (A.centered ψ * B.centered ψ, hψB) ^ 2 exact commutator_half_sq_le_mul_norm_sq (H:Type u_1inst✝¹:NormedAddCommGroup Hinst✝:InnerProductSpace HA:H →ₗ.[] HB:H →ₗ.[] Hψ:A.domainhψB:ψ B.domainc:h_centered:A.centeredCommutatorExpectation B ψ hψB = Complex.I * cA.centered ψ, B.centered ψ, hψB⟫_ - B.centered ψ, hψB, A.centered ψ⟫_ = Complex.I * c All goals completed! 🐙)

A centered commutator identity implies the Robertson–Schrödinger uncertainty bound.

H:Type u_1inst✝¹:NormedAddCommGroup Hinst✝:InnerProductSpace HA:H →ₗ.[] HB:H →ₗ.[] Hψ:A.domainhψB:ψ B.domainc:h_centered:A.centeredCommutatorExpectation B ψ hψB = Complex.I * cA.covariance B ψ hψB ^ 2 + (c / 2) ^ 2 = (A.centered ψ, B.centered ψ, hψB⟫_).re ^ 2 + (c / 2) ^ 2 All goals completed! 🐙 _ (centered A ψ * centered B ψ, hψB) ^ 2 := H:Type u_1inst✝¹:NormedAddCommGroup Hinst✝:InnerProductSpace HA:H →ₗ.[] HB:H →ₗ.[] Hψ:A.domainhψB:ψ B.domainc:h_centered:A.centeredCommutatorExpectation B ψ hψB = Complex.I * cA.centered ψ, B.centered ψ, hψB⟫_ ^ 2 (A.centered ψ * B.centered ψ, hψB) ^ 2 H:Type u_1inst✝¹:NormedAddCommGroup Hinst✝:InnerProductSpace HA:H →ₗ.[] HB:H →ₗ.[] Hψ:A.domainhψB:ψ B.domainc:h_centered:A.centeredCommutatorExpectation B ψ hψB = Complex.I * ch_bound:A.centered ψ, B.centered ψ, hψB⟫_ A.centered ψ * B.centered ψ, hψBA.centered ψ, B.centered ψ, hψB⟫_ ^ 2 (A.centered ψ * B.centered ψ, hψB) ^ 2 H:Type u_1inst✝¹:NormedAddCommGroup Hinst✝:InnerProductSpace HA:H →ₗ.[] HB:H →ₗ.[] Hψ:A.domainhψB:ψ B.domainc:h_centered:A.centeredCommutatorExpectation B ψ hψB = Complex.I * ch_bound:A.centered ψ, B.centered ψ, hψB⟫_ A.centered ψ * B.centered ψ, hψBh_inner_nonneg:0 A.centered ψ, B.centered ψ, hψB⟫_A.centered ψ, B.centered ψ, hψB⟫_ ^ 2 (A.centered ψ * B.centered ψ, hψB) ^ 2 H:Type u_1inst✝¹:NormedAddCommGroup Hinst✝:InnerProductSpace HA:H →ₗ.[] HB:H →ₗ.[] Hψ:A.domainhψB:ψ B.domainc:h_centered:A.centeredCommutatorExpectation B ψ hψB = Complex.I * ch_bound:A.centered ψ, B.centered ψ, hψB⟫_ A.centered ψ * B.centered ψ, hψBh_inner_nonneg:0 A.centered ψ, B.centered ψ, hψB⟫_h_mul_nonneg:0 A.centered ψ * B.centered ψ, hψBA.centered ψ, B.centered ψ, hψB⟫_ ^ 2 (A.centered ψ * B.centered ψ, hψB) ^ 2 All goals completed! 🐙

A centered commutator identity implies the standard uncertainty bound.

lemma state_uncertainty_of_centered_commutator : |c| / 2 standardDeviation A ψ * standardDeviation B ψ, hψB := H:Type u_1inst✝¹:NormedAddCommGroup Hinst✝:InnerProductSpace HA:H →ₗ.[] HB:H →ₗ.[] Hψ:A.domainhψB:ψ B.domainc:h_centered:A.centeredCommutatorExpectation B ψ hψB = Complex.I * c|c| / 2 A.standardDeviation ψ * B.standardDeviation ψ, hψB H:Type u_1inst✝¹:NormedAddCommGroup Hinst✝:InnerProductSpace HA:H →ₗ.[] HB:H →ₗ.[] Hψ:A.domainhψB:ψ B.domainc:h_centered:A.centeredCommutatorExpectation B ψ hψB = Complex.I * ch_sq:(|c| / 2) ^ 2 A.variance ψ * B.variance ψ, hψB|c| / 2 A.standardDeviation ψ * B.standardDeviation ψ, hψB refine sqrt_mul_le_of_sq_le (variance_nonneg A ψ) (H:Type u_1inst✝¹:NormedAddCommGroup Hinst✝:InnerProductSpace HA:H →ₗ.[] HB:H →ₗ.[] Hψ:A.domainhψB:ψ B.domainc:h_centered:A.centeredCommutatorExpectation B ψ hψB = Complex.I * ch_sq:(|c| / 2) ^ 2 A.variance ψ * B.variance ψ, hψB0 |c| / 2 All goals completed! 🐙) ?_ All goals completed! 🐙

C. Raw commutator bounds

include hA hB hψ_norm hBA hAB h_raw

A raw commutator expectation determines the centered commutator expectation.

H:Type u_1inst✝¹:NormedAddCommGroup Hinst✝:InnerProductSpace HA:H →ₗ.[] HB:H →ₗ.[] HhA:A.IsSymmetrichB:B.IsSymmetricψ:A.domainhψB:ψ B.domainhψ_norm:ψ = 1hBA:A ψ B.domainhAB:B ψ, hψB A.domainc:h_raw:A.rawCommutatorExpectation B ψ hψB hBA hAB = Complex.I * ca:H := A ψb:H := B ψ, hψBμa: := A.expectedValue ψμb: := B.expectedValue ψ, hψBhμa_right:ψ, a⟫_ = μahμa_left:a, ψ⟫_ = μahμb_right:ψ, b⟫_ = μbhμb_left:b, ψ⟫_ = μbA.centeredCommutatorExpectation B ψ hψB = Complex.I * c calc centeredCommutatorExpectation A B ψ hψB = centered A ψ, centered B ψ, hψB⟫_ - centered B ψ, hψB, centered A ψ⟫_ := H:Type u_1inst✝¹:NormedAddCommGroup Hinst✝:InnerProductSpace HA:H →ₗ.[] HB:H →ₗ.[] HhA:A.IsSymmetrichB:B.IsSymmetricψ:A.domainhψB:ψ B.domainhψ_norm:ψ = 1hBA:A ψ B.domainhAB:B ψ, hψB A.domainc:h_raw:A.rawCommutatorExpectation B ψ hψB hBA hAB = Complex.I * ca:H := A ψb:H := B ψ, hψBμa: := A.expectedValue ψμb: := B.expectedValue ψ, hψBhμa_right:ψ, a⟫_ = μahμa_left:a, ψ⟫_ = μahμb_right:ψ, b⟫_ = μbhμb_left:b, ψ⟫_ = μbA.centeredCommutatorExpectation B ψ hψB = A.centered ψ, B.centered ψ, hψB⟫_ - B.centered ψ, hψB, A.centered ψ⟫_ All goals completed! 🐙 _ = a - (μa : ) (ψ : H), b - (μb : ) (ψ : H)⟫_ - b - (μb : ) (ψ : H), a - (μa : ) (ψ : H)⟫_ := H:Type u_1inst✝¹:NormedAddCommGroup Hinst✝:InnerProductSpace HA:H →ₗ.[] HB:H →ₗ.[] HhA:A.IsSymmetrichB:B.IsSymmetricψ:A.domainhψB:ψ B.domainhψ_norm:ψ = 1hBA:A ψ B.domainhAB:B ψ, hψB A.domainc:h_raw:A.rawCommutatorExpectation B ψ hψB hBA hAB = Complex.I * ca:H := A ψb:H := B ψ, hψBμa: := A.expectedValue ψμb: := B.expectedValue ψ, hψBhμa_right:ψ, a⟫_ = μahμa_left:a, ψ⟫_ = μahμb_right:ψ, b⟫_ = μbhμb_left:b, ψ⟫_ = μbA.centered ψ, B.centered ψ, hψB⟫_ - B.centered ψ, hψB, A.centered ψ⟫_ = a - μa ψ, b - μb ψ⟫_ - b - μb ψ, a - μa ψ⟫_ All goals completed! 🐙 _ = a, b⟫_ - b, a⟫_ := sub_expectation_commutator_eq_raw (ψ : H) a b μa μb hμa_right hμa_left hμb_right hμb_left hψ_norm _ = Complex.I * c := raw_commutator_eq_of_symmetric A B hA hB ψ hψB hBA hAB (H:Type u_1inst✝¹:NormedAddCommGroup Hinst✝:InnerProductSpace HA:H →ₗ.[] HB:H →ₗ.[] HhA:A.IsSymmetrichB:B.IsSymmetricψ:A.domainhψB:ψ B.domainhψ_norm:ψ = 1hBA:A ψ B.domainhAB:B ψ, hψB A.domainc:h_raw:A.rawCommutatorExpectation B ψ hψB hBA hAB = Complex.I * ca:H := A ψb:H := B ψ, hψBμa: := A.expectedValue ψμb: := B.expectedValue ψ, hψBhμa_right:ψ, a⟫_ = μahμa_left:a, ψ⟫_ = μahμb_right:ψ, b⟫_ = μbhμb_left:b, ψ⟫_ = μbψ, A B ψ, hψB, hAB - B A ψ, hBA⟫_ = Complex.I * c All goals completed! 🐙)

A raw commutator expectation implies the squared Robertson uncertainty bound.

lemma state_uncertainty_squared_of_raw_commutator : (|c| / 2) ^ 2 variance A ψ * variance B ψ, hψB := state_uncertainty_squared_of_centered_commutator A B ψ hψB (inner_centered_commutator_of_raw_commutator A B hA hB ψ hψB hψ_norm hBA hAB h_raw)

A raw commutator expectation implies the squared uncertainty bound with covariance term.

lemma state_uncertainty_squared_with_covariance_of_raw_commutator : (covariance A B ψ hψB) ^ 2 + (c / 2) ^ 2 variance A ψ * variance B ψ, hψB := state_uncertainty_squared_with_covariance_of_centered_commutator A B ψ hψB (inner_centered_commutator_of_raw_commutator A B hA hB ψ hψB hψ_norm hBA hAB h_raw)

A raw commutator expectation implies the standard uncertainty bound.

lemma state_uncertainty_of_raw_commutator : |c| / 2 standardDeviation A ψ * standardDeviation B ψ, hψB := state_uncertainty_of_centered_commutator A B ψ hψB (inner_centered_commutator_of_raw_commutator A B hA hB ψ hψB hψ_norm hBA hAB h_raw)