Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
107 changes: 103 additions & 4 deletions docs/proof-debt.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,45 @@ need a discharge PR — see §(d) DEBT below.
All 18 §(c) entries above are annotated inline with `-- AXIOM:`
leading comments.

## Phase 2d triage — Lean Quantum cluster (2026-05-27)

Third Lean cluster: `proofs/lean4/QuantumCNO.lean` (14 axioms).

### Hilbert-space + gate primitives (§(c) AXIOM, 7)

| Line | Identifier | Disposition | Justification |
|-----:|------------|-------------|---------------|
| 29 | `innerProduct` | §(c) AXIOM | Opaque inner product primitive (mirrors Coq parameter). |
| 46 | `X_gate` | §(c) AXIOM | Quantum gate primitive (Pauli X). |
| 47 | `X_gate_unitary` | §(c) AXIOM | Gate primitive property (mirrors Coq QuantumCNO.v:113). |
| 49 | `H_gate` | §(c) AXIOM | Quantum gate primitive (Hadamard). |
| 50 | `H_gate_unitary` | §(c) AXIOM | Gate primitive property (mirrors Coq QuantumCNO.v:125). |
| 52 | `CNOT_gate` | §(c) AXIOM | Quantum gate primitive (CNOT). |
| 53 | `CNOT_gate_unitary` | §(c) AXIOM | Gate primitive property (mirrors Coq QuantumCNO.v:129). |

### Entropy + reversibility (§(c) AXIOM — mirror Coq, 4)

| Line | Identifier | Disposition |
|-----:|------------|-------------|
| 192 | `vonNeumannEntropy` | §(c) AXIOM (opaque entropy functional) |
| 194 | `von_neumann_nonneg` | §(c) AXIOM (mirrors Coq QuantumCNO.v:361) |
| 198 | `unitary_preserves_entropy`| §(c) AXIOM (mirrors Coq QuantumCNO.v:372) |
| 233 | `unitaryInverse` | §(c) AXIOM (opaque inverse primitive) |

### Discharge candidates (§(d) DEBT — 3)

These mirror DISCHARGE candidates on the Coq side; they should fall out
once a concrete basis-state model lands.

| Line | Identifier | Disposition | Plan |
|-----:|------------|-------------|------|
| 134 | `X_gate_not_identity` | §(d) DEBT | Existence proof; exhibit `|0⟩` as witness once a concrete basis state is in the model. Mirrors Coq site at `QuantumCNO.v:283`. |
| 144 | `H_gate_not_identity` | §(d) DEBT | Existence proof; exhibit `|0⟩` as witness. Mirrors Coq site at `QuantumCNO.v:296`. |
| 235 | `unitary_inverse_property`| §(d) DEBT | Follows from `isUnitary` definition (`U†U = I`). Mirrors Coq site at `QuantumCNO.v:487`. |

All 11 §(c) entries above are annotated inline with `-- AXIOM:`
leading comments.

## (a) DISCHARGE backlog (Coq, 17)

Provable propositions currently stated as `Axiom`. Enumerated in
Expand Down Expand Up @@ -169,6 +208,48 @@ no longer in §(d).
in #58.
- **Deadline**: INDEFINITE.

- `proofs/coq/quantum/QuantumCNO.v:258` — `global_phase_unitary`
- **Owner**: @hyperpolymath
- **Plan**: derivable from gate algebra: `(e^{iθ} U)` is unitary iff
`U` is. Triaged DISCHARGE in #58 (Phase 2d).
- **Deadline**: INDEFINITE (needs `is_unitary` algebraic lemmas).

- `proofs/coq/quantum/QuantumCNO.v:283` — `X_gate_not_identity`
- **Owner**: @hyperpolymath
- **Plan**: existence proof; exhibit `|0⟩` as witness once a concrete
basis state is in the model. Triaged DISCHARGE in #58 (Phase 2d).
- **Deadline**: INDEFINITE (blocked on concrete basis-state model).

- `proofs/coq/quantum/QuantumCNO.v:296` — `H_gate_not_identity`
- **Owner**: @hyperpolymath
- **Plan**: existence proof; exhibit `|0⟩` as witness. Triaged
DISCHARGE in #58 (Phase 2d).
- **Deadline**: INDEFINITE (blocked on concrete basis-state model).

- `proofs/coq/quantum/QuantumCNO.v:487` — `unitary_inverse_property`
- **Owner**: @hyperpolymath
- **Plan**: follows from `is_unitary` definition (`U†U = I`). Triaged
DISCHARGE in #58 (Phase 2d).
- **Deadline**: INDEFINITE.

- `proofs/coq/quantum/QuantumCNO.v:545` — `unitary_zero_entropy_change`
- **Owner**: @hyperpolymath
- **Plan**: derivable from `unitary_preserves_entropy` + entropy
definition. Triaged DISCHARGE in #58 (Phase 2d).
- **Deadline**: INDEFINITE.

- `proofs/coq/quantum/QuantumCNO.v:551` — `reversible_quantum_zero_dissipation`
- **Owner**: @hyperpolymath
- **Plan**: derivable from `quantum_landauer_bound` + unitarity.
Triaged DISCHARGE in #58 (Phase 2d).
- **Deadline**: INDEFINITE.

- `proofs/coq/quantum/QuantumCNO.v:584` — `fidelity_bound`
- **Owner**: @hyperpolymath
- **Plan**: provable from `inner_product_pos_def` + Cauchy-Schwarz.
Triaged DISCHARGE in #58 (Phase 2d).
- **Deadline**: INDEFINITE.

### Lean — provable, awaiting proof

- `proofs/lean4/LambdaCNO.lean:183` — `subst_closed_term`
Expand Down Expand Up @@ -198,12 +279,30 @@ no longer in §(d).
repeat-mkdir semantics. Mirrors Coq site at `FilesystemCNO.v:421`.
- **Deadline**: INDEFINITE.

- `proofs/lean4/QuantumCNO.lean:134` — `X_gate_not_identity`
- **Owner**: @hyperpolymath
- **Plan**: existence proof; exhibit `|0⟩` as witness once a concrete
basis state is in the model. Mirrors Coq site at `QuantumCNO.v:283`.
- **Deadline**: INDEFINITE.

- `proofs/lean4/QuantumCNO.lean:144` — `H_gate_not_identity`
- **Owner**: @hyperpolymath
- **Plan**: existence proof; exhibit `|0⟩` as witness. Mirrors Coq
site at `QuantumCNO.v:296`.
- **Deadline**: INDEFINITE.

- `proofs/lean4/QuantumCNO.lean:235` — `unitary_inverse_property`
- **Owner**: @hyperpolymath
- **Plan**: follows from `isUnitary` definition (`U†U = I`). Mirrors
Coq site at `QuantumCNO.v:487`.
- **Deadline**: INDEFINITE.

### Lean — pending triage

28 Lean axioms remain to be triaged (QuantumCNO 14, StatMech 14;
Lambda and Filesystem clusters done in Phase 2a/2c). Triage planned
in cluster-sized PRs through 2026-06 — see this file's status block
at the bottom.
14 Lean axioms remain to be triaged (StatMech only; Lambda, Filesystem,
and QuantumCNO clusters done in Phase 2a/2c/2d). Triage planned in
cluster-sized PRs through 2026-06 — see this file's status block at
the bottom.

### Idris2 — pending triage

Expand Down
80 changes: 77 additions & 3 deletions proofs/coq/quantum/QuantumCNO.v
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,14 @@ Open Scope C_scope.

(** Boltzmann constant (J/K) *)
Parameter kB : R.
(* AXIOM: kB_positive; Boltzmann constant — physical constant.
§(c) per docs/proof-debt.md (Phase 2d triage). *)
Axiom kB_positive : kB > 0.

(** Temperature (Kelvin) *)
Parameter temperature : R.
(* AXIOM: temperature_positive; Temperature scalar — physical precondition.
§(c) per docs/proof-debt.md (Phase 2d triage). *)
Axiom temperature_positive : temperature > 0.

(** ** Quantum State Representation *)
Expand All @@ -42,6 +46,8 @@ Axiom temperature_positive : temperature > 0.

(** Dimension of Hilbert space (2^n for n qubits) *)
Parameter dim : nat.
(* AXIOM: dim_positive; Hilbert-space dimensionality precondition.
§(c) per docs/proof-debt.md (Phase 2d triage). *)
Axiom dim_positive : (dim > 0)%nat.

(** Complex vector representing quantum state *)
Expand All @@ -65,18 +71,24 @@ Parameter inner_product : QuantumState -> QuantumState -> C.
(** Inner product axioms (defining properties of a Hilbert space) *)

(** Conjugate symmetry: ⟨ψ|φ⟩ = (⟨φ|ψ⟩)* *)
(* AXIOM: inner_product_conj_sym; Inner product space axiom (conjugate symmetry).
§(c) per docs/proof-debt.md (Phase 2d triage). *)
Axiom inner_product_conj_sym :
forall ψ φ : QuantumState,
inner_product ψ φ = Cconj (inner_product φ ψ).

(** Linearity in second argument: ⟨ψ|aφ₁ + bφ₂⟩ = a⟨ψ|φ₁⟩ + b⟨ψ|φ₂⟩ *)
(* AXIOM: inner_product_linear; Inner product space axiom (linearity).
§(c) per docs/proof-debt.md (Phase 2d triage). *)
Axiom inner_product_linear :
forall ψ φ1 φ2 : QuantumState,
forall a b : C,
(* Requires defining linear combination of states *)
True. (* Simplified - full axiom requires state arithmetic *)

(** Positive definiteness: ⟨ψ|ψ⟩ ≥ 0, and ⟨ψ|ψ⟩ = 0 iff ψ = 0 *)
(* AXIOM: inner_product_pos_def; Inner product space axiom (positive definiteness).
§(c) per docs/proof-debt.md (Phase 2d triage). *)
Axiom inner_product_pos_def :
forall ψ : QuantumState,
(Re (inner_product ψ ψ) >= 0)%R.
Expand Down Expand Up @@ -110,22 +122,33 @@ Qed.

(** Pauli X gate (NOT gate) *)
Parameter X_gate : QuantumGate.
(* AXIOM: X_gate_unitary; Quantum gate primitive (Pauli X) — duplicate of
QuantumMechanicsExact:249 (see follow-up 2 in docs/proof-debt-triage.md).
§(c) per docs/proof-debt.md (Phase 2d triage). *)
Axiom X_gate_unitary : is_unitary X_gate.

(** Pauli Y gate *)
Parameter Y_gate : QuantumGate.
(* AXIOM: Y_gate_unitary; Quantum gate primitive (Pauli Y).
§(c) per docs/proof-debt.md (Phase 2d triage). *)
Axiom Y_gate_unitary : is_unitary Y_gate.

(** Pauli Z gate *)
Parameter Z_gate : QuantumGate.
(* AXIOM: Z_gate_unitary; Quantum gate primitive (Pauli Z).
§(c) per docs/proof-debt.md (Phase 2d triage). *)
Axiom Z_gate_unitary : is_unitary Z_gate.

(** Hadamard gate *)
Parameter H_gate : QuantumGate.
(* AXIOM: H_gate_unitary; Quantum gate primitive (Hadamard).
§(c) per docs/proof-debt.md (Phase 2d triage). *)
Axiom H_gate_unitary : is_unitary H_gate.

(** CNOT gate (two-qubit) *)
Parameter CNOT_gate : QuantumGate.
(* AXIOM: CNOT_gate_unitary; Quantum gate primitive (CNOT).
§(c) per docs/proof-debt.md (Phase 2d triage). *)
Axiom CNOT_gate_unitary : is_unitary CNOT_gate.

(** ** Quantum State Equality *)
Expand All @@ -147,19 +170,28 @@ Notation "ψ =q= φ" := (quantum_state_eq ψ φ) (at level 70).
provided by libraries like CoqQ or Coquelicot in a full development. *)

(** e^0 = 1 *)
(* AXIOM: Cexp_zero; Complex exponential algebra. §(c) per docs/proof-debt.md
(Phase 2d triage). Would collapse to DISCHARGE if Complex.v defines Cexp
constructively — see follow-up 4 in docs/proof-debt-triage.md. *)
Axiom Cexp_zero : Cexp (RtoC 0) = C1.

(** e^{-x} = (e^x)^{-1} *)
(* AXIOM: Cexp_neg; Complex exponential algebra. §(c) per docs/proof-debt.md
(Phase 2d triage). See follow-up 4 (Cexp_zero comment) for collapse plan. *)
Axiom Cexp_neg : forall x : R, Cexp (RtoC (-x)) = Cinv (Cexp (RtoC x)).

(** e^x × e^y = e^{x+y} *)
(* AXIOM: Cexp_add; Complex exponential algebra. §(c) per docs/proof-debt.md
(Phase 2d triage). See follow-up 4 (Cexp_zero comment) for collapse plan. *)
Axiom Cexp_add : forall x y : R, Cexp (RtoC x) * Cexp (RtoC y) = Cexp (RtoC (x + y)).

(* Cmult_1_l, Cmult_assoc, Cconj_RtoC, Cconj_mult are now PROVED lemmas
in CNO.Complex — no longer axioms (strengthens the development and
removes the redeclaration clash). *)

(** Complex conjugate of exponential: (e^x)* = e^{x*} *)
(* AXIOM: Cconj_Cexp; Complex exponential algebra. §(c) per docs/proof-debt.md
(Phase 2d triage). See follow-up 4 (Cexp_zero comment) for collapse plan. *)
Axiom Cconj_Cexp : forall x : C, Cconj (Cexp x) = Cexp (Cconj x).

(* `global_phase_unitary` axiom moved below, after `global_phase_gate`
Expand Down Expand Up @@ -254,7 +286,11 @@ Definition global_phase_gate (θ : R) : QuantumGate :=
fun ψ n => Cexp (RtoC θ) * ψ n.

(** Global phase gates are unitary (standard QM result). Assumption —
see PROOF-STATUS-2026-05-18.md (post-T0 axiom audit). *)
see PROOF-STATUS-2026-05-18.md (post-T0 axiom audit).

Triaged DISCHARGE in docs/proof-debt-triage.md; enumerated as §(d)
DEBT in docs/proof-debt.md (Phase 2d) — derivable from gate algebra
(e^{iθ} U is unitary iff U is). *)
Axiom global_phase_unitary :
forall θ : R, is_unitary (global_phase_gate θ).

Expand All @@ -279,7 +315,11 @@ Qed.

(** ** Non-CNO Gates *)

(** X gate is NOT a CNO because it flips |0⟩ ↔ |1⟩ *)
(** X gate is NOT a CNO because it flips |0⟩ ↔ |1⟩

Triaged DISCHARGE in docs/proof-debt-triage.md; enumerated as §(d)
DEBT in docs/proof-debt.md (Phase 2d) — existence proof, exhibit
|0⟩ as witness once a concrete basis state is in the model. *)
Axiom X_gate_not_identity : exists ψ, ~ (X_gate ψ =q= ψ).

Theorem X_gate_not_cno : ~ is_quantum_CNO X_gate.
Expand All @@ -292,7 +332,11 @@ Proof.
contradiction.
Qed.

(** Hadamard gate is NOT a CNO *)
(** Hadamard gate is NOT a CNO

Triaged DISCHARGE in docs/proof-debt-triage.md; enumerated as §(d)
DEBT in docs/proof-debt.md (Phase 2d) — existence proof, exhibit
|0⟩ as witness. *)
Axiom H_gate_not_identity : exists ψ, ~ (H_gate ψ =q= ψ).

Theorem H_gate_not_cno : ~ is_quantum_CNO H_gate.
Expand Down Expand Up @@ -358,17 +402,25 @@ Qed.
(** Von Neumann entropy (quantum analog of Shannon entropy) *)
Parameter von_neumann_entropy : QuantumState -> R.

(* AXIOM: von_neumann_nonneg; Quantum statmech — von Neumann entropy
non-negativity. §(c) per docs/proof-debt.md (Phase 2d triage). *)
Axiom von_neumann_nonneg :
forall ψ : QuantumState,
von_neumann_entropy ψ >= 0.

(** Pure states have zero entropy *)
(* AXIOM: von_neumann_pure_zero; S(|ψ⟩⟨ψ|) = 0 for pure states.
§(c) per docs/proof-debt.md (Phase 2d triage). *)
Axiom von_neumann_pure_zero :
forall ψ : QuantumState,
is_normalized ψ ->
von_neumann_entropy ψ = 0.

(** Unitary evolution preserves entropy *)
(* AXIOM: unitary_preserves_entropy; Quantum statmech postulate — von Neumann
entropy invariant under unitary. Duplicate of QuantumMechanicsExact:316
(see follow-up 2 in docs/proof-debt-triage.md).
§(c) per docs/proof-debt.md (Phase 2d triage). *)
Axiom unitary_preserves_entropy :
forall (U : QuantumGate) (ψ : QuantumState),
is_unitary U ->
Expand All @@ -388,6 +440,10 @@ Qed.
(** ** No-Cloning Theorem *)

(** The no-cloning theorem states you cannot copy arbitrary quantum states *)
(* AXIOM: no_cloning; Fundamental quantum theorem — standardly taken as a
physical postulate in this style of axiomatisation. Duplicate of
QuantumMechanicsExact:393 (see follow-up 2 in docs/proof-debt-triage.md).
§(c) per docs/proof-debt.md (Phase 2d triage). *)
Axiom no_cloning :
~ exists (U : QuantumGate),
forall ψ : QuantumState,
Expand Down Expand Up @@ -418,6 +474,8 @@ Qed.
Parameter measure : QuantumState -> ProgramState.

(** Axiom: Measuring after identity gate gives same result as measuring before *)
(* AXIOM: measure_identity_commutes; Measurement postulate.
§(c) per docs/proof-debt.md (Phase 2d triage). *)
Axiom measure_identity_commutes :
forall (ψ : QuantumState),
measure (I_gate ψ) = measure ψ.
Expand Down Expand Up @@ -484,6 +542,9 @@ Qed.
(** U followed by U† is a CNO (unitary inverse) *)
Parameter unitary_inverse : QuantumGate -> QuantumGate.

(* Triaged DISCHARGE in docs/proof-debt-triage.md; enumerated as §(d) DEBT
in docs/proof-debt.md (Phase 2d) — follows from is_unitary definition
(U†U = I). *)
Axiom unitary_inverse_property :
forall (U : QuantumGate) (ψ : QuantumState),
is_unitary U ->
Expand Down Expand Up @@ -535,19 +596,27 @@ Qed.
Parameter quantum_energy_dissipated : QuantumGate -> QuantumState -> R.

(** Landauer bound for quantum operations *)
(* AXIOM: quantum_landauer_bound; Physical postulate (quantum Landauer).
§(c) per docs/proof-debt.md (Phase 2d triage). *)
Axiom quantum_landauer_bound :
forall (U : QuantumGate) (ψ : QuantumState),
let ΔS := (von_neumann_entropy (U ψ) - von_neumann_entropy ψ)%R in
(ΔS <= 0)%R -> (* Entropy decreased (information erased) *)
(quantum_energy_dissipated U ψ >= kB * temperature * (-ΔS))%R.

(** Unitary operations preserve entropy exactly *)
(* Triaged DISCHARGE in docs/proof-debt-triage.md; enumerated as §(d) DEBT
in docs/proof-debt.md (Phase 2d) — derivable from
`unitary_preserves_entropy` + entropy definition. *)
Axiom unitary_zero_entropy_change :
forall (U : QuantumGate) (ψ : QuantumState),
is_unitary U ->
von_neumann_entropy (U ψ) = von_neumann_entropy ψ.

(** Reversible quantum operations dissipate zero energy *)
(* Triaged DISCHARGE in docs/proof-debt-triage.md; enumerated as §(d) DEBT
in docs/proof-debt.md (Phase 2d) — derivable from `quantum_landauer_bound`
+ unitarity. *)
Axiom reversible_quantum_zero_dissipation :
forall (U : QuantumGate) (ψ : QuantumState),
is_unitary U ->
Expand Down Expand Up @@ -581,9 +650,14 @@ Parameter noisy_channel : QuantumGate -> QuantumGate.
(** Fidelity: how close is noisy gate to ideal gate *)
Parameter fidelity : QuantumGate -> QuantumGate -> R.

(* Triaged DISCHARGE in docs/proof-debt-triage.md; enumerated as §(d) DEBT
in docs/proof-debt.md (Phase 2d) — provable from `inner_product_pos_def`
+ Cauchy-Schwarz. *)
Axiom fidelity_bound : forall U V, 0 <= fidelity U V <= 1.

(** Even with noise, approximate CNOs preserve high fidelity *)
(* AXIOM: approximate_cno; Definitional / structural — encodes a relation,
not a derivable fact. §(c) per docs/proof-debt.md (Phase 2d triage). *)
Axiom approximate_cno :
forall U : QuantumGate,
is_quantum_CNO U ->
Expand Down
Loading
Loading