associahedronGraph
def
For each natural number n, the associahedron graph associahedronGraph n is the simple graph whose vertices are ordered full binary trees T with bin_tree_num_leaves T = n - 1, and two vertices T₁ and T₂ are adjacent if and only if (TreeRotation T₁.1 T₂.1 ∨ TreeRotation T₂.1 T₁.1) and T₁ ≠ T₂.
Statement
def associahedronGraph (n : ℕ) : SimpleGraph { T : BinTree // bin_tree_num_leaves T = n - 1 }- 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.
- bin_tree_num_leavesThe function bin_tree_num_leaves computes the number of leaves in an ordered full binary tree: 1 for a leaf, and bin_tree_num_leaves l +…
- TreeRotationThe inductive relation TreeRotation on BinTree relating two trees that differ by a single rotation: rotating right at the root replacing…
Read back from the Lean
For any natural number n, associahedronGraph n is the simple graph whose vertices are binary trees T (of type BinTree) having exactly n - 1 leaves, where two distinct vertices T₁ and T₂ are adjacent if and only if one can be obtained from the other by a single tree rotation (either at the root or recursively inside a child subtree).
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 associahedron graph A_n on ordered full binary trees with n - 1 leaves. -/ def associahedronGraph (n : ℕ) : SimpleGraph { T : BinTree // bin_tree_num_leaves T = n - 1 } where Adj T₁ T₂ := (TreeRotation T₁.1 T₂.1 ∨ TreeRotation T₂.1 T₁.1) ∧ T₁ ≠ T₂ symm := ⟨fun _ _ h => ⟨h.1.symm, h.2.symm⟩⟩ loopless := ⟨fun _ h => h.2 rfl⟩