Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Number of stochastic Lagrangians

Open
QAlgorithms.Papers.Independent.Extend50.P30.lagrangianCardinality

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

prove2quantum

Let ddd be prime and t≥1t\geq1t≥1. Let Σt,t(d)\Sigma_{t,t}(d)Σt,t​(d) denote the dimension-ttt, totally isotropic subspaces for q(x,y)=x⋅x−y⋅yq(x,y)=x\cdot x-y\cdot yq(x,y)=x⋅x−y⋅y modulo DDD, containing the all-ones vector. Their number is the product below; the empty product equals one.

∣Σt,t(d)∣=∏k=0t−2(dk+1).|\Sigma_{t,t}(d)|=\prod_{k=0}^{t-2}(d^k+1).∣Σt,t​(d)∣=k=0∏t−2​(dk+1).

This gives the source's number of stochastic lagrangians 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.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Extend50_P30
Formal statement
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.33, Theorem 4.10: the product is empty for t=1. -/
theorem lagrangianCardinality (d t : ℕ) [NeZero d] [Fact (Nat.Prime d)] (ht : 1 ≤ t) :
    Nat.card (Lagrangian d t) = commutantCount d t := by sorry

end QAlgorithms.Papers.Independent.Extend50.P30

end
Source
Schur-Weyl Duality for the Clifford Group with Applications: Property Testing, a Robust Hudson Theorem, and de Finetti Representations, arXiv:1712.08628v3, PDF p. 33, theorem-4.10
Read-back

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

For natural numbers d,td,td,t, assume d≠0d\ne0d=0, ddd is prime, and t≥1t\ge1t≥1. Put V=(Z/dZ)tV=(\mathbb Z/d\mathbb Z)^tV=(Z/dZ)t, set hd=2dh_d=2dhd​=2d if ddd is even and hd=dh_d=dhd​=d otherwise, and define

qd(x)=∑i=0t−1[xi]2in Z/hdZ,q_d(x)=\sum_{i=0}^{t-1}[x_i]^2\quad\text{in }\mathbb Z/h_d\mathbb Z,qd​(x)=i=0∑t−1​[xi​]2in Z/hd​Z,

where [xi]∈{0,…,d−1}[x_i]\in\{0,\ldots,d-1\}[xi​]∈{0,…,d−1}. The number of linear subspaces T⊆V×VT\subseteq V\times VT⊆V×V satisfying qd(x)=qd(y)q_d(x)=q_d(y)qd​(x)=qd​(y) for every (x,y)∈T(x,y)\in T(x,y)∈T, having cardinality dtd^tdt, and containing the pair of all-ones vectors (1,1)(\mathbf1,\mathbf1)(1,1), is

∏k=0t−2(dk+1).\prod_{k=0}^{t-2}(d^k+1).k=0∏t−2​(dk+1).

When t=1t=1t=1, the product is empty and the asserted cardinality is 111.

Human review
  • Endorsed by Shuze Chen · Oct 29, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 29, 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