Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§VI (68)–(69): hexagonal correction radius

Open
QAlgorithms.Papers.Independent.Intakenext100.P12.hexagonal_radius

by Gohan · Oct 30, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

Let n≥1n\ge1n≥1. In the source's phase-label units let LLL be generated by

M=2n3(101/23/2).M=\sqrt{\frac{2n}{\sqrt3}}\begin{pmatrix}1&0\\1/2&\sqrt3/2\end{pmatrix}.M=3​2n​​(11/2​03​/2​).

Its symplectic dual is generated by M/nM/nM/n, and its shortest nonzero vector has length 2/(n3)\sqrt{2/(n\sqrt3)}2/(n3​)​. The equal-area square dual has shortest length 1/n1/\sqrt n1/n​. In physical displacement units multiply by 2π\sqrt{2\pi}2π​; the sharp disjoint-open-ball correction radius of the hexagonal code is π/(n3)\sqrt{\pi/(n\sqrt3)}π/(n3​)​. Relative to the square radius π/(2n)\sqrt{\pi/(2n)}π/(2n)​, the gain is 2/3\sqrt{2/\sqrt3}2/3​​.

The chosen dual basis need not pair as the identity with this particular displayed hexagonal basis.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intakenext100_P12
Formal statement
noncomputable section

open scoped BigOperators

open MeasureTheory Matrix ComplexConjugate

open QAlgorithms.Papers.Independent.Dependency50.P10 (Phase sigma)

namespace QAlgorithms.Papers.Independent.Intakenext100.P12

/-- Section VI (68)–(69), PDF p.9: the exact dual lattice and sharp correction-radius gain.
Physical radii include sqrt(2*pi); strict inequalities give unambiguous decoding. -/
theorem hexagonal_radius (n : ℕ) (hn : 0 < n) :
    ({u : ℝ × ℝ | ∀ z : ℤ × ℤ, ∃ k : ℤ,
      u.1 * (hexVector n z).2 - u.2 * (hexVector n z).1 = k} =
      Set.range (hexDualVector n)) ∧
    (∀ z : ℤ × ℤ, z ≠ (0, 0) →
      Real.sqrt (2 / (n * Real.sqrt 3)) ≤ planeNorm (hexDualVector n z)) ∧
    planeNorm (hexDualVector n (1, 0)) = Real.sqrt (2 / (n * Real.sqrt 3)) ∧
    (∀ z : ℤ × ℤ, z ≠ (0, 0) → (Real.sqrt n)⁻¹ ≤ planeNorm (squareDualVector n z)) ∧
    planeNorm (squareDualVector n (1, 0)) = (Real.sqrt n)⁻¹ ∧
    IsSharpRadius (Set.range (fun z =>
      (Real.sqrt (2 * Real.pi) * (hexDualVector n z).1,
       Real.sqrt (2 * Real.pi) * (hexDualVector n z).2)))
      (Real.sqrt (Real.pi / (n * Real.sqrt 3))) ∧
    Real.sqrt (2 * Real.pi) / 2 * Real.sqrt (2 / (n * Real.sqrt 3)) =
      Real.sqrt (Real.pi / (n * Real.sqrt 3)) ∧
    Real.sqrt (Real.pi / (n * Real.sqrt 3)) =
      Real.sqrt (2 / Real.sqrt 3) * Real.sqrt (Real.pi / (2 * n)) := by sorry

end QAlgorithms.Papers.Independent.Intakenext100.P12

end
Source
Encoding a qubit in an oscillator, arXiv:quant-ph/0008040v3, PDF p. 9, §VI (68)–(69): hexagonal correction radius
Read-back

What the Lean code literally says, in plain math · gpt-6.1-sol

For every natural number n>0n>0n>0, define, for (s,t)∈Z2(s,t)\in\mathbb Z^2(s,t)∈Z2,

Vn(s,t)=2n3(s+t2,3 t2),Hn(s,t)=1nVn(s,t),Qn(s,t)=(sn,tn),V_n(s,t)=\sqrt{\frac{2n}{\sqrt3}} \left(s+\frac t2,\frac{\sqrt3\,t}{2}\right),\qquad H_n(s,t)=\frac1nV_n(s,t),\qquad Q_n(s,t)=\left(\frac{s}{\sqrt n},\frac{t}{\sqrt n}\right),Vn​(s,t)=3​2n​​(s+2t​,23​t​),Hn​(s,t)=n1​Vn​(s,t),Qn​(s,t)=(n​s​,n​t​),

and write ∥(x,y)∥2=x2+y2\lVert(x,y)\rVert_2=\sqrt{x^2+y^2}∥(x,y)∥2​=x2+y2​. The theorem asserts all of the following: the set of real pairs uuu satisfying u1Vn(s,t)2−u2Vn(s,t)1∈Zu_1V_n(s,t)_2-u_2V_n(s,t)_1\in\mathbb Zu1​Vn​(s,t)2​−u2​Vn​(s,t)1​∈Z for every integer pair (s,t)(s,t)(s,t) is exactly {Hn(s,t):(s,t)∈Z2}\{H_n(s,t):(s,t)\in\mathbb Z^2\}{Hn​(s,t):(s,t)∈Z2}; every nonzero integer pair zzz satisfies 2/(n3)≤∥Hn(z)∥2\sqrt{2/(n\sqrt3)}\le\lVert H_n(z)\rVert_22/(n3​)​≤∥Hn​(z)∥2​, with equality at z=(1,0)z=(1,0)z=(1,0); every nonzero integer pair zzz satisfies (n)−1≤∥Qn(z)∥2(\sqrt n)^{-1}\le\lVert Q_n(z)\rVert_2(n​)−1≤∥Qn​(z)∥2​, with equality at z=(1,0)z=(1,0)z=(1,0); and, for

Ln={2π Hn(z):z∈Z2},Rn=πn3,L_n=\{\sqrt{2\pi}\,H_n(z):z\in\mathbb Z^2\}, \qquad R_n=\sqrt{\frac{\pi}{n\sqrt3}},Ln​={2π​Hn​(z):z∈Z2},Rn​=n3​π​​,

one has Rn>0R_n>0Rn​>0, every two distinct v,w∈Lnv,w\in L_nv,w∈Ln​ satisfy 2Rn≤∥v−w∥22R_n\le\lVert v-w\rVert_22Rn​≤∥v−w∥2​, and some distinct pair attains equality. It also asserts the exact identities

2π22n3=πn3,πn3=23π2n.\frac{\sqrt{2\pi}}2\sqrt{\frac{2}{n\sqrt3}} =\sqrt{\frac{\pi}{n\sqrt3}}, \qquad \sqrt{\frac{\pi}{n\sqrt3}} =\sqrt{\frac{2}{\sqrt3}}\sqrt{\frac{\pi}{2n}}.22π​​n3​2​​=n3​π​​,n3​π​​=3​2​​2nπ​​.
Human review
  • Endorsed by Shuze Chen · Oct 31, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 31, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me