AFTD Auto-Formalizing Theoretical Domains

LinearPMap.state_uncertainty_squared_with_covariance_of_raw_commutator

theoremverifiedformalizationimported Lean

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

Statement

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open LinearPMap in
open InnerProductSpace in
variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] in
variable (A B : H →ₗ.[ℂ] H) (hA : A.IsSymmetric) (hB : B.IsSymmetric) in
variable (ψ : A.domain) in
variable (hψB : (ψ : H) ∈ B.domain) in
variable (hψ_norm : ‖(ψ : H)‖ = 1) in
variable (hBA : A ψ ∈ B.domain) in
variable (hAB : B ⟨ψ, hψB⟩ ∈ A.domain) in
variable {c : ℝ} in
variable (h_raw : rawCommutatorExpectation A B ψ hψB hBA hAB = Complex.I * c) in
include hA hB hψ_norm hBA hAB h_raw in
lemma LinearPMap.state_uncertainty_squared_with_covariance_of_raw_commutator :
    (covariance A B ψ hψB) ^ 2 + (c / 2) ^ 2 ≤
      variance A ψ * variance B ⟨ψ, hψB⟩
Formalizes
Physlib, `LinearPMap.state_uncertainty_squared_with_covariance_of_raw_commutator`
Lean proof
By Matteo Cipollina, from github.com/leanprover-community/physlib at e411c6e89692 (Copyright (c) 2026 Axiomatic-AI. All rights reserved, Apache-2.0). Compiled here against leanprover/lean4:v4.33.1, Mathlib v4.33.1; written for leanprover/lean4:v4.34.1.
Verified
10 Oct 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 8

Lean source view module on GitHub

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open LinearPMap in
open InnerProductSpace in
variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] in
variable (A B : H →ₗ.[ℂ] H) (hA : A.IsSymmetric) (hB : B.IsSymmetric) in
variable (ψ : A.domain) in
variable (hψB : (ψ : H) ∈ B.domain) in
variable (hψ_norm : ‖(ψ : H)‖ = 1) in
variable (hBA : A ψ ∈ B.domain) in
variable (hAB : B ⟨ψ, hψB⟩ ∈ A.domain) in
variable {c : ℝ} in
variable (h_raw : rawCommutatorExpectation A B ψ hψB hBA hAB = Complex.I * c) in
include hA hB hψ_norm hBA hAB h_raw in
/-- A raw commutator expectation implies the squared uncertainty bound with covariance term. -/
lemma LinearPMap.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)
See it in the graphDiscuss this resultChallenge it