Richard Hoekstra

Computational notebook

The EML basis

Structural complexity of elementary functions through one operator
Richard Hoekstra · April 2026 · After Odrzywołek (arXiv:2603.21852)

The operator

Odrzywołek constructs the usual scientific-calculator operations from EML(x,y)=exp(x)−ln(y), the constant 1 and variable inputs on the appropriate domains.

eml(x, y) = exp(x) − ln(y)

For a univariate expression the leaves may be 1 or x. The constant-only grammar generates closed expressions. The cited construction also uses complex values for some operations.

1. The periodic table

The experiment enumerates expressions by shared-expression size. Its “semantic” count groups rounded numerical values on a finite set of inputs. Matching fingerprints can hide distinct functions.

KEMLExpressionsDistinct numerical fingerprintsRedundancyUndefined %
1221.0x0%
2221.0x0%
3881.0x0%
444441.0x0%
53442861.2x15%
63,5842,3461.5x28%
747,38423,7612.0x42%

Notable KEML values:

The deep asymmetry: x+1, 2x, x², 1/x, √x are NOT found up to KEML = 7. The EML basis strongly favors transcendental towers over polynomial operations. Simple arithmetic is expensive in EML.

The square-zero expression studied in the proof-syntax experiment has five distinct nodes in its selected shared representation. Comparing that count with EML expression size requires specifying the grammar, primitives and encoding on both sides.

2. The creation algebra

Define Teml on EML tree space: T replaces a leaf with eml(leaf, leaf). Let N be the leaf-count operator.

[T, N] = T exactly. The commutator of the EML expansion operator with the leaf count equals the expansion operator itself. This is the creation/annihilation algebra: T is a raising operator on the leaf-number grading.

For a finite real matrix T, T*T is positive semidefinite because ⟨v,T*Tv⟩=‖Tv‖². The previously listed (3−√13)/2 is negative and cannot be one of its eigenvalues. A spectrum for this operator requires the precise truncation, inner product and matrix.

3. The square-zero linearization

In the dual-number ring R[ε]/(ε²), the EML operator linearizes to subtraction:

emlε(a, b) = 1 + ε(a − b)
Theorem (Lean, 0 sorry) The linearized EML has trivial cohomology: H¹ = 0. The kernel is the diagonal {(a,a)}, the image is all of ℝ. But the second-order obstruction is nontrivial: Q(a,b) = (a² + b²)/2, which is positive definite. The condition ε² = 0 kills this obstruction.

So ε² = 0 is not just a convenience — it is the condition that makes the EML algebra unobstructed at first order. The defect theory’s central axiom is the exactness condition of the EML linearization.

4. The identity space

The de Bruijn graph of EML rewrites (958 vertices connected by simplification/expansion rules up to depth 3):

InvariantValue
Vertices (expressions)958
Edges (rewrites)4,100
Reported matrix nullity (triangle orientation issue)1,417
Harmonic fraction54.2%
Spectral gap0.012
Particle sites0 (every expression is reachable)

The script also fills directed three-cycles with triangles. However, it assigns signs (+,+,−) to consecutive edges a→b, b→c, c→a. With the stated edge incidence, their signed sum has boundary 2(c−a), so the resulting operators need not form a chain complex. The reported 1,417 is a numerical nullspace count for that matrix. A Betti number or independent identity count requires correcting the orientation and rerunning the calculation.

5. The EML compressor

Using EML trees as a codebook for data compression:

SignalBest EML treeEML bpbPPM-1 bpb
Linear rampx0.176.43
Constantany0.210.71
English texteml(x, eml(x,1))5.533.53
Sine waveeml(eml(x,x), x)7.166.35

On the reported linear ramp the EML code used 0.17 bits per byte. The 47× figure compares with an uncompressed eight-bit byte. On this English sample and sine wave, the listed PPM baseline used fewer bits. A shallow codebook may be poor for periodic signals even when the general language can express trigonometric functions.

Connection to the defect program

The EML story connects to the defect theory at every level:

Defect theoryEML realization
Backbone (shared)DAG-CSE of EML tree (KEML)
Defect (virtual)Tree − DAG = duplicated subexpressions
ε² = 0Kills the positive-definite second-order obstruction
H¹ = 0Linearized EML has trivial cohomology
Creation algebra[T, N] = T on EML tree space (Fock structure)
Harmonic cyclesReported matrix nullity in the finite rewrite representation
K(ε²=0) = 5KEML(ln) = 5 (same complexity for the inverse operation)
The EML operator is the continuous Sheffer stroke; ε² = 0 is the defect-theoretic Sheffer stroke. Both reduce a rich world to a single generator. The periodic table, creation algebra, and identity space of EML are the continuous analogues of the classification graph, Hecke operators, and harmonic cycles of the arithmetic program. The shared structure is the five-object stack; the different realizations are the A-Bruijn equivalence relations.

Formalization

The first-order definitions and diagonal-kernel calculation are in Proof/EMLSquareZero.lean. The enumeration and numerical fingerprints are implemented in research/tlc/eml_periodic_table.py.

Reference

The EML operator was discovered by Andrzej Odrzywołek (Jagiellonian University):

A. Odrzywołek, All elementary functions from a single operator, arXiv:2603.21852v2, April 2026.

Our contribution is the defect-theoretic analysis: the periodic table, creation algebra, square-zero linearization, identity space, and connection to the five-object stack. The EML operator itself is entirely Odrzywołek’s discovery.

Cite this page

Richard Hoekstra. The EML basis. https://richardhoekstra.nl/papers/eml-basis.html