AFTD Auto-Formalizing Theoretical Domains

associahedron_q

def

The binary operation Q on (ZMod 2)^2 defined by Q(a, b) = (a_0 + a_1 + b_0, a_1 + b_0 + b_1 + 1).

Statement

def associahedron_q (a b : ZMod 2 × ZMod 2) : ZMod 2 × ZMod 2
Defined in
arXiv:2611.19659 Section 2
Verified
18 Nov 2026
Axioms
none listed
Used by 2
  • associahedron_dThe function associahedron_d takes two pairs a and b in (ZMod 2) × (ZMod 2) and returns the sum in ZMod 2 of the second component of a and…
  • associahedron_root_labelThe function associahedron_root_label assigns to each ordered full binary tree T a label in (ZMod 2) × (ZMod 2), defined recursively by…

Read back from the Lean

Definition of a function associahedron_q mapping two pairs $a = (a_1, a_2)$ and $b = (b_1, b_2)$ in $(\mathbb{Z}/2\mathbb{Z}) \times (\mathbb{Z}/2\mathbb{Z})$ to the pair $(a_1 + a_2 + b_1, a_2 + b_1 + b_2 + 1)$ in $(\mathbb{Z}/2\mathbb{Z}) \times (\mathbb{Z}/2\mathbb{Z})$.

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 binary operation Q on F_2^2 for associahedron vertex labelling. -/
def associahedron_q (a b : ZMod 2 × ZMod 2) : ZMod 2 × ZMod 2 := (a.1 + a.2 + b.1, a.2 + b.1 + b.2 + 1)
See it in the graphDiscuss this resultChallenge it