AFTD Auto-Formalizing Theoretical Domains

associahedron_colouring

def

The function associahedron_colouring assigns to each ordered full binary tree T the pair (associahedron_root_label T, associahedron_d_stat 0 T) in ((ZMod 2) × (ZMod 2)) × ZMod 2.

Statement

def associahedron_colouring (T : BinTree) : (ZMod 2 × ZMod 2) × ZMod 2
Defined in
arXiv:2611.19659, Section 2
Verified
20 Nov 2026
Axioms
none listed
Built on 3
  • BinTreeThe inductive type BinTree of ordered full binary trees with constructors leaf and node left right.
  • 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…
  • associahedron_d_statThe function associahedron_d_stat takes a natural number depth and a tree T : BinTree, and returns the element of ZMod 2 counting…

Read back from the Lean

Definition of a function associahedron_colouring that maps a binary tree T : BinTree to an element of (ZMod 2 × ZMod 2) × ZMod 2, defined as the pair (associahedron_root_label T, associahedron_d_stat 0 T).

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 8-colouring κ(T) = (λ(T), d(T, 0)) in ((ZMod 2) × (ZMod 2)) × ZMod 2. -/
def associahedron_colouring (T : BinTree) : (ZMod 2 × ZMod 2) × ZMod 2 := (associahedron_root_label T, associahedron_d_stat 0 T)
See it in the graphDiscuss this resultChallenge it