Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§VIII (96): hexagonal-code logical noise bound

Open
QAlgorithms.Papers.Independent.Intakenext100.P12.hexagonal_gaussian_logical_noise

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

prove2quantum

Let σ>0\sigma>0σ>0 and use ideal nearest-cell decoding for the hexagonal oscillator qubit. Choose any nearest physical dual-lattice point, and reduce its two integer labels modulo two; even/even labels are stabilizers. A nearest point exists for every displacement. The four Gaussian cell-mass probabilities are nonnegative, integrable, and sum to one; all three nonidentity Pauli probabilities are equal. With r=π/(23)r=\sqrt{\pi/(2\sqrt3)}r=π/(23​)​, their total satisfies

pe,total<1−122πσ2∫0r∫0x/3e−(x2+y2)/(2σ2) dy dx.p_{e,\mathrm{total}}<1-\frac{12}{2\pi\sigma^2}\int_0^r\int_0^{x/\sqrt3}e^{-(x^2+y^2)/(2\sigma^2)}\,dy\,dx.pe,total​<1−2πσ212​∫0r​∫0x/3​​e−(x2+y2)/(2σ2)dydx.

Ties occur only on cell boundaries, of Gaussian measure zero. Outside-cell mass is not declared equal to logical error, because some larger lattice translations are harmless.

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 VIII (96), PDF pp.11–12: isotropic hexagonal logical noise and the strict cell bound.
Outside-cell mass is an upper bound, since some larger displacements are stabilizers. -/
theorem hexagonal_gaussian_logical_noise (sigma : ℝ) (hs : 0 < sigma) :
    (∀ x : ℝ × ℝ, ∀ w : ℤ × ℤ,
      planeNorm (x - physicalHex (hexNearest x)) ≤ planeNorm (x - physicalHex w)) ∧
    (∀ a b : Fin 2, Integrable (fun x : ℝ × ℝ =>
      if (hexNearest x).1 % 2 = (a.val : ℤ) ∧ (hexNearest x).2 % 2 = (b.val : ℤ)
        then quadratureGaussianDensity sigma x.1 * quadratureGaussianDensity sigma x.2 else 0) volume) ∧
    (∀ a b : Fin 2, 0 ≤ hexProbability sigma a b) ∧
    (∑ a : Fin 2, ∑ b : Fin 2, hexProbability sigma a b) = 1 ∧
    hexProbability sigma 1 0 = hexProbability sigma 0 1 ∧
    hexProbability sigma 1 0 = hexProbability sigma 1 1 ∧
    (hexProbability sigma 1 0 + hexProbability sigma 0 1 + hexProbability sigma 1 1) <
      1 - 12 / (2 * Real.pi * sigma ^ 2) *
        ∫ x in Set.Icc 0 (Real.sqrt (Real.pi / (2 * Real.sqrt 3))),
          ∫ y in Set.Icc 0 (x / Real.sqrt 3),
            Real.exp (-(x ^ 2 + y ^ 2) / (2 * sigma ^ 2)) := by sorry

end QAlgorithms.Papers.Independent.Intakenext100.P12

end
Source
Encoding a qubit in an oscillator, arXiv:quant-ph/0008040v3, PDF p. 11, §VIII (96): hexagonal-code logical noise bound
Read-back

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

For every real σ>0\sigma>0σ>0, define

P(s,t)=2π4/32(s+t2,3 t2),gσ(u)=exp⁡(−u2/(2σ2))2πσ2,∥(u,v)∥2=u2+v2.P(s,t)=\frac{\sqrt{2\pi}\sqrt{4/\sqrt3}}2 \left(s+\frac t2,\frac{\sqrt3\,t}{2}\right),\qquad g_\sigma(u)=\frac{\exp(-u^2/(2\sigma^2))}{\sqrt{2\pi\sigma^2}}, \qquad \lVert(u,v)\rVert_2=\sqrt{u^2+v^2}.P(s,t)=22π​4/3​​​(s+2t​,23​t​),gσ​(u)=2πσ2​exp(−u2/(2σ2))​,∥(u,v)∥2​=u2+v2​.

Let h(x)∈Z2h(x)\in\mathbb Z^2h(x)∈Z2 be the classical choice of a pair minimizing ∥x−P(z)∥2\lVert x-P(z)\rVert_2∥x−P(z)∥2​ over integer pairs zzz, with unspecified tie selection and an arbitrary value if no minimizer exists, and, for a,b∈{0,1}a,b\in\{0,1\}a,b∈{0,1}, put

pab=∫R21{h(x)1 mod 2=a ∧ h(x)2 mod 2=b} gσ(x1)gσ(x2) dx.p_{ab}=\int_{\mathbb R^2} \mathbf1_{\{h(x)_1\bmod2=a\,\land\,h(x)_2\bmod2=b\}}\, g_\sigma(x_1)g_\sigma(x_2)\,dx.pab​=∫R2​1{h(x)1​mod2=a∧h(x)2​mod2=b}​gσ​(x1​)gσ​(x2​)dx.

The theorem asserts that for every real pair xxx and integer pair www, ∥x−P(h(x))∥2≤∥x−P(w)∥2\lVert x-P(h(x))\rVert_2\le\lVert x-P(w)\rVert_2∥x−P(h(x))∥2​≤∥x−P(w)∥2​; that each of the four displayed integrands is Lebesgue integrable; that every pabp_{ab}pab​ is nonnegative; that ∑a=01∑b=01pab=1\sum_{a=0}^1\sum_{b=0}^1p_{ab}=1∑a=01​∑b=01​pab​=1; that p10=p01p_{10}=p_{01}p10​=p01​ and p10=p11p_{10}=p_{11}p10​=p11​; and that the following strict bound holds, with the inner and outer integrals taken over the indicated closed intervals:

p10+p01+p11<1−122πσ2∫0π/(23)∫0x/3exp⁡ ⁣(−x2+y22σ2) dy dx.p_{10}+p_{01}+p_{11} < 1-\frac{12}{2\pi\sigma^2} \int_{0}^{\sqrt{\pi/(2\sqrt3)}} \int_{0}^{x/\sqrt3} \exp\!\left(-\frac{x^2+y^2}{2\sigma^2}\right)\,dy\,dx.p10​+p01​+p11​<1−2πσ212​∫0π/(23​)​​∫0x/3​​exp(−2σ2x2+y2​)dydx.
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