Skip to content

Commit b4b5f21

Browse files
hyperpolymathclaude
andcommitted
proof(S4): Session 6 — commutator algebra + Robertson commutator form (Rung 4b)
§12a–§12d: phr_commutator definition, phr_commutator_expect_zero (SelfAdj ⟹ ⟨ψ,[A,B]ψ⟩=0), phr_commutator_anticomm, phr_variance_nonneg, robertson_commutator (¼·⟨ψ,[A,B]ψ⟩²≤Var·Var). Rung 4 complete: both robertson_real (Rung 4a) and robertson_commutator (Rung 4b) Qed-closed. 90 Qed, 0 Admitted. Rung 5 (ComplexPreHilbert + anti-Hermitian commutator) deferred. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent e19e7d6 commit b4b5f21

1 file changed

Lines changed: 141 additions & 0 deletions

File tree

proofs/canonical-proof-suite/S4_heisenberg_ndim.v

Lines changed: 141 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1454,3 +1454,144 @@ Proof.
14541454
(* phr_cauchy_schwarz gives (ip u v)^2 <= norm2 u * norm2 v. *)
14551455
lra.
14561456
Qed.
1457+
1458+
(* ====================================================================
1459+
§12 Rung 4b — Commutator algebra and Robertson commutator form.
1460+
Session 6 deliverables.
1461+
1462+
For SYMMETRIC (self-adjoint) operators A, B in a real pre-Hilbert
1463+
space, the commutator [A,B] = A∘B − B∘A has zero expectation in
1464+
any state ψ:
1465+
1466+
⟨ψ, [A,B]ψ⟩ = ⟨Aψ, Bψ⟩ − ⟨Aψ, Bψ⟩ = 0.
1467+
1468+
This follows from the symmetric adjoint swap:
1469+
· ⟨ψ, A(Bψ)⟩ = ⟨Aψ, Bψ⟩ (SelfAdj A, x=ψ, y=Bψ, reversed)
1470+
· ⟨ψ, B(Aψ)⟩ = ⟨B(Aψ),ψ⟩ (phr_ip_sym)
1471+
= ⟨Aψ, Bψ⟩ (SelfAdj B, x=Aψ, y=ψ)
1472+
1473+
Consequence (robertson_commutator):
1474+
¼ · ⟨ψ,[A,B]ψ⟩² ≤ Var_ψ(A) · Var_ψ(B).
1475+
In a REAL pre-Hilbert space this is trivially 0 ≤ Var·Var.
1476+
The structure mirrors the complex Robertson (Rung 5) where
1477+
the RHS need not vanish.
1478+
==================================================================== *)
1479+
1480+
(* ── §12a Commutator ─────────────────────────────────────────────── *)
1481+
1482+
(** [A,B] x = A(Bx) − B(Ax). *)
1483+
Definition phr_commutator (H : PreHilbertR) (A B : PHREndo H) (x : H) : H :=
1484+
phr_add H (A (B x)) (phr_neg H (B (A x))).
1485+
1486+
(* ── §12b Expectation of commutator for symmetric operators ─────── *)
1487+
1488+
(** For self-adjoint A and B, ⟨ψ, [A,B]ψ⟩ = 0. *)
1489+
Lemma phr_commutator_expect_zero :
1490+
forall (H : PreHilbertR) (A B : PHREndo H) (psi : H),
1491+
SelfAdj H A ->
1492+
SelfAdj H B ->
1493+
phr_ip H psi (phr_commutator H A B psi) = 0.
1494+
Proof.
1495+
intros H A B psi HA HB.
1496+
unfold phr_commutator.
1497+
rewrite phr_ip_linear_r, phr_ip_neg_r.
1498+
(* ⟨ψ, A(Bψ)⟩ = ⟨Aψ, Bψ⟩ via SelfAdj A (x=ψ, y=Bψ). *)
1499+
assert (Hstep1 : phr_ip H psi (A (B psi)) = phr_ip H (A psi) (B psi)).
1500+
{ exact (HA psi (B psi)). }
1501+
(* ⟨ψ, B(Aψ)⟩ = ⟨B(Aψ),ψ⟩ = ⟨Aψ,Bψ⟩ via ip_sym then SelfAdj B (x=Aψ, y=ψ). *)
1502+
assert (Hstep2 : phr_ip H psi (B (A psi)) = phr_ip H (A psi) (B psi)).
1503+
{ rewrite (phr_ip_sym H psi (B (A psi))).
1504+
exact (eq_sym (HB (A psi) psi)). }
1505+
rewrite Hstep1, Hstep2. ring.
1506+
Qed.
1507+
1508+
(** Anti-commutativity of commutator expectation (holds without symmetry). *)
1509+
Lemma phr_commutator_anticomm :
1510+
forall (H : PreHilbertR) (A B : PHREndo H) (psi : H),
1511+
phr_ip H psi (phr_commutator H B A psi)
1512+
= - phr_ip H psi (phr_commutator H A B psi).
1513+
Proof.
1514+
intros H A B psi.
1515+
unfold phr_commutator.
1516+
rewrite !phr_ip_linear_r, !phr_ip_neg_r.
1517+
ring.
1518+
Qed.
1519+
1520+
(* ── §12c Variance non-negativity (unit + self-adjoint) ─────────── *)
1521+
1522+
(** Var_ψ(A) ≥ 0 when A is self-adjoint and ψ is a unit vector.
1523+
Follows from Var_ψ(A) = ‖u_A‖² ≥ 0 (phr_centered_norm2). *)
1524+
Lemma phr_variance_nonneg :
1525+
forall (H : PreHilbertR) (A : PHREndo H) (psi : H),
1526+
SelfAdj H A ->
1527+
phr_unit H psi ->
1528+
0 <= phr_variance H A psi.
1529+
Proof.
1530+
intros H A psi HA Hunit.
1531+
rewrite <- (phr_centered_norm2 H A psi HA Hunit).
1532+
apply phr_norm2_nonneg.
1533+
Qed.
1534+
1535+
(* ── §12d Robertson commutator form ─────────────────────────────── *)
1536+
1537+
(** Robertson uncertainty, commutator form (real pre-Hilbert).
1538+
1539+
For self-adjoint A, B and unit ψ:
1540+
¼ · ⟨ψ,[A,B]ψ⟩² ≤ Var_ψ(A) · Var_ψ(B).
1541+
1542+
In a real pre-Hilbert space the LHS is always 0
1543+
(phr_commutator_expect_zero), so the proof reduces to
1544+
0 ≤ Var(A)·Var(B), which follows from variance non-negativity.
1545+
1546+
The complex analogue (Rung 5) replaces the zero with the
1547+
imaginary part of ⟨ψ,[A,B]ψ⟩ over a ComplexPreHilbert record. *)
1548+
Theorem robertson_commutator :
1549+
forall (H : PreHilbertR) (A B : PHREndo H) (psi : H),
1550+
SelfAdj H A ->
1551+
SelfAdj H B ->
1552+
phr_unit H psi ->
1553+
(1/4) * (phr_ip H psi (phr_commutator H A B psi))^2
1554+
<= phr_variance H A psi * phr_variance H B psi.
1555+
Proof.
1556+
intros H A B psi HA HB Hunit.
1557+
rewrite (phr_commutator_expect_zero H A B psi HA HB).
1558+
(* Goal: (1/4) * 0^2 <= Var(A) * Var(B). *)
1559+
assert (HvA : 0 <= phr_variance H A psi) by
1560+
(apply phr_variance_nonneg; assumption).
1561+
assert (HvB : 0 <= phr_variance H B psi) by
1562+
(apply phr_variance_nonneg; assumption).
1563+
assert (Hmul : 0 <= phr_variance H A psi * phr_variance H B psi)
1564+
by (apply Rmult_le_pos; assumption).
1565+
simpl. lra.
1566+
Qed.
1567+
1568+
(* ====================================================================
1569+
Session 6 status note
1570+
====================================================================
1571+
1572+
STATUS: robertson_real (Rung 4a, covariance form) + robertson_commutator
1573+
(Rung 4b, commutator form) both Qed-closed. Zero banned constructs.
1574+
1575+
WHAT IS PROVED (Rung 4 complete)
1576+
1577+
Rung 4a — Robertson covariance (Theorem robertson_real):
1578+
For self-adjoint A, B and unit ψ ∈ H (real pre-Hilbert):
1579+
Cov_ψ(A,B)² ≤ Var_ψ(A) · Var_ψ(B).
1580+
Direct from phr_cauchy_schwarz on the centered vectors.
1581+
1582+
Rung 4b — Robertson commutator (Theorem robertson_commutator):
1583+
For self-adjoint A, B and unit ψ ∈ H (real pre-Hilbert):
1584+
¼ · ⟨ψ,[A,B]ψ⟩² ≤ Var_ψ(A) · Var_ψ(B).
1585+
The LHS is 0 in the real case; the inequality is non-trivial
1586+
in the complex case (Rung 5).
1587+
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.
1597+
==================================================================== *)

0 commit comments

Comments
 (0)