AFTD Auto-Formalizing Theoretical Domains

handshake_edge

def

The unordered edge in $\mathrm{Sym}^2(V)$ covered by a handshake between vertices $x$ and $y$, namely $s(x, y)$.

Statement

def handshake_edge {V : Type*} {Γ : Type*} (h : Handshake V Γ) : Sym2 V
Defined in
scout/2610-17602-clean-handshake-sequences.md:154
Verified
18 Oct 2026
Axioms
none listed
Built on 1
  • HandshakeA handshake between vertices in $V$ using gloves from $\Gamma$, which is either single-gloved (one vertex wears a glove side inside, the…
Used by 8

Read back from the Lean

Given types V and Γ, handshake_edge defines a function from Handshake V Γ to Sym2 V (the type of unordered pairs of elements of V). Given h : Handshake V Γ, it returns the unordered pair s(x, y) consisting of the two vertex endpoints: - If h is Handshake.single x a y, it returns s(x, y). - If h is Handshake.double x a b y, it returns s(x, y).

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 edge covered by a handshake. -/
def handshake_edge {V : Type*} {Γ : Type*} (h : Handshake V Γ) : Sym2 V := match h with
  | .single x _ y => s(x, y)
  | .double x _ _ y => s(x, y)
See it in the graphDiscuss this resultChallenge it