Computational notebook
The EML basis
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.
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.
| KEML | Expressions | Distinct numerical fingerprints | Redundancy | Undefined % |
|---|---|---|---|---|
| 1 | 2 | 2 | 1.0x | 0% |
| 2 | 2 | 2 | 1.0x | 0% |
| 3 | 8 | 8 | 1.0x | 0% |
| 4 | 44 | 44 | 1.0x | 0% |
| 5 | 344 | 286 | 1.2x | 15% |
| 6 | 3,584 | 2,346 | 1.5x | 28% |
| 7 | 47,384 | 23,761 | 2.0x | 42% |
Notable KEML values:
- KEML(1) = 1, KEML(x) = 1
- KEML(e) = 2: eml(1, 1) = exp(1) − ln(1) = e
- KEML(exp(x)) = 3: eml(x, 1)
- KEML(0) = 4: eml(1, eml(eml(1,1), 1)) = e − ln(ee) ... no, = e − e = 0
- KEML(ln(x)) = 5: eml(1, eml(eml(1,x), 1))
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.
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:
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):
| Invariant | Value |
|---|---|
| Vertices (expressions) | 958 |
| Edges (rewrites) | 4,100 |
| Reported matrix nullity (triangle orientation issue) | 1,417 |
| Harmonic fraction | 54.2% |
| Spectral gap | 0.012 |
| Particle sites | 0 (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:
| Signal | Best EML tree | EML bpb | PPM-1 bpb |
|---|---|---|---|
| Linear ramp | x | 0.17 | 6.43 |
| Constant | any | 0.21 | 0.71 |
| English text | eml(x, eml(x,1)) | 5.53 | 3.53 |
| Sine wave | eml(eml(x,x), x) | 7.16 | 6.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 theory | EML realization |
|---|---|
| Backbone (shared) | DAG-CSE of EML tree (KEML) |
| Defect (virtual) | Tree − DAG = duplicated subexpressions |
| ε² = 0 | Kills the positive-definite second-order obstruction |
| H¹ = 0 | Linearized EML has trivial cohomology |
| Creation algebra | [T, N] = T on EML tree space (Fock structure) |
| Harmonic cycles | Reported matrix nullity in the finite rewrite representation |
| K(ε²=0) = 5 | KEML(ln) = 5 (same complexity for the inverse operation) |
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