Richard Hoekstra

Representation measurement

How much syntax Lean proof terms share

Paper 2 in the Hodge-Epsilon Program
Richard Hoekstra · April 2026

Type erasure followed by hash-consing counts distinct labelled subtrees of a chosen representation. In the displayed six-node tree, the variable occurs twice and the other nodes occur once, yielding five distinct nodes. The expression represents the multiplication in ε². Its node count omits the proposition, equality evidence, typing environment and encoding of labels and references. A different program or proof of the proposition can have a different description length.

For dual_mul, the reported 298,003 tree nodes reduce to 1,018 distinct DAG nodes, about 293 to one. That is a claim about structural repetition in this extraction. A count of shared nodes also depends on the representation and shared vocabulary. It gives no general algorithmic mutual information, lower bound over all programs, or evidence of universal optimality. The separate Lean compressor has a roundtrip for a payload scaffold. Its numeric enwik8 rate remains empirical.

April manuscript with correction (HTML) · Annotated manuscript (PDF)

Cite this page

Richard Hoekstra. How much syntax Lean proof terms share. https://richardhoekstra.nl/papers/kolmogorov-complexity.html