Catching a Lost Photon Without Breaking Quantum Entanglement
Machine-checked Lean 4 proofs and a zero-install Python verifier certify exact single-erasure recovery — even when the message stays entangled with an arbitrary outside system — and map every two-erasure obstruction for the four-carrier [[4, 1, 2]] code.
The Puzzle
Imagine sending one fragile quantum bit down an optical channel by encoding it across four light carriers ([[4, 1, 2]]). In an erasure channel, a detector warns you the instant one carrier vanishes along the way — you know which slot went missing, even though you never peeked at the encoded message itself.
Grassl, Beth, and Pellizzari (1997) and Leung, Nielsen, Chuang, and Yamamoto (1997) showed that four carriers are enough to recover any single flagged loss, and Lu et al. (2008) realized the code space optically. The verification question here is concrete and channel-level: can a standalone, zero-dependency computer proof check every single-loss circuit, prove that entanglement with an arbitrary external partner survives intact, and classify every double-loss failure without trusting external libraries or SAT oracles?
What We Checked and Found
Across four compact zero-Mathlib Lean 4.34.1 files and a pure-Python standard-library checker, the deposit certifies four clean pieces for the four-carrier subcode spanned by |0000> + |1111> and |0011> + |1100> (stabilizers XXXX, ZZII, IIZZ):
- Exact Knill–Laflamme conditions (
Lean-Checked,trustLevel = 0): Verifies the code isometryW^T W = 2I, completeness of the Kraus operators across all four single-carrier erasure slots, and all16scaled Knill–Laflamme compression identitiesW^T (|a><b|)_j W = delta_{ab} I. - Four-CNOT decoders & arbitrary external entanglement (
Lean-Checked,trustLevel = 0): Proves bijectivity and two-sided unitarity (U_j^T U_j = U_j U_j^T = I) for an explicit four-CNOT permutation circuit on the three surviving carriers plus a fresh|0>ancilla. Proves exact matrix-unit recovery and normalized density-matrix restoration over any scalar structure with a multiplicative half (for example,Q,R, orC) and its complex-pair extension, while preserving entanglement with an arbitrary finite external referenceFin d. - All six two-erasure obstructions (
Lean-Checked+Computed): Proves in Lean that no quantum recovery survives any of the six two-carrier erasures ({0, 1}through{2, 3}) or a mutated codeword (|0011> -> |0101>). In Python, dual-verifies which single classical bit still survives each pair: logicalX(span(I, X)) for{0, 1}and{2, 3}, and logicalZ(span(I, Z)) for the four cross-block pairs. - Exact correlated-loss acceptance grid (
Computed): Checks all7exact rational entries of the correlated-loss acceptance and marginal survival table ateta = 8986318767 / 10^10using exactfractions.Fractionarithmetic with zero floating-point rounding.
Why You Can Trust the Check
lean/CheckReplay.lean replays all 167 local constants across all 4 zero-Mathlib modules onto clean Lean Std at trustLevel = 0 (0 custom axioms, 0 sorry, 0 Classical.choice), pinning exact canonical kernel Expr SHA-256 hashes for all 25 target theorems and all 78 local helpers. Three planted broken Lean files fail under kernel decide as intended.
The pure-Python verifier (scripts/verify_bundle.py, zero external packages, zero AST assert statements, zero writes inside the unpacked folder) checks SHA256SUMS.txt, cross-checks every theorem's live axiom set against the MANUSCRIPT.md bridge (Paper Proof (Unrefereed) framing), independently recomputes all 16 Knill–Laflamme compressions, all 6 two-erasure surviving algebras, and all 7 exact rational loss rows, and rejects 6/6 planted Python faults. Preserved archival Mathlib companion files under lean/mathlib/ are explicitly left outside the offline build and carry no live-compilation claim.
What This Does NOT Claim
Physical optical hardware realization, gate-error fault tolerance, false erasure flags, unflagged multi-error decoding, higher-distance or qLDPC code families, and independent external specialist peer review remain strictly Open and outside this deposit. This work certifies the exact finite-dimensional algebraic channel model, not a laboratory device.
Receipt Strip
- Evidence Label:
Lean-Checked(standalone zero-Mathlib Lean4.34.1,trustLevel = 0,25/25pinned targets,78/78pinned helpers,0 Classical.choice);Paper Proof (Unrefereed)(MANUSCRIPT.mdframing & bridge);Computed(zero-install pure-Python stdlib verification,6/6planted Python controls and3/3planted Lean controls rejected);Cited(prior QEC foundations and 2026 Lean QEC suites);Open(hardware realization, gate fault tolerance, false flags, higher-distance families, external peer review). - Standing on the Shoulders of Giants: Grassl, Beth, and Pellizzari (1997), Knill and Laflamme (1997), Leung, Nielsen, Chuang, and Yamamoto (1997), Knill, Laflamme, and Milburn (2001), Browne and Rudolph (2005), Ralph, Hayes, and Gilchrist (2005), Lu et al. (2008),
Lean-QEC(Ehatamm, Lee, Wu, and Tao, 2026,arXiv:2605.16523), andQECLean(Jain, Raveendran, and Albarghouthi, 2026,arXiv:2611.21236). - Check It Yourself: Full offline replay:
python -O -I scripts/verify_bundle.py(pure Python without Lean:python -O -I scripts/verify_bundle.py --exact-stdlib --skip-lean). - Archive & Identifiers:
gcy-p20-quantum-erasure-recovery-v1.zip(48.70 KiB,49,866bytes; published live on Zenodo (CC BY 4.0)) | Version DOI