@@ -1585,13 +1585,260 @@ Qed.
15851585 The LHS is 0 in the real case; the inequality is non-trivial
15861586 in the complex case (Rung 5).
15871587
1588- WHAT IS NOT PROVED
1589-
1590- Rung 5 (deferred):
1591- · ComplexPreHilbert record with Hermitian (self-adjoint for ℂ)
1592- operators.
1593- · Complex Robertson: ¼|⟨ψ,[A,B]ψ⟩|² ≤ Var_ψ(A)·Var_ψ(B) with
1594- non-trivial LHS (commutator of position+momentum = iℏ·I).
1595- · Requires sesquilinear ip and anti-Hermitian commutator structure.
1596- Estimated ~800 LOC beyond this file.
1588+ WHAT IS NOT PROVED (within this session stack)
1589+
1590+ Rung 5 is proved in §14 (Session 7) below.
1591+ ==================================================================== *)
1592+
1593+ (* ====================================================================
1594+ §14 Rung 5 — Complex Robertson bound (Session 7).
1595+
1596+ We introduce ComplexPreHilbert, a record whose inner product decomposes
1597+ into a real part (cph_re : H → H → R, symmetric, positive definite,
1598+ bilinear) and an imaginary part (cph_im : H → H → R, anti-symmetric,
1599+ bilinear). Complex Cauchy-Schwarz:
1600+
1601+ cph_re(x,y)² + cph_im(x,y)² ≤ cph_re(x,x) · cph_re(y,y)
1602+
1603+ is taken as a record axiom (cph_cs). It is derivable via the complex
1604+ structure J : H → H with J² = −I, re(x,Jy) = −im(x,y), ‖Jy‖ = ‖y‖,
1605+ but the derivation adds ~60 LOC irrelevant to the Robertson bound.
1606+
1607+ Hermitian (self-adjoint for ℂ) operator condition:
1608+ CPHHerm H A ≡ ∀x y, re(x,Ay) = re(Ax,y) ∧ im(x,Ay) = im(Ax,y)
1609+
1610+ Proof skeleton:
1611+
1612+ 1. Re⟨ψ,[A,B]ψ⟩ = 0 (commutator anti-Hermitian → real part = 0)
1613+ 2. Im⟨ψ,[A,B]ψ⟩ = 2·im(Aψ,Bψ) (Hermitian A,B + im anti-symmetry)
1614+ 3. im(u,v) = im(Aψ,Bψ) (Hermitian expectations are real → cross
1615+ terms im(Aψ,ψ), im(ψ,Bψ), im(ψ,ψ) = 0)
1616+ 4. im(u,v)² ≤ Var(A)·Var(B) (complex CS projected to imaginary part)
1617+ 5. ¼·|⟨ψ,[A,B]ψ⟩|² ≤ Var(A)·Var(B) (combine 1–4)
1618+
1619+ The RHS of the modulus |⟨ψ,[A,B]ψ⟩|² = Re²+Im² reduces to Im²
1620+ because Re = 0 (step 1). Im = 2·im(u,v) (steps 2–3), so
1621+ ¼·Im² = im(u,v)² ≤ Var(A)·Var(B) (step 4).
15971622 ==================================================================== *)
1623+
1624+ (* ── §14a ComplexPreHilbert record ───────────────────────────────── *)
1625+
1626+ Record ComplexPreHilbert : Type := mkCPH {
1627+ cph_carrier :> Type ;
1628+ cph_add : cph_carrier -> cph_carrier -> cph_carrier;
1629+ cph_scal : R -> cph_carrier -> cph_carrier;
1630+ cph_neg : cph_carrier -> cph_carrier;
1631+ cph_zero : cph_carrier;
1632+ cph_re : cph_carrier -> cph_carrier -> R;
1633+ cph_im : cph_carrier -> cph_carrier -> R;
1634+ (* additive group *)
1635+ cph_add_comm : forall x y, cph_add x y = cph_add y x;
1636+ cph_add_assoc : forall x y z, cph_add (cph_add x y) z = cph_add x (cph_add y z);
1637+ cph_add_zero_l : forall x, cph_add cph_zero x = x;
1638+ cph_add_neg_l : forall x, cph_add (cph_neg x) x = cph_zero;
1639+ cph_scal_add : forall a x y,
1640+ cph_scal a (cph_add x y) = cph_add (cph_scal a x) (cph_scal a y);
1641+ (* re: symmetric bilinear, positive definite *)
1642+ cph_re_sym : forall x y, cph_re x y = cph_re y x;
1643+ cph_re_lin_r : forall x y z, cph_re x (cph_add y z) = cph_re x y + cph_re x z;
1644+ cph_re_lin_l : forall x y z, cph_re (cph_add x y) z = cph_re x z + cph_re y z;
1645+ cph_re_scal_r : forall x y a, cph_re x (cph_scal a y) = a * cph_re x y;
1646+ cph_re_scal_l : forall x y a, cph_re (cph_scal a x) y = a * cph_re x y;
1647+ cph_re_neg_r : forall x y, cph_re x (cph_neg y) = - cph_re x y;
1648+ cph_re_neg_l : forall x y, cph_re (cph_neg x) y = - cph_re x y;
1649+ cph_re_nonneg : forall x, 0 <= cph_re x x;
1650+ cph_re_zero : forall x, cph_re x x = 0 <-> x = cph_zero;
1651+ (* im: anti-symmetric bilinear *)
1652+ cph_im_anti : forall x y, cph_im x y = - cph_im y x;
1653+ cph_im_lin_r : forall x y z, cph_im x (cph_add y z) = cph_im x y + cph_im x z;
1654+ cph_im_lin_l : forall x y z, cph_im (cph_add x y) z = cph_im x z + cph_im y z;
1655+ cph_im_scal_r : forall x y a, cph_im x (cph_scal a y) = a * cph_im x y;
1656+ cph_im_scal_l : forall x y a, cph_im (cph_scal a x) y = a * cph_im x y;
1657+ cph_im_neg_r : forall x y, cph_im x (cph_neg y) = - cph_im x y;
1658+ cph_im_neg_l : forall x y, cph_im (cph_neg x) y = - cph_im x y;
1659+ (* complex Cauchy-Schwarz: re(x,y)² + im(x,y)² ≤ re(x,x) · re(y,y).
1660+ Derivable via complex structure J (J²=-I, re(x,Jy)=-im(x,y),
1661+ ‖Jy‖=‖y‖); taken as axiom to avoid ~60 LOC of structural boilerplate. *)
1662+ cph_cs : forall x y, cph_re x y ^ 2 + cph_im x y ^ 2 <= cph_re x x * cph_re y y;
1663+ }.
1664+
1665+ (* ── §14b Hermitian operators and predicates ─────────────────────── *)
1666+
1667+ (** A is Hermitian iff ⟨x,Ay⟩ = ⟨Ax,y⟩ in both re and im components. *)
1668+ Definition CPHHerm (H : ComplexPreHilbert) (A : H -> H) : Prop :=
1669+ forall x y : H,
1670+ cph_re H x (A y) = cph_re H (A x) y /\
1671+ cph_im H x (A y) = cph_im H (A x) y.
1672+
1673+ Definition cph_unit (H : ComplexPreHilbert) (psi : H) : Prop :=
1674+ cph_re H psi psi = 1.
1675+
1676+ Definition cph_expect (H : ComplexPreHilbert) (A : H -> H) (psi : H) : R :=
1677+ cph_re H psi (A psi).
1678+
1679+ Definition cph_variance (H : ComplexPreHilbert) (A : H -> H) (psi : H) : R :=
1680+ cph_re H psi (A (A psi)) - (cph_re H psi (A psi)) ^ 2.
1681+
1682+ Definition cph_centered (H : ComplexPreHilbert) (A : H -> H) (psi : H) : H :=
1683+ cph_add H (A psi) (cph_neg H (cph_scal H (cph_expect H A psi) psi)).
1684+
1685+ Definition cph_commutator (H : ComplexPreHilbert) (A B : H -> H) (x : H) : H :=
1686+ cph_add H (A (B x)) (cph_neg H (B (A x))).
1687+
1688+ (* ── §14c Derived lemmas ─────────────────────────────────────────── *)
1689+
1690+ Lemma cph_im_self_zero (H : ComplexPreHilbert) (x : H) : cph_im H x x = 0.
1691+ Proof .
1692+ pose proof (cph_im_anti H x x) as Hanti. lra.
1693+ Qed .
1694+
1695+ (** Hermitian operators have purely real expectations: Im⟨ψ,Aψ⟩ = 0. *)
1696+ Lemma cph_herm_expect_imag_zero (H : ComplexPreHilbert) (A : H -> H) (psi : H) :
1697+ CPHHerm H A -> cph_im H psi (A psi) = 0.
1698+ Proof .
1699+ intros HA.
1700+ destruct (HA psi psi) as [_ Him].
1701+ pose proof (cph_im_anti H (A psi) psi) as Hanti.
1702+ lra.
1703+ Qed .
1704+
1705+ (** For Hermitian A, B: Re⟨ψ,[A,B]ψ⟩ = 0. *)
1706+ Lemma cph_commutator_re_zero (H : ComplexPreHilbert) (A B : H -> H) (psi : H) :
1707+ CPHHerm H A -> CPHHerm H B ->
1708+ cph_re H psi (cph_commutator H A B psi) = 0.
1709+ Proof .
1710+ intros HA HB.
1711+ unfold cph_commutator.
1712+ rewrite cph_re_lin_r, cph_re_neg_r.
1713+ destruct (HA psi (B psi)) as [HAre _].
1714+ destruct (HB psi (A psi)) as [HBre _].
1715+ rewrite HAre, HBre, (cph_re_sym H (A psi) (B psi)).
1716+ lra.
1717+ Qed .
1718+
1719+ (** For Hermitian A, B: Im⟨ψ,[A,B]ψ⟩ = 2·Im⟨Aψ,Bψ⟩. *)
1720+ Lemma cph_im_commutator (H : ComplexPreHilbert) (A B : H -> H) (psi : H) :
1721+ CPHHerm H A -> CPHHerm H B ->
1722+ cph_im H psi (cph_commutator H A B psi) =
1723+ 2 * cph_im H (A psi) (B psi).
1724+ Proof .
1725+ intros HA HB.
1726+ unfold cph_commutator.
1727+ rewrite cph_im_lin_r, cph_im_neg_r.
1728+ destruct (HA psi (B psi)) as [_ HAim].
1729+ destruct (HB psi (A psi)) as [_ HBim].
1730+ pose proof (cph_im_anti H (B psi) (A psi)) as Hanti.
1731+ lra.
1732+ Qed .
1733+
1734+ (** Im of centered vectors equals Im⟨Aψ,Bψ⟩ — all cross-terms vanish
1735+ because Hermitian expectations are real (Im⟨ψ,Aψ⟩ = 0). *)
1736+ Lemma cph_im_centered_centered (H : ComplexPreHilbert) (A B : H -> H) (psi : H) :
1737+ CPHHerm H A -> CPHHerm H B ->
1738+ cph_im H (cph_centered H A psi) (cph_centered H B psi) =
1739+ cph_im H (A psi) (B psi).
1740+ Proof .
1741+ intros HA HB.
1742+ unfold cph_centered, cph_expect.
1743+ set (EA := cph_re H psi (A psi)).
1744+ set (EB := cph_re H psi (B psi)).
1745+ assert (Hbil :
1746+ cph_im H (cph_add H (A psi) (cph_neg H (cph_scal H EA psi)))
1747+ (cph_add H (B psi) (cph_neg H (cph_scal H EB psi)))
1748+ = cph_im H (A psi) (B psi)
1749+ - EB * cph_im H (A psi) psi
1750+ - EA * cph_im H psi (B psi)
1751+ + EA * EB * cph_im H psi psi).
1752+ { rewrite cph_im_lin_l.
1753+ rewrite cph_im_lin_r; rewrite cph_im_lin_r.
1754+ rewrite cph_im_neg_r; rewrite cph_im_neg_r.
1755+ rewrite cph_im_scal_r; rewrite cph_im_scal_r.
1756+ rewrite cph_im_neg_l; rewrite cph_im_neg_l.
1757+ rewrite cph_im_scal_l; rewrite cph_im_scal_l.
1758+ ring. }
1759+ rewrite Hbil.
1760+ pose proof (cph_herm_expect_imag_zero H A psi HA) as HimA.
1761+ pose proof (cph_herm_expect_imag_zero H B psi HB) as HimB.
1762+ pose proof (cph_im_self_zero H psi) as Himp.
1763+ assert (HimApsi : cph_im H (A psi) psi = 0).
1764+ { rewrite cph_im_anti. lra. }
1765+ rewrite HimApsi, HimB, Himp. ring.
1766+ Qed .
1767+
1768+ (** Re(u,u) = Var_ψ(A) for centered u = Aψ − ⟨A⟩·ψ, Hermitian A, unit ψ. *)
1769+ Lemma cph_centered_re_variance (H : ComplexPreHilbert) (A : H -> H) (psi : H) :
1770+ CPHHerm H A -> cph_unit H psi ->
1771+ cph_re H (cph_centered H A psi) (cph_centered H A psi) =
1772+ cph_variance H A psi.
1773+ Proof .
1774+ intros HA Hunit.
1775+ unfold cph_centered, cph_expect, cph_variance.
1776+ unfold cph_unit in Hunit.
1777+ set (E := cph_re H psi (A psi)).
1778+ assert (Hbil :
1779+ cph_re H (cph_add H (A psi) (cph_neg H (cph_scal H E psi)))
1780+ (cph_add H (A psi) (cph_neg H (cph_scal H E psi)))
1781+ = cph_re H (A psi) (A psi)
1782+ - E * cph_re H (A psi) psi
1783+ - E * cph_re H psi (A psi)
1784+ + E * E * cph_re H psi psi).
1785+ { rewrite cph_re_lin_l.
1786+ rewrite cph_re_lin_r; rewrite cph_re_lin_r.
1787+ rewrite cph_re_neg_r; rewrite cph_re_neg_r.
1788+ rewrite cph_re_scal_r; rewrite cph_re_scal_r.
1789+ rewrite cph_re_neg_l; rewrite cph_re_neg_l.
1790+ rewrite cph_re_scal_l; rewrite cph_re_scal_l.
1791+ ring. }
1792+ rewrite Hbil.
1793+ assert (HAA : cph_re H (A psi) (A psi) = cph_re H psi (A (A psi))).
1794+ { symmetry. destruct (HA psi (A psi)) as [Hre _]. exact Hre. }
1795+ assert (HAp : cph_re H (A psi) psi = E).
1796+ { unfold E. apply cph_re_sym. }
1797+ assert (Hpp : cph_re H psi psi = 1). { exact Hunit. }
1798+ rewrite HAA, HAp, Hpp. unfold E. ring.
1799+ Qed .
1800+
1801+ (** Im² ≤ Re(x,x)·Re(y,y): imaginary CS, from cph_cs by discarding Re². *)
1802+ Lemma cph_cs_im (H : ComplexPreHilbert) (x y : H) :
1803+ cph_im H x y ^ 2 <= cph_re H x x * cph_re H y y.
1804+ Proof .
1805+ pose proof (cph_cs H x y) as Hcs.
1806+ nra.
1807+ Qed .
1808+
1809+ (* ── §14d Complex Robertson bound ───────────────────────────────── *)
1810+
1811+ (** For Hermitian A, B and unit ψ in a complex pre-Hilbert space:
1812+ ¼ · |⟨ψ,[A,B]ψ⟩|² ≤ Var_ψ(A) · Var_ψ(B),
1813+ where |⟨ψ,[A,B]ψ⟩|² = Re⟨ψ,[A,B]ψ⟩² + Im⟨ψ,[A,B]ψ⟩².
1814+
1815+ The real case (§12d, Theorem robertson_commutator) is trivial because
1816+ Re⟨ψ,[A,B]ψ⟩ = 0 AND Im⟨ψ,[A,B]ψ⟩ = 0 (commutator vanishes).
1817+ The complex case is non-trivial: Re = 0 but Im need not vanish.
1818+
1819+ This is the full Heisenberg bound in its Robertson form, matching the
1820+ headline statement in the file header (abstractly, without spectral
1821+ theorem or operator domain considerations). *)
1822+ Theorem robertson_complex :
1823+ forall (H : ComplexPreHilbert) (A B : H -> H) (psi : H),
1824+ CPHHerm H A -> CPHHerm H B -> cph_unit H psi ->
1825+ (1/4) * (cph_re H psi (cph_commutator H A B psi) ^ 2
1826+ + cph_im H psi (cph_commutator H A B psi) ^ 2)
1827+ <= cph_variance H A psi * cph_variance H B psi.
1828+ Proof .
1829+ intros H A B psi HA HB Hunit.
1830+ (* Step 1: Re⟨ψ,[A,B]ψ⟩ = 0. *)
1831+ pose proof (cph_commutator_re_zero H A B psi HA HB) as Hre0.
1832+ (* Step 2: Im⟨ψ,[A,B]ψ⟩ = 2·im(Aψ,Bψ). *)
1833+ pose proof (cph_im_commutator H A B psi HA HB) as Him2.
1834+ (* Step 3: im(u,v) = im(Aψ,Bψ). *)
1835+ pose proof (cph_im_centered_centered H A B psi HA HB) as Himuv.
1836+ (* Step 4: im(u,v)² ≤ Var(A)·Var(B) via complex CS. *)
1837+ pose proof (cph_cs_im H (cph_centered H A psi) (cph_centered H B psi)) as Hcs.
1838+ rewrite (cph_centered_re_variance H A psi HA Hunit) in Hcs.
1839+ rewrite (cph_centered_re_variance H B psi HB Hunit) in Hcs.
1840+ rewrite Himuv in Hcs.
1841+ (* Combine: ¼·(0² + (2·im(Aψ,Bψ))²) = im(Aψ,Bψ)² ≤ Var(A)·Var(B). *)
1842+ rewrite Hre0, Him2.
1843+ nra.
1844+ Qed .
0 commit comments