Number of stochastic Lagrangians
OpenQAlgorithms.Papers.Independent.Extend50.P30.lagrangianCardinalityLet be prime and . Let denote the dimension-, totally isotropic subspaces for modulo , containing the all-ones vector. Their number is the product below; the empty product equals one.
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.
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.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
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
For natural numbers , assume , is prime, and . Put , set if is even and otherwise, and define
where . The number of linear subspaces satisfying for every , having cardinality , and containing the pair of all-ones vectors , is
When , the product is empty and the asserted cardinality is .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.