AFTD Auto-Formalizing Theoretical Domains

handshake_right_side

def

The glove side directly touched by the second vertex of a handshake: in a single handshake $x|a\overline{a}|y$ the opposite side $\overline{a}$ touched by $y$, in a double handshake $x|a\overline{a}|\overline{b}b|y$ the side $b$ worn by $y$.

Statement

def handshake_right_side {V Γ : Type*} : Handshake V Γ → Γ × Bool
Source
step towards glove_number_k5
Verified
18 Oct 2026
Axioms
none listed
Built on 2
  • opp_glove_sideThe opposite side of a glove side $(g, b)$ in $\Gamma \times \mathrm{Bool}$ is $(g, \neg b)$, representing the inside-out orientation of…
  • HandshakeA handshake between vertices in $V$ using gloves from $\Gamma$, which is either single-gloved (one vertex wears a glove side inside, the…

Lean source view module on GitHub

/-- The glove side directly touched by the second vertex of a handshake. -/
def handshake_right_side {V Γ : Type*} : Handshake V Γ → Γ × Bool := fun h => match h with
  | .single _ a _ => opp_glove_side a
  | .double _ _ b _ => b
See it in the graphDiscuss this resultChallenge it