AFTD Auto-Formalizing Theoretical Domains

mkEdge

def

Constructs an edge in a quantum graph connecting vertex $v$ with colour $c_v$ to vertex $u$ with colour $c_u$.

Statement

def mkEdge {N D : ℕ} (v u : Fin N) (cv cu : Fin D) : EdgeN N D
Defined in
arXiv:2611.26300
Verified
23 Nov 2026
Axioms
none listed
Built on 1
  • EdgeNAn edge in an edge-coloured quantum graph on $N$ vertices with $D$ colours, specifying two vertices and their respective endpoint colours.
Used by 1
  • pmSumListAuxpmSumListAux takes a semiring α, natural numbers N and D, a weight function W : WeightsN N D α, a vertex coloring ι : Fin N → Fin D, a…

Read back from the Lean

Given natural numbers N and D (implicit), elements v and u of Fin N, and elements cv and cu of Fin D, mkEdge defines an element of EdgeN N D with first vertex v, second vertex u, first color/index cv, and second color/index cu.

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

/-- Construct an edge between two vertices with given colours. -/
def mkEdge {N D : ℕ} (v u : Fin N) (cv cu : Fin D) : EdgeN N D := ⟨v, u, cv, cu⟩
See it in the graphDiscuss this resultChallenge it