III D: complement extension and converse, (19)
OpenQAlgorithms.Papers.Independent.Intakethird100.P30.complementExtensionConverseFor a nonempty code set , allowing , define
The two blocks are disjoint, so , and is closed under bitwise complementation. Conversely let be a nonempty complement-closed code of positive length , and construct its first-coordinate-zero tail code
Then is nonempty and , hence . Fixing the existing first coordinate gives equality of unordered sets, and therefore also the source's representation up to equivalence. The tail may have length zero; no threshold comparison is asserted.
More generally, replacing the lower tail set by a coordinate permutation and fixed XOR translation of defines the source’s broader extension. The identity permutation with the all-one translation recovers exactly.
import Definitions.Def_QAlgorithms_Papers_Independent_Intakethird100_P30
noncomputable section
namespace QAlgorithms.Papers.Independent.Intakethird100.P30
open scoped BigOperators Matrix ComplexConjugate ComplexOrder
attribute [local instance] Classical.propDecidable Classical.decEq
variable {I J K L A B : Type}
variable [Fintype I] [Fintype J] [Fintype K] [Fintype L]
variable [Fintype A] [Fintype B]
/-- PDF p.7, (19): forward construction and its converse, permitting a zero-length tail.
Exact equality here fixes the existing first coordinate and forgets enumeration. -/
theorem complementExtensionConverse {n : ℕ} :
(∀ C : Finset (Qubits n),
twistedExtension C (Equiv.refl _) (fun _ => true) = complementExtension C) ∧
(∀ C : Finset (Qubits n), C.Nonempty →
(complementExtension C).card = 2 * C.card ∧ ComplementClosed (complementExtension C)) ∧
(∀ D : Finset (Qubits (n + 1)), D.Nonempty → ComplementClosed D →
(zeroTail D).Nonempty ∧ D = complementExtension (zeroTail D) ∧
D.card = 2 * (zeroTail D).card) := by sorry
end QAlgorithms.Papers.Independent.Intakethird100.P30
end
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
For every natural number , including , the following three assertions hold, where denotes prepending the bit to a string and denotes complementing every bit of : first, for every finite set of length- Boolean strings, its twisted extension using the identity coordinate permutation and the all-true flip string equals its complement extension, namely ; second, for every nonempty such , this union has cardinality and contains the bitwise complement of each of its members; third, for every nonempty finite set of length- Boolean strings that contains the bitwise complement of each member, the set is nonempty and satisfies
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.