Lemma B.5.
OpenQAlgorithms.Papers.Independent.Gap48.P23.seed_diagram_formulaFor , write , , , and , where . The source vectors are constructed from the Dicke vector followed by ordered normalized singlets. The same fixed real permutation coefficients are used for every , and are orthonormalized and spanning only at . All labels have their actual dependent ranges. Let , where is the explicit normalized-monomial matrix of (C.9). Let be the source Schur transform followed by shape measurement and multiplicity trace, and let append in each measured sector and apply inverse Schur. Write for permutation averaging.
Let be the source diagram for , with its closed-component count and oriented contraction sign . Then
The sign is independently constructed from binary labels respecting wires, opposite singlet endpoints and ordered singlet amplitudes; the exponent is an integer.
This identifies the source-constructed Schur coordinates and their operational use in the majority algorithm.
import Definitions.Def_QAlgorithms_Papers_Independent_Gap48_P23
noncomputable section
namespace QAlgorithms.Papers.Independent.Gap48.P23
open MeasureTheory
open scoped ComplexConjugate Matrix ComplexOrder
attribute [local instance] Classical.propDecidable
attribute [local instance] Classical.decEq
-- Exact frozen coordinate helpers; no paper-local redeclarations.
open QAlgorithms.Papers.Independent.Information100.P58 (Word)
open QAlgorithms.Papers.Independent.Information100.P21 (Op)
open QAlgorithms.Papers.Independent.Information100.P63 (tensorPower)
/-- PDF pp.53-54, Lemma B.5: the graph coefficient and full heterogeneous
seed identity. The exponent loops-k is in Z, preserving negative powers. -/
theorem seed_diagram_formula (n : ℕ) (hn : 1 ≤ n)
(k l : TwoRowShape n) (p : Equiv.Perm (Fin n))
(w : Fin (degree n k+1)) (v : Fin (degree n l+1)) :
(diagramSign k p = 1 ∨ diagramSign k p = -1) ∧
inner ℂ (schurSeed n k w)
(WithLp.toLp 2 ((wordPermutationMatrix n 2 p).mulVec (schurSeed n l v))) =
if k = l ∧ w.val = v.val then
if ProperMatching k k p then
((diagramSign k p * (2:ℝ)^((diagramLoops k p : ℤ)-(k.val:ℤ))) : ℂ)
else 0
else 0 := by sorry
end QAlgorithms.Papers.Independent.Gap48.P23
end
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
For every natural number , integers with , permutation of , and integers and , let be the complex vector on binary words whose amplitude is zero unless the first bits contain exactly ones, and otherwise is times the product over of a factor for the pair , for , and for equal bits; define correspondingly, and set . For the diagram with on both sides, join each pair on each side and join to ; vertices of index less than are free. Let be the number of connected components containing no free vertices, and call the diagram proper when any two distinct free vertices connected by a path lie on different sides. Define by choosing a Boolean coloring that agrees across the permutation edges, disagrees across the paired edges, and is false at every free vertex, and taking the product over both sides and all of when the color at index is true and otherwise; if no such coloring exists, define . The theorem asserts or , and
where the real value on the right is regarded as complex, , and is an integer exponent, so negative values give reciprocal powers. Empty products are , including when .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.