Golden Continuum φ-Engine — An analytic compiler that computes exact calculus of black-box callables by exploiting factorial taylor structure.
Project description
φ-Engine — Exact Black-Box Calculus for Executable Systems
φ-Engine is an analytic compiler that computes exact calculus of black-box callables by exploiting factorial taylor structure.
Differentiate and integrate any callable to hundreds of digits. No computational graph. No symbolic form. No grid. No Δx.
pip install phi-engine
Quick Demo
from phi_engine import PhiEngine
from mpmath import mp
mp.dps = 200
eng = PhiEngine()
f = lambda x: mp.cos(x * x)
result = eng.differentiate(f, mp.mpf("0.25"))
print("f'(0.25):", mp.nstr(result, 12))
# Abs error: ~1e-162
What It Does
| Callable ($\frac{d}{dx}$) | Order | Time | Correct Digits |
|---|---|---|---|
| GELU(x) | 1 | 183 ms | 1994 |
| GELU(x) | 3 | 195 ms | 1088 |
| 100-layer tanh(x) | 1 | 1.21 s | 1963 |
| 100-layer tanh(x) | 2 | 1.87 s | (no oracle exists) |
| sin(10¹⁰⁰·x²) | 1 | 14 ms | 1083 |
| e^x·sin(10⁶·x) | 10 | 43 ms | 109 |
All orders. Parallel execution. Hybrid CPU/GPU routing. Deterministic φ-certificates.
φ-Engine knows at runtime how much precision each taylor term needs and routes to devices accordingly.
Watch φ-Engine differentiate a 724k param TANH model and route terms to CUDA as necessary:
Hybrid Self-Aware Precision Routing Example
φ-Engine evaluates your callable at factorial-spaced points using exact rational moment laws. All Taylor terms up to a predetermined degree are annihilated exactly — not asymptotically. Precision grows superfactorially with depth, and the engine knows how much precision is needed per term.
Watch AI Try to break it:
Click here for more adversarial AI tests
Documentation
- WHITEPAPER.md — Full technical explanation
- examples/ — Runnable demos (differentiation, integration, loss landscape, hybrid CUDA, much more)
- LetterToCantor.pdf — Complete mathematical proof of the foundations that made φ-Engine possible
Capability Briefs
Licenses
GPLv3-or-later (code) · CC BY-SA 4.0 (documents). Open forever.
Contact
Alex B — mathsisbeautiful@proton.me
🩷 Support the Work (Optional)
If you'd like to support ongoing research:
- GitHub Sponsors: https://github.com/sponsors/Purrplexia
- ETH (MetaMask):
0x663D8288b4Aa6F3A72FF4FE67d1a7B080cD5097d - BTC (Electrum):
bc1q0ntv4zvpdprlxexvz20mf7ajdydmp9ke9ulgep
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file phi_engine-1.1.0-py3-none-any.whl.
File metadata
- Download URL: phi_engine-1.1.0-py3-none-any.whl
- Upload date:
- Size: 1.8 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3af9e815d2fea2473a2392e7e70fc7bc11a0d1388b2813b00f26866efd756b2a
|
|
| MD5 |
5f8a0ed13c03df061f54bb94e5d9b22f
|
|
| BLAKE2b-256 |
3aabba00b6f17c86c73c30a5bad7e62e00af4228d276a5b076255fc1e521df38
|