Skip to content

Latest commit

 

History

History
345 lines (269 loc) · 15.3 KB

File metadata and controls

345 lines (269 loc) · 15.3 KB

Proof Debt — absolute-zero

Schema: hyperpolymath/standards TRUSTED-BASE-REDUCTION-POLICY.adoc (standards#203).

Initial inventory

The 2026-05-26 estate proof-debt audit (standards#195) detected 129 soundness-relevant escape hatches in this repo (now 124 after intervening closures). Markers were originally seeded in §(d) DEBT pending classification.

Phase 1 triage — 72 Coq Axioms (2026-05-27, #58)

The per-marker classification for every Coq Axiom lives in docs/proof-debt-triage.md. Summary:

Disposition Count
§(c) AXIOM (TRUSTED-BASE) 52
§(a) DISCHARGE backlog 17
§(b) PROPERTY-TEST 3
Total Coq Axioms 72

Out of scope for Phase 1 (still in §(d) pending future triage): 52 Lean 4 axiom declarations and the 7 Idris2 postulates tracked by #27.

Phase 2a triage — Lean Lambda cluster (2026-05-27)

Per-cluster Lean triage rolling out 2026-05-27 in cluster-sized PRs. First cluster: proofs/lean4/LambdaCNO.lean (3 axioms).

Line Identifier Disposition Justification
183 subst_closed_term §(d) DEBT Standard metatheoretic property of lambda calculus; provable by induction on t once the substitution-on-closed-terms lemma is mechanised.
232 y_combinator_not_identity §(c) AXIOM Non-termination claim about Y combinator; requires step-indexed semantics or coinduction (same justification as Coq y_not_cno).
258 eta_equivalence §(c) AXIOM η-equivalence is not derivable under β-only reduction (same justification as Coq eta_equivalence at LambdaCNO.v:376).

The two §(c) entries are annotated inline with -- AXIOM: leading comments. The §(d) entry below has an owner + deadline.

Phase 2c triage — Lean Filesystem cluster (2026-05-27)

Second Lean cluster: proofs/lean4/FilesystemCNO.lean (21 axioms).

POSIX primitive operations (§(c) AXIOM — opaque ops, 10)

Line Identifier Disposition Justification
56 mkdir §(c) AXIOM Opaque POSIX primitive — no executable body in the model.
60 rmdir §(c) AXIOM Opaque POSIX primitive.
64 create §(c) AXIOM Opaque POSIX primitive.
68 unlink §(c) AXIOM Opaque POSIX primitive.
72 readFile §(c) AXIOM Opaque POSIX primitive.
76 writeFile §(c) AXIOM Opaque POSIX primitive.
80 stat §(c) AXIOM Opaque POSIX primitive.
84 chmod §(c) AXIOM Opaque POSIX primitive.
88 chown §(c) AXIOM Opaque POSIX primitive.
92 rename §(c) AXIOM Opaque POSIX primitive.

POSIX semantics specifications (§(c) AXIOM — mirror Coq, 6)

Line Identifier Disposition
98 mkdir_rmdir_inverse §(c) AXIOM (mirrors Coq)
104 create_unlink_inverse §(c) AXIOM (mirrors Coq)
109 read_write_identity §(c) AXIOM (mirrors Coq)
115 chmod_identity §(c) AXIOM (mirrors Coq)
121 rename_identity §(c) AXIOM (mirrors Coq)
126 rename_inverse §(c) AXIOM (mirrors Coq)

Snapshot primitives (§(c) AXIOM — opaque ops, 2)

Line Identifier Disposition
281 snapshot §(c) AXIOM (opaque snapshot primitive)
285 restore §(c) AXIOM (opaque restore primitive)

Discharge candidates (§(d) DEBT — 3)

These claim provable existence / equality facts that should follow from the §(c) primitives once the model is concretely defined. They need a discharge PR — see §(d) DEBT below.

Line Identifier Disposition Plan
233 mkdir_not_identity §(d) DEBT Existence proof; exhibit one concrete fs lacking the path.
288 snapshot_restore_identity §(d) DEBT Composite theorem; derivable from snapshot/restore once a concrete snapshot model lands.
309 mkdir_idempotent §(d) DEBT Follows from mkdir_rmdir_inverse family with stronger repeat-mkdir semantics.

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 `
144 H_gate_not_identity §(d) DEBT Existence proof; exhibit `
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 docs/proof-debt-triage.md — each row marked DISCHARGE is a candidate for a future proof PR.

(b) BUDGETED — tested with a refutation budget (3)

Decidability claims over opaque types: fs_eq_dec, state_dec, state_eq_dec. Belong to §(b) once a §(b) property-test budget is attached; otherwise treat as §(c).

(c) NECESSARY AXIOM (Coq, 52)

Physics constants, quantum gate primitives, POSIX semantics, Kolmogorov + Shannon entropy core inequalities, complex exponential algebra, and fundamental physical laws (second law, Landauer, no-cloning). Full enumeration in docs/proof-debt-triage.md.

(d) DEBT — actively to be closed

After Phase 1, the §(d) bucket contains only the Lean axioms and 7 Idris2 postulates that have not yet been triaged. Coq markers are no longer in §(d).

Coq — provable, awaiting proof

  • proofs/coq/category/CNOCategory.v:323hom_functor

    • Owner: @hyperpolymath
    • Plan: replace Axiom hom_functor : ... Functor C C with the proper Yoneda construction Functor C SetCategory. The file's leading comment (L312-322) records why this is currently axiomatised: (1) yoneda_cno is already proven without it, (2) SetCategory needs universe-polymorphism machinery, (3) the conceptual claim stands.
    • Triage: classified DISCHARGE in docs/proof-debt-triage.md (Phase 1, #58).
    • Deadline: INDEFINITE (blocked on SetCategory instance — universe-polymorphism scaffolding precondition).
  • proofs/coq/filesystem/FilesystemCNO.v:300mkdir_not_identity

    • Owner: @hyperpolymath
    • Plan: existence proof; exhibit one concrete fs lacking the path. Triaged DISCHARGE in #58.
    • Deadline: INDEFINITE (small proof; awaits a discharge PR).
  • proofs/coq/filesystem/FilesystemCNO.v:316write_different_not_identity

    • Owner: @hyperpolymath
    • Plan: existence proof; exhibit one concrete content mismatch. Triaged DISCHARGE in #58.
    • Deadline: INDEFINITE.
  • proofs/coq/filesystem/FilesystemCNO.v:397transaction_cno

    • Owner: @hyperpolymath
    • Plan: composite theorem; derivable from primitive _inverse axioms once a transaction definition is in place. Triaged DISCHARGE in #58.
    • Deadline: INDEFINITE (blocked on transaction definition).
  • proofs/coq/filesystem/FilesystemCNO.v:421mkdir_idempotent

    • Owner: @hyperpolymath
    • Plan: follows from mkdir_rmdir_inverse family + stronger repeat-mkdir semantics. Triaged DISCHARGE in #58.
    • Deadline: INDEFINITE.
  • proofs/coq/filesystem/FilesystemCNO.v:453snapshot_restore_identity

    • Owner: @hyperpolymath
    • Plan: composite theorem; derivable from primitive _identity / _inverse axioms once a snapshot model lands. Triaged DISCHARGE in #58.
    • Deadline: INDEFINITE.
  • proofs/coq/quantum/QuantumCNO.v:258global_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:283X_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:296H_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:487unitary_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:545unitary_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:551reversible_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:584fidelity_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:183subst_closed_term

    • Owner: @hyperpolymath
    • Plan: discharge by induction on t : LambdaTerm; closed-term invariant carries through LVar, LAbs, LApp cases. Sibling to Coq's subst lemmas in proofs/coq/lambda/LambdaCNO.v.
    • Deadline: INDEFINITE (no proof-PR scheduled yet — provable; awaits Lean-side discharge push).
  • proofs/lean4/FilesystemCNO.lean:233mkdir_not_identity

    • Owner: @hyperpolymath
    • Plan: existence proof; exhibit one concrete fs lacking the path. Mirrors Coq site at FilesystemCNO.v:300.
    • Deadline: INDEFINITE.
  • proofs/lean4/FilesystemCNO.lean:288snapshot_restore_identity

    • Owner: @hyperpolymath
    • Plan: composite theorem; derivable from snapshot/restore primitives once a concrete snapshot model is in place. Mirrors Coq site at FilesystemCNO.v:453.
    • Deadline: INDEFINITE.
  • proofs/lean4/FilesystemCNO.lean:309mkdir_idempotent

    • Owner: @hyperpolymath
    • Plan: follows from mkdir_rmdir_inverse + stronger repeat-mkdir semantics. Mirrors Coq site at FilesystemCNO.v:421.
    • Deadline: INDEFINITE.
  • proofs/lean4/QuantumCNO.lean:134X_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:144H_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:235unitary_inverse_property

    • Owner: @hyperpolymath
    • Plan: follows from isUnitary definition (U†U = I). Mirrors Coq site at QuantumCNO.v:487.
    • Deadline: INDEFINITE.

Lean — pending triage

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

7 Idris2 postulates in src/abi/Layout.idr. Tracked by #27.

(Coq markers no longer in §(d) post Phase 1; see triage doc for §a/§b/§c.)

If 129 > 30, the list above shows the first 30 only. The full list is reproducible via:

bash /path/to/standards/scripts/check-trusted-base.sh .

Suggested triage process

  1. Run scripts/check-trusted-base.sh locally; it lists every marker with file:line.
  2. For each marker, decide:
    • Can this be proven? → §(a) DISCHARGED via a PR that adds the proof.
    • Is this at an FFI / extraction / opaque-primitive boundary? → §(b) or §(c). Add a property test and document the refutation budget for §(b), or cite the metatheoretic justification for §(c).
    • Is this temporary debt? → §(d) with a deadline.
  3. Update this file in the same PR that lands the disposition.
  4. The check-trusted-base CI job (standards#211) ensures markers are never un-annotated AND un-enumerated simultaneously.

Companion documents


🤖 Initial seed by Claude Code, 2026-05-26.