Phi · MATRIX-COREProject breakdown

For people learning or teaching numerical methods. Compare how three series approach π in the browser and export the digits.

How it was checked Public version c9a96c6 Discuss a similar project Back to the project
Concept illustration: Phi · MATRIX-CORE
An example from the source
The number-theory kernel
Browser check
Run more iterations and export the digits

How we checked Phi · MATRIX-CORE

Run more iterations and export the digits

Checked in Chrome c9a96c6

What to do
Select “+ ЕЩЁ ИТЕРАЦИЙ” (more iterations) and export the digits as TXT.
What to look for
On a fresh page the iteration count doubles. The exported value starts with 3.14159265358979.

Scope of this check This check uses JavaScript double precision. Record runs in the source project use Numba.

Checks from the source

  • The sieve kernel is checked by property

    Property-based tests compare bit_forge_sieve against a reference Eratosthenes sieve over random ranges up to 50000 and match the last prime.

    Source tests/test_math_kernel.py

  • Tests on Carmichael composites exist

    The test enumerates 561, 1105, 1729, 2465, 2821, 6601 and 8911 and asserts false for each; a separate test covers small primes.

    Source tests/test_math_kernel.py

  • The IPC format is pinned by a test, not only by a comment

    The test packs a record and asserts a length equal to RECORD_SIZE_BYTES and 31, then unpacks it and checks every field.

    Source tests/test_ipc_telemetry.py

  • The restart and atomic-save machinery exists

    A while True loop with miner.wait() and a return-code check, then psutil terminating children and killing stragglers; writes land in a .tmp path followed by os.replace under a lock.

    Source orchestrator/holo_decoder.py

Implementation progress

Project purposePhi · MATRIX-CORE runs numerical algorithms and reports progress in a separate panel. Compare convergence histories for three π series in the browser example.

  1. implemented

    The number-theory kernel

    A segmented sieve with a manual eight-step unroll, a 2310 wheel and popcount; Miller-Rabin, strong Lucas, the Jacobi symbol and a BBP digit. 18 functions under @njit.

    Source core/matrix_core_pi.py

  2. implemented

    Process orchestration and telemetry

    A ProcessPoolExecutor, a RawArray ring buffer, a PID batch-size controller, a watchdog for stalled tasks, deferred disk writes, log rotation and gzip archiving.

    Source telemetry/sre_logger.py

  3. implemented

    The terminal dashboard

    Oracle Eye: a Rich Live layout in the alternate screen at two frames per second, with tables, a saturation bar, Plotext charts and psutil telemetry.

    Source ui/oracle_eye.py

  4. partial

    GPU analysis and anomaly counters

    FWHT and Shannon entropy are @ti.kernel methods, but initialisation tries ti.metal, then ti.gpu, and swallows exceptions with no explicit CPU path. Seven anomaly labels run over 16-symbol hex windows on heuristic thresholds.

    Source core/hex_decoder.py

  5. illustrative

    The simulation-hypothesis reading and the briefing numbers

    Constants treated as memory addresses and topological gaps are interpretive language; calculate_zeta_phase is a sin() superposition over 20 zeta ordinates plus a golden-ratio term. The billions of primes in docs/ai_briefing.md are not reconstructable from the committed artifacts.

    Source docs/ARCHITECTURE.md

  6. not implemented

    The three-dimensional transition tensor and an installable package

    The _tensor_3d field is declared once and never filled: its branch is a pass and the export stays a dict of dicts. There is no setup.py, pyproject.toml or setup.cfg, and the console script survives only in stale egg-info metadata.

    Source sre_phi_cerberus.egg-info/entry_points.txt

  7. not implemented

    Automated checks

    Not a single workflow file: the Build Passing and Testing 14/14 badges in docs/README.md are static shields.io images, not pipeline results.

    Source docs/README.md

  8. on roadmap

    Audit recommendations and the primesieve comparison

    The audit proposes tightening TOPOLOGICAL_THRESHOLD to 1e-7 and adding three achievement tiers, while the threshold stays at 0.0001. The primesieve comparison is stated as a goal, but no harness and no results exist in the repository.

    Source docs/audit_report.md

Capabilities & limits

  • The audit read the test assertions. A test run is needed to verify results and coverage.
  • The 5.5B, 3.1B and 1B per-second figures come from HPC_VELOCITY_BASELINE and a print in main. The repository contains no benchmark harness or recorded run.
  • mul_mod64 performs binary modular multiplication. The Numba sieve uses a scalar eight-step unroll with NUMBA_NUM_THREADS set to 1. Montgomery reduction and AVX-512 appear in the documentation.
  • The path described as zero-copy copies bytes through ctypes.memmove and bytes() on writes and reads.
  • The setup targets macOS x86_64. The Makefile uses POSIX-specific paths, and version control excludes the local virtual environment.
  • Version labels differ across config (v46.0), module headers (v45.0), messages (v44.7 and v44.8), the audit (v44.0) and egg-info (10.0.0 and 19.0.0).
  • The documentation calls for minimal dependencies. The requirements.txt pins numpy, numba, taichi, scipy, rich and plotext. Five modules exceed the stated 400-line limit.

Public version

Public versionOpen the calculation demo phi.moonsugar.space

Public build
c9a96c6
Build directory
web

The subdomain shows the convergence of three π series and a digit matrix. The browser calculation uses JavaScript double precision (about 15 significant digits). Compiled Numba kernels run the numerical experiments in the source project.

Demo availability is checked at publication. This page does not provide continuous monitoring.

Discuss a similar project

Describe one calculation and the progress measure you need to see.

What is in the source

View files and components
  • Startup runs start_matrix.py: a dashboard process (ui.oracle_eye) and a worker process (orchestrator.holo_decoder) restarted by return code

    Source start_matrix.py

  • MATRIX-CORE is a banner name in core/matrix_core_pi.py and the startup ASCII header; the version comes from SYSTEM_VERSION = v46.0

    Source config/phi_config.py

  • Implemented domains: a segmented sieve, Miller-Rabin on base 2 with a strong Lucas test, a hexadecimal digit extractor for pi, spectral and statistical metrics, a Markov predictor and a PID batch controller

    Source core/matrix_core_pi.py

  • There is no linear algebra, symbolic math, optimisation or differential-equation solving: np.linalg, scipy.optimize and sympy appear in no source file

    Source core/hex_decoder.py

  • Backends: plain CPython, 18 @njit functions, NumPy and SciPy fft, and two Taichi GPU kernels; Rust, WASM and C++ are absent from the tree

    Source core/matrix_core_pi.py

  • The IPC contract is fixed: struct format <QQIQcbb, a 31-byte record, and a multiprocessing.RawArray ring buffer of 500,000 records

    Source orchestrator/holo_decoder.py

  • Tests: 14 files and 47 test functions, one parametrized over three cases for 49 runs; there is no CI at all, and checks live only as Makefile targets

    Source tests/test_math_kernel.py

  • The interface is fed by tailing logs/phi_system.log from the end and parsing AI_DATA: and ACHIEVEMENT: lines, not by shared memory

    Source ui/oracle_eye.py

MOONSUGAR / AI

AI consultant

Services, budgets and the next step

MOONSUGAR / AI / UAE · English · USD

Ask about services and budgets

The AI assistant can explain services and starting budgets, and help you prepare questions for the founder.

This is AI, not the founder. Answers use the website and may contain mistakes. A person confirms scope, price and timing.

Talk to the founder

The model is DeepSeek V4.1 Flash. OpenRouter and DeepInfra process the text for replies. Questions and replies are stored on the Moonsugar server for up to 30 days and may be read by the site owner. We do not sell conversations. Do not send passwords, credentials, documents, personal data or NDA material. Clear conversation deletes your history on this site. No enquiry is sent automatically.