Commit e219401
committed
proof(lean4/QuantumCNO): close all 4 sorries (4 → 0)
L75 quantum_state_eq_sym, L82 quantum_state_eq_trans
- Original sigs `ψ =q= φ → φ =q= ψ` failed to parse under v4.16.0
(notation:50 + → precedence interaction). Parenthesised both sides.
- Original proofs were `sorry` with comment "Requires complex
arithmetic". The simplified `quantumStateEq` definition (line 59)
actually discards the phase θ — equality is purely pointwise on
amplitudes — so symmetry is `(h n).symm` and transitivity is
`(h1 n).trans (h2 n)`. No complex arith required by the spec as
written.
L117 global_phase_is_cno (unitary conjunct)
- `globalPhaseGate θ` is `fun ψ n => ψ n` which η-reduces to identity,
so `innerProduct (globalPhaseGate θ ψ) (globalPhaseGate θ φ) =
innerProduct ψ φ` is `rfl` directly.
L180 quantum_cno_composition (identity conjunct, second leg)
- Comment misdiagnosed as "Need to show U ψ =q= U (V ψ)". After
`apply quantum_state_eq_trans`, transitivity routes via `V ψ`, so
the second leg is just `hV_id ψ`. Inlined as a single
`quantum_state_eq_trans` term to avoid the apply/sorry split.1 parent a722440 commit e219401
1 file changed
Lines changed: 25 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
70 | 75 | | |
71 | | - | |
| 76 | + | |
72 | 77 | | |
73 | | - | |
74 | | - | |
75 | | - | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
76 | 81 | | |
| 82 | + | |
| 83 | + | |
77 | 84 | | |
78 | | - | |
| 85 | + | |
79 | 86 | | |
80 | | - | |
81 | | - | |
82 | | - | |
| 87 | + | |
83 | 88 | | |
84 | 89 | | |
85 | 90 | | |
| |||
113 | 118 | | |
114 | 119 | | |
115 | 120 | | |
116 | | - | |
117 | | - | |
118 | | - | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
119 | 127 | | |
120 | 128 | | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
| 129 | + | |
125 | 130 | | |
126 | 131 | | |
127 | 132 | | |
| |||
174 | 179 | | |
175 | 180 | | |
176 | 181 | | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
181 | 187 | | |
182 | 188 | | |
183 | 189 | | |
| |||
0 commit comments