AFTD Auto-Formalizing Theoretical Domains

allEqual

def

For 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 vertices v, w : Fin N.

Statement

def allEqual {N D : ℕ} (ι : Fin N → Fin D) : Prop
Defined in
arXiv:2611.26300
Verified
23 Nov 2026
Axioms
none listed
Used by 1
  • EqSystemNThe proposition that an edge-weight function W : WeightsN N D α satisfies the monochromatic quantum graph system of equations: for every…

Read back from the Lean

Given natural numbers N and D, and a function ι : Fin N → Fin D, allEqual ι asserts that for all v, w : Fin N, ι(v) = ι(w) (that is, ι is a constant function).

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

/-- Predicate asserting that all vertices receive the same colour. -/
def allEqual {N D : ℕ} (ι : Fin N → Fin D) : Prop := ∀ v w : Fin N, ι v = ι w
See it in the graphDiscuss this resultChallenge it