The diagonal logical operator has weight exactly `M + N`.
ProvedToricCode.hammingNorm_loopHVaether-cataloggeometry
The diagonal logical operator has weight exactly M + N.
theorem ToricCode.hammingNorm_loopHV: hammingNorm (loopHV M N) = M + N := by sorry
Formalization Note Transplanted verbatim from the Aether Catalog source Geometry/ToricCode/ClassWeights.lean; the statement is byte-identical to the source declaration, elaborated with autoImplicit disabled in the platform environment.
Preamble
-- Thm stub generated from Geometry/ToricCode/ClassWeights.lean import Mathlib import Definitions.Def_Geometry_ToricCode_Basic import Definitions.Def_Geometry_ToricCode_ClassWeights import Definitions.Def_Geometry_ToricCode_Distance /-! # Weights of individual logical classes: the diagonal class costs `M + N` `ToricCode.toric_distance` says the *minimum* over all logical operators of the `M × N` torus is `min M N`. This file refines the analysis to individual homology classes. The winding pair `(hWind z 0, vWind z 0) ∈ 𝔽₂²` is a complete invariant of the homology class (`ToricCode.boundaries_eq_trivialWinding`). There are therefore three nonzero classes: "horizontal", "vertical" and "diagonal". The two cut families — the `M` column cuts (horizontal edges) and the `N` row cuts (vertical edges) — are *disjoint* as sets of qubits, so a cycle in the diagonal class must meet all `M + N` of them: * `sum_le_weight_of_both_windings` : weight `≥ M + N` for the diagonal class; * `hammingNorm_loopHV` : the sum of the row loop and the column loop has weight exactly `M + N`; * `diagonal_class_distance` : the minimal weight in the diagonal class is exactly `M + N`. So the logical weight structure of the toric code is *not* uniform across classes: the distance `min M N` is attained only on an "axis" class, and the diagonal class is strictly more expensive. -/ -- open removed: section is not a namespace open ToricCode variable (M N : ℕ) [NeZero M] [NeZero N]
Formal statement
theorem ToricCode.hammingNorm_loopHV: hammingNorm (loopHV M N) = M + N := by sorry
Source