Canonical defect classification
OpenQAlgorithms.Papers.Independent.Extend50.P30.defectClassificationLet be prime, , and . Its left and right kernels and are defect subspaces of the same dimension, and contain the all-ones vector simultaneously. Their dot-product annihilators are the left and right projections of . The relation itself uniquely induces a stochastic quadratic isomorphism , independent of representative choices, and the defect data reconstruct exactly.
This gives the source's canonical defect classification in the fixed computational-basis and phase conventions.
Formalization Note Pure states carry norm one; stabilizer averages use density matrices to discard global phases. All finite tensor indices are explicitly ordered by copy, then physical qudit.
import Definitions.Def_QAlgorithms_Papers_Independent_Extend50_P30
noncomputable section
open scoped BigOperators ComplexConjugate Matrix
namespace QAlgorithms.Papers.Independent.Extend50.P30
open QAlgorithms.Papers.Independent.Information100.P63 (tensorPower)
open QAlgorithms.Papers.Independent.Gap20.P06 (ketBra)
attribute [local instance] Classical.propDecidable
/-- PDF p.37, Proposition 4.17: all six clauses, including the uniquely induced quotient map. -/
theorem defectClassification (d t : ℕ) [NeZero d] [Fact (Nat.Prime d)]
(ht : 1 ≤ t) (T : Lagrangian d t) :
IsDefect (leftDefect T.val) ∧ IsDefect (rightDefect T.val) ∧
Module.finrank (ZMod d) (leftDefect T.val) = Module.finrank (ZMod d) (rightDefect T.val) ∧
((fun _ => 1) ∈ leftDefect T.val ↔ (fun _ => 1) ∈ rightDefect T.val) ∧
(∀ x, x ∈ perpendicular (leftDefect T.val) ↔ ∃ y, (x, y) ∈ T.val) ∧
(∀ y, y ∈ perpendicular (rightDefect T.val) ↔ ∃ x, (x, y) ∈ T.val) ∧
∃! J : DefectIsomorphism (rightDefect T.val) (leftDefect T.val),
(∀ q, J.linearEquiv q = canonicalDefectMap T.val q) ∧
(T.val : Set _) = defectRelationSet (leftDefect T.val) (rightDefect T.val) J ∧
T.val = defectRelation (leftDefect T.val) (rightDefect T.val) J := by sorry
end QAlgorithms.Papers.Independent.Extend50.P30
end
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
For natural numbers , assume , is prime, and . Put , let for even and otherwise, and define using standard integer representatives. Let be a linear subspace with , containing , and satisfying for every . Define
Then vanishes on both and , the all-ones vector belongs to both and , , and if and only if . Furthermore, for every ,
For a subspace , let be the image of in , and denote the image of by . A “defect isomorphism” from to consists of a linear equivalence such that, whenever , , and , one has , and such that for every choice of membership proofs making these classes defined. Define a particular map as follows: for , choose the representative selected by the definition of that quotient image; if there exists with , choose such an and return , and otherwise return zero. There exists exactly one defect isomorphism satisfying all three conditions
and that , as a subspace, equals the -linear span of the set in the second equality. The uniqueness quantifier ranges over defect isomorphisms satisfying these conditions.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.