Pure Rust implementation of the eml(x, y) = exp(x) − ln(y) operator + constant 1 that expresses ALL elementary mathematical functions via uniform binary trees. Symbolic regression engine, lowering to efficient IR, code generation, CLI, SMT solving via OxiZ, SIMD/parallel batch evaluation via oxiblas-core. 173 tests, zero FFI. The sovereign mathematical foundation for SciRS2 and the entire COOLJAPAN ecosystem (now 26M+ SLoC total).
The mathematical foundation of the COOLJAPAN scientific computing ecosystem just achieved a theoretical breakthrough in practice.
Today we released OxiEML 0.1.0 — a complete, production-grade pure Rust crate that implements the revolutionary binary operator eml(x, y) = exp(x) − ln(y) and uses only this operator plus the constant 1 to construct uniform binary trees expressing all elementary mathematical functions.
No C. No Fortran. No external math libraries beyond the COOLJAPAN stack.
No unsafe code in hot paths. No FFI.
Just clean, memory-safe, auditable symbolic and numeric mathematics that compiles to a single static binary (or WASM) and runs everywhere — from laptops to browsers to edge devices to cloud.
For centuries, elementary functions (exp, ln, sin, cos, +, −, ×, ÷, ^, sqrt, trig, hyperbolic, etc.) have been treated as separate primitives. This fragmentation made symbolic regression, automatic formula discovery, and formal verification extremely difficult.
Existing tools are powerful but suffer from:
OxiEML 0.1.0 ends all of that.
It is based on the theoretical result from the paper “All elementary functions from a single binary operator” (arXiv:2603.21852) and delivers a practical, high-performance implementation that unifies all elementary mathematics into one elegant, uniform binary tree structure.
The architecture follows a clean separation of concerns built directly on the COOLJAPAN stack:
EML Tree Representation
Uniform binary trees using the grammar S → 1 | eml(S, S). Canonical constructions for every elementary function (exp, ln, sin/cos/tan, arcsin/arccos/arctan, sinh/cosh/tanh, arithmetic, power, abs, sqrt, π, e, i, etc.).
Symbolic Regression Engine
Gradient-based search (Adam optimizer) over EML tree topologies to discover closed-form formulas from data.
Lowering & Code Generation
Algebraic simplification + common subexpression elimination (CSE) → lowered IR → efficient numeric evaluation or Rust source code emission (compile_to_rust).
Evaluation Engine
Stack-machine evaluator (post-order traversal) with support for real, complex, and batch data. Optional SIMD (via oxiblas-core) and parallel (Rayon) acceleration.
Advanced Features
CLI tool (oxieml), parser with round-trip guarantee, SMT solving via OxiZ (feature smt), constraint propagation.
Key Rust advantages:
OxiEML is now the official mathematical unification layer for the entire COOLJAPAN stack (total ecosystem: 26M+ SLoC Rust, 660+ crates, 40+ production-grade libraries):
Repository: https://github.com/cool-japan/oxieml
Star the repo if you want a mathematically elegant, fully unified foundation for symbolic computation and automatic formula discovery.
The era of treating elementary functions as unrelated primitives is over.
Pure Rust EML — one operator to rule them all — is here, fast, safe, and sovereign.
— KitaSan at COOLJAPAN OÜ April 15, 2026