Theorem 2.5: the word of a tree diagram
ProvedCannonFloydParry.represents_word_exponentsTheorem 2.5, first statement. If a tree diagram represents , and and are the exponent lists of its domain and range trees respectively, then
where and .
Written here as a product of two words: the positive word read off the range tree's exponents, times the inverse of the positive word read off the domain tree's exponents. Those are the same thing, since .
import Definitions.Def_CannonFloydParry import Definitions.Def_CannonFloydParry_Trees import Definitions.Def_CannonFloydParry_TreeDiagrams import Mathlib
namespace CannonFloydParry
theorem represents_word_exponents {d : TreeDiagram} {f : UI ≃o UI} (h : Represents d f) :
f = word d.ran.exponents * (word d.dom.exponents)⁻¹ := by
sorry
end CannonFloydParry
Read-back
What the Lean code literally says, in plain math · claude-opus-5
Read-back: represents_word_exponents
0. What kind of statement this is
A single implication, universally quantified over two objects — a tree diagram and an order-automorphism of the unit interval — both of which are implicit arguments, so the statement is: for every and every , if is represented by then a certain equation between elements of a group holds. There are no typeclass hypotheses and no other side conditions; every ingredient below is a concrete definition, not a parameter.
Everything the statement refers to has to be unfolded, so the whole of the setting is spelled out first, and the assertion itself appears in §8.
1. The ambient group
Write
regarded as a set of real numbers carrying the order it inherits from (so for elements of means exactly in ).
Let
An element of is a bijection together with the property that if and only if the images satisfy the same inequality; equivalently, an increasing bijection of onto itself. Every such map necessarily fixes and .
is a group. The group operations are, verbatim:
- the product is the composite , i.e. : in a product, the rightmost factor is applied to the point first and the leftmost factor last;
- the identity element is the identity map of ;
- is the inverse order isomorphism;
- for a natural number , is the -fold composite of with itself, with .
This convention matters for reading §3, §4 and §8, and it is the one used throughout.
2. The two distinguished elements and of
is the piecewise-linear increasing bijection of given by
(The three formulas agree at , where both give , and at , where both give ; and , . So carries onto , onto , and onto , with slopes .)
is the piecewise-linear increasing bijection of given by
(Again the formulas agree at the breakpoints: , , , . So is the identity on and is a copy of rescaled to .)
Both are defined in the source by first writing down an increasing bijection of the whole real line that is the identity outside and then restricting it to ; the displayed formulas are the restrictions.
3. The family of generators ,
An element is defined for every natural number by
In particular
so for one has . With the composition convention of §1, is the map .
4. The word attached to a finite list of natural numbers
For a finite list of natural numbers , define
That is: the -th entry of the list (counting from ) is used as the exponent of the generator — the generator index advances by exactly one for each step along the list — and the factors are multiplied in that left-to-right order in . The empty list gives .
Because the entries are natural numbers, only non-negative powers of the occur; no inverse of any appears inside . As a function on , by §1 the factor is applied first and last.
5. Finite binary trees, their leaf count, and their marks
A tree here means a finite rooted binary tree in which every node either is a leaf or has exactly two children, a left child and a right child. Write for the number of leaves of ; thus and , where denotes the tree with root having left subtree and right subtree .
Marks. Assign to each node of a closed subinterval of : the root is assigned , and a node assigned gives its left child and its right child . The marks of are then the list
consisting of , then the midpoints of the intervals assigned to the internal nodes of listed in in-order (left subtree, node, right subtree) — which is increasing order — and finally . Equivalently, the consecutive intervals are exactly the intervals assigned to the leaves of , read left to right.
The list has entries. For the one-leaf tree, . Examples: for the two-leaf tree; for the tree whose left subtree is a caret and whose right subtree is a leaf; for the mirror tree; for the balanced four-leaf tree.
6. The two integer lists attached to a tree: left-runs and exponents
Two lists of natural numbers are attached to each tree. Let denote concatenation of lists, and let be the operation that adds to the first entry of a list, leaving all other entries alone (and sending the empty list to itself).
Left-runs.
Exponents.
These two recursions are different, and the difference is exactly the point at which care is needed: at a node, left-runs recurses with left-runs on both subtrees and increments the first entry of the left subtree's list, whereas exponents recurses with left-runs on the left subtree — with no increment — and with exponents on the right subtree. Iterating the second recursion down the right spine of : if are the left subtrees hanging off the right spine of , read from the root downwards ( being the length of that spine), then
Both lists have exactly entries, and the last entry of each is always .
A closed description of the entries. Address each leaf of by the word in the alphabet recording the left/right steps taken from the root to that leaf, and list the leaves in left-to-right order. Then, entry by entry:
- the entry of at a leaf is the length of the maximal terminal block of 's in that leaf's address (i.e. the number of consecutive left steps immediately preceding the leaf);
- the entry of at a leaf is that same number, reduced by exactly when the leaf's address has the form with (all right steps followed by all left steps), and equal to it otherwise. The rightmost leaf, whose address is , gets .
For example, for the ten-leaf tree
one has while .
For the right-hand comb with leaves, while ; for the left-hand comb with leaves, for while .
Only , the exponents list, appears in the statement being read back; enters only through the recursion that defines .
7. Tree diagrams, the group , extension to , and "represents"
Tree diagram. A tree diagram consists of three pieces of data: a tree (the domain tree), a tree (the range tree), and a proof that the two have the same number of leaves,
That equality is part of the datum , hence part of the hypothesis of the statement. In particular and have the same number of entries, namely .
Dyadic numbers. A real number is dyadic if for some integer (any sign) and some natural number .
The distinguished subset of . Call Thompson when there is a finite set of real numbers, all of them dyadic, such that for every pair with and with the open interval disjoint from , there exist an integer (possibly negative) and a real number with
So a Thompson element is an increasing self-bijection of that is affine with slope an integer power of on each interval free of the finitely many dyadic breakpoints.
The group . is the subgroup of generated by the set of Thompson elements: the smallest subgroup of containing every Thompson element. Membership therefore means that lies in every subgroup of that contains all Thompson elements; equivalently, is a finite product of Thompson elements and inverses of Thompson elements. It does not literally say that is itself Thompson.
Extension to the line. For let be
i.e. extended by the identity off . This is an increasing bijection of .
Affine on the pieces of a list. For an increasing bijection of and a finite list of reals , say that is affine on the pieces of that list when for each consecutive pair , , there exist real numbers and (depending on ) with
No condition is placed on beyond being real: it is not required to be positive, nor a power of . Lists with fewer than two entries satisfy the condition vacuously.
Represents. Finally, represents means the conjunction of three conditions:
- ;
- is affine on the pieces of — the domain tree's marks;
- applying to each entry of yields , as an equality of lists of real numbers. Since the two lists have equal length (by the leaf-count datum in ), this says precisely
where and are and . Because all the marks lie in , this is the same as for all .
8. The assertion
For every tree diagram and every order isomorphism of , if represents in the sense of §7, then
as elements of .
Reading off the conventions of §1 and §4: the first factor is the word built from the exponents list of the range tree, the second factor is the inverse of the word built from the exponents list of the domain tree, and they appear in that order, the range word on the left. Pointwise this says
i.e. the domain word is undone first and the range word applied afterwards. Written out with and (these two lists have the same length ), the claimed identity is
with all and .
It is an equality of elements of , i.e. of order isomorphisms of , hence an equality of functions on (and of their inverses).
9. Degenerate and edge cases silently included
-
The hypothesis is satisfiable, not vacuous. Taking to be the diagram whose domain and range trees are both the one-leaf tree and the identity: on both sides, the identity lies in , its extension is the identity of (affine with , ), and maps to . So represents . In that case , , and the claimed conclusion reads , which is the case.
-
One-leaf trees give trivial words. Because and the last entry of is always , the final factor of each word is always the identity.
-
No reducedness assumption. Nothing in the hypothesis requires the diagram to be reduced (i.e. to have no common cancelling caret in the two trees); the claim is asserted for all diagrams that represent , reduced or not. Consequently, if several diagrams represent the same , the statement asserts the same equation for each of them.
-
Both exponent lists are read from the same tree diagram , and the statement fixes which tree goes where: range tree on the left factor, domain tree in the inverted factor.
-
The affineness condition in the hypothesis is stated only for the domain tree's marks, and imposes no slope restriction; the power-of-two slope restriction enters the hypothesis only indirectly, through membership in the group generated by the Thompson elements.
-
Natural-number exponents only. Since is a list of natural numbers, negative powers of the occur in the conclusion only through the single explicit inversion of the whole domain word.
-
The two lists and have equal length, which is the common leaf count; so the same set of generator indices is available to both words.
Confirmed by the mission captain (proposal self-audit).