II B / III C: unique two-word code without constant columns
OpenQAlgorithms.Papers.Independent.Intakethird100.P30.twoWordClassificationLet and let consist of two distinct binary words. Put , their Hamming distance, so . Write for the repetition code, and for the Bob-only symmetric-extendability threshold of its constructed filtered family. Deleting constant coordinates produces a code equivalent to , and
If already has no constant columns, it is equivalent to and its threshold equals . Thus repetition codes are optimal among two-word codes at the same block length, including the valid one-bit case. This statement does not assert optimality among codes of other sizes.
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 pp.4,6: classification and optimality among two-word codes, including
n=1 and reduction to positive Hamming distance after constant-column deletion. -/
theorem twoWordClassification {n : ℕ} (hn : 1 ≤ n)
(C : Bool → Qubits n) (hC : Function.Injective C) :
(NoConstantColumns C → CodeEquivalent C (repetition (Fin n)) ∧
bobThreshold C = bobThreshold (repetition (Fin n))) ∧
1 ≤ hammingDist (C false) (C true) ∧
CodeEquivalent (deleteConstants C)
(repetition (Fin (hammingDist (C false) (C true)))) ∧
bobThreshold C = bobThreshold (repetition (Fin (hammingDist (C false) (C true)))) ∧
bobThreshold C ≤ bobThreshold (repetition (Fin n)) := by sorry
end QAlgorithms.Papers.Independent.Intakethird100.P30
end
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
Let and let be injective. Write for the Hamming distance between and , let , and let be the restriction of to . For any coordinate type , let be the repetition code. Two codes and are called equivalent here precisely when there are bijections and and a Boolean mask such that for all . Define
and let be the supremum of together with the for which has no positive semidefinite extension to an additional copy of its label subsystem with both label-copy partial traces equal to , without requiring trace one. The theorem asserts that if every coordinate of varies between some two labels, then is equivalent to and their -values agree. It further asserts, without that additional condition, that
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.