Alphabeta Math
DefinitionDefinition: AI-adaptedProof: Not applicableSession-authored (Fable 5 assisted)audited 2026-08-26
How statement and proof provenance work

The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.

  • Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
  • AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
  • AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.

These labels describe origin, not correctness: citations and verification chips remain separate evidence.

Binary trees, defined recursively, and their size

Definition

Let {0,1}:=N{0,1} be the set of all finite words over {0,1} (Finite words, contiguous factors, avoidance and proper-prefix states, The natural numbers N (von Neumann)), written ε for the empty word and wb for the word w followed by the letter b. A word u is a prefix of w when w=uz for some z.

Definition. A binary tree is a finite set T{0,1} (The cardinality A of a finite set) such that

  1. εT;
  2. T is closed under prefixes: if wbT with b{0,1} then wT;
  3. for every wT: w0T if and only if w1T.

Its elements are nodes; a node w is internal when w0T, and a leaf otherwise. The size of T is the number of internal nodes, size(T):={wT:w0T}, a natural number because T is finite (A subset of a finite set is finite, with BA, and equality holds if and only if B=A). Write T for the set of binary trees, a subset of P({0,1}) (The power set P(x)={z:zx}), and Tn:={TT:size(T)=n}.

The trees of size 0. If size(T)=0 then no node of T is internal, so no node has a child; a nonempty word wb in T would put w in T by clause 2 with wb a child of it, so T={ε}. Conversely {ε} is a binary tree of size 0. Hence T0={{ε}}, a one-element set: the tree with no internal node at all.

The recursion, proved here because everything below uses it. Let TT with T{ε}; then ε is internal, so 0T and, by clause 3, 1T. Put

L:={w:0wT},R:={w:1wT}.

Both are binary trees: each contains ε, each is prefix-closed because T is, each satisfies clause 3 because T does, and each is finite because w0w and w1w inject them into T. The internal nodes of T are ε together with the words 0w for w internal in L and 1w for w internal in R, and these three families are pairwise disjoint, so The sum rule: a finite disjoint union is finite with AB=A+B and iIAi=iIAi, and a sum over a finite index set splits along a partition gives

size(T)=1+size(L)+size(R).

Conversely, for binary trees L and R the set T:={ε}{0w:wL}{1w:wR} is a binary tree with those two sets recovered as above, and with size 1+size(L)+size(R). The two constructions undo one another, so for every nN the map T(size(L),L,R) is a bijection

Tn+1{(i,L,R):in, LTi, RTni}.

Small cases. T1 has the single member {ε,0,1}, and T2 has exactly two members, obtained by attaching the size-one tree on the left or on the right.

Remarks

  • No graph theory is used, and none is available at this point in the reading order. A binary tree here is a set of node addresses: a finite prefix-closed set of binary words in which a node has two children or none. The usual picture, with a root drawn at the top and two subtrees hanging from it, is an illustration of the recursion clause above and is not a hypothesis anywhere.

  • Size counts internal nodes, not nodes. A tree of size n has n internal nodes and, by the recursion clause and induction, n+1 leaves; the count that matches the Catalan numbers is the one above. A statement about trees with n nodes would be a different statement.

  • Why the addresses and not ordered pairs. Defining a tree as or an ordered pair of trees would need a recursion whose values are sets and whose ambient collection is not a set at this point in the development. The address encoding puts every tree inside the fixed set P({0,1}), so the definition is a condition rather than a construction, and the recursion clause above is then a theorem about it.

Depends on

Used by

Dependency tree · two levels

35 results within two dependency steps of this one, each drawn at its shortest distance from it. An arrow runs from a result to what uses it, so the chart reads left to right and ends at this result, which carries a heavier outline. Every node is a link to that result. Click elsewhere on the chart to enlarge it.

Sources