AFTD Auto-Formalizing Theoretical Domains

simple_graph_face_sum_real

def

Given a simple graph G on Fin n with decidable adjacency, a permutation σ of G.Dart, a real vertex labeling c : Fin n → ℝ, and a dart d : G.Dart, simple_graph_face_sum_real G σ c d is the sum of c v over all vertices v in simple_graph_face_verts G σ d.

Statement

def simple_graph_face_sum_real {n : ℕ} (G : SimpleGraph (Fin n)) [DecidableRel G.Adj]
    (σ : Equiv.Perm G.Dart) (c : Fin n → ℝ) (d : G.Dart) : ℝ
Defined in
arXiv:2611.18384 Definition 2.1
Verified
17 Nov 2026
Axioms
none listed
Built on 1
  • simple_graph_face_vertsGiven a simple graph G on Fin n with decidable adjacency, a permutation σ of G.Dart, and a dart d : G.Dart, simple_graph_face_verts G σ d…
Used by 1

Read back from the Lean

simple_graph_face_sum_real defines a function that takes: - an implicit natural number $n$, - a simple graph $G$ on vertices $\mathrm{Fin}\ n$ with decidable adjacency, - a permutation $\sigma$ of the darts of $G$ (a rotation system), - a function $c : \mathrm{Fin}\ n \to \mathbb{R}$ assigning a real value to each vertex, and - a dart $d$ of $G$, and returns the real number obtained by summing $c(v)$ over all distinct vertices $v \in \mathrm{Fin}\ n$ that occur as the origin/source (d'.fst) of at least one dart $d'$ in the cycle containing $d$ under the face permutation $\sigma \circ \mathrm{symm}$ (which maps each dart $x$ to $\sigma(x^{\mathrm{symm}})$).

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 facial sum of real vertex labels on the face bounded by dart d. -/
def simple_graph_face_sum_real {n : ℕ} (G : SimpleGraph (Fin n)) [DecidableRel G.Adj]
    (σ : Equiv.Perm G.Dart) (c : Fin n → ℝ) (d : G.Dart) : ℝ := ∑ v ∈ simple_graph_face_verts G σ d, c v
See it in the graphDiscuss this resultChallenge it