AFTD Auto-Formalizing Theoretical Domains

EqSystemN

def

The proposition that an edge-weight function W : WeightsN N D α satisfies the monochromatic quantum graph system of equations: for every coloring ι : Fin N → Fin D, pmSumN N D W ι equals 1 if allEqual ι holds, and 0 otherwise.

Statement

def EqSystemN {α : Type*} [Semiring α] (N D : ℕ) (W : WeightsN N D α) : Prop
Defined in
arXiv:2611.26300
Verified
23 Nov 2026
Axioms
none listed
Built on 3
  • pmSumNGiven a semiring α, weights W : WeightsN N D α, and a coloring ι : Fin N → Fin D, pmSumN N D W ι is pmSumList W ι (vertices N), the sum…
  • allEqualFor natural numbers N and D, allEqual ι is the proposition that a vertex coloring ι : Fin N → Fin D is constant, i.e., ι v = ι w for all…
  • WeightsNThe type of edge-weight functions on a quantum graph on $N$ vertices with $D$ colours with values in $\alpha$.

Read back from the Lean

For a semiring α, natural numbers N and D, and an edge-weight function W : EdgeN N D → α, EqSystemN N D W asserts that for every function (coloring) ι : Fin N → Fin D, the perfect matching sum pmSumN N D W ι equals 1 (in α) if ι is constant across all vertices (i.e., ∀ v w : Fin N, ι v = ι w), and equals 0 (in α) otherwise.

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 monochromatic quantum graph system of equations for weights W. -/
def EqSystemN {α : Type*} [Semiring α] (N D : ℕ) (W : WeightsN N D α) : Prop := open Classical in ∀ ι : Fin N → Fin D, pmSumN N D W ι = (if allEqual ι then (1 : α) else (0 : α))
See it in the graphDiscuss this resultChallenge it