Skip to main content

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

Status: Active Research Exact Calculus PGP Signed PyPI License: GPL v3 License: CC-BY-SA 4.0 Python 3.10+

φ-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:

ClaudeOpus 4.5 vs φ-Engine

GPT5.2 vs φ-Engine

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:

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

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

phi_engine-1.1.2-py3-none-any.whl (1.8 MB view details)

Uploaded Python 3

File details

Details for the file phi_engine-1.1.2-py3-none-any.whl.

File metadata

  • Download URL: phi_engine-1.1.2-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

Hashes for phi_engine-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 612aea8732c90cc5618d198ed75fb9ac4db3e746aa9d372da44589dff62017c0
MD5 ceee32821c92d6b91cf6c9f2e4de6f7b
BLAKE2b-256 2ea03d412a760a53974ef72228bb0e74e3625c1996cff1da9b1e439539d4f2a8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page