AFTD Auto-Formalizing Theoretical Domains

cubicHypergraphFluctuation

def

For an n-qubit 3-uniform hypergraph H : CubicHypergraph n, cubicHypergraphFluctuation n H is the magic fluctuation magicFluctuation n (hypergraphState n (H.image Subtype.val)).

Statement

noncomputable def cubicHypergraphFluctuation (n : ℕ) (H : CubicHypergraph n) : ℝ
Defined in
Quantum 8, 1422 (2024)
Verified
06 Nov 2026
Axioms
none listed
Built on 3
  • CubicHypergraphFor a natural number n, CubicHypergraph n is the type of finite sets of 3-element subsets of Fin n, representing the edge set of a…
  • hypergraphStateFor a natural number n and a hypergraph H : Finset (Finset (Fin n)), hypergraphState n H is the quantum state vector in Hn n whose…
  • magicFluctuationFor an n-qubit pure state ψ in Hn n, with D = 2^n, magicFluctuation n ψ is the scaled magic fluctuation statistic Real.sqrt D * (D *…

Read back from the Lean

Given a natural number n and a 3-uniform hypergraph H on Fin n (represented as a finite set of 3-element subsets of Fin n), cubicHypergraphFluctuation n H is defined as the magic fluctuation (magicFluctuation) of the hypergraph state (hypergraphState) corresponding to H.

Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.

Lean source view module on GitHub

/-- The magic fluctuation of a 3-uniform hypergraph state. -/
noncomputable def cubicHypergraphFluctuation (n : ℕ) (H : CubicHypergraph n) : ℝ := magicFluctuation n (hypergraphState n (H.image Subtype.val))
See it in the graphDiscuss this resultChallenge it