Skip to main content

MTFT — Modular Time Field Theory

PyPI Python 3.9+ License: MIT

MTFT is a research toolkit for arithmetic weights, modular geometry, spectral dynamics and tests of proposed connections to physics. Its central objects are

[ w_n=\sum_{d\mid n}\frac{\log d}{d},\qquad X_0(143),\qquad 143=11\times13. ]

The software has grown from stiffness and phenomenology tools into an exact arithmetic and modular-surface laboratory: Hecke operators, canonical rings, periods and Hodge structures, spin characteristics, field dynamics, Yukawa tensors, anomaly tests and model-selection gates. It also includes experimental cryptography, arithmetic computation, sonification and visualization tools.

Research status: integer-derived formulas, numerical certificates and physical hypotheses have different evidence requirements. MTFT does not yet supply a validated Standard Model or a general simulator of matter. The new interaction atlas provides external SM targets against which future MTFT derivations can be checked. Its reference parameters are not MTFT predictions.

Start here: Capability index · SM interaction atlas · Research and correction registers · Release history · Examples

Install

python -m pip install --upgrade mtft

For development, including changes not yet released on PyPI:

git clone https://github.com/Kaizoku-Ronin/mtft.git
cd mtft
python -m venv .venv
# Linux/macOS:
source .venv/bin/activate
# Windows PowerShell instead:
# .venv\Scripts\Activate.ps1
python -m pip install -e ".[dev,full]"
Dependency set Purpose
Base package NumPy, SymPy and mpmath arithmetic/numerical engines
mtft[full] SciPy solvers/quadrature and Matplotlib plots
mtft[viz] Matplotlib and Plotly visualization helpers
mtft[dev] pytest, coverage and Ruff
mtft[lhc] uproot and Awkward for the optional ROOT/LHCb analysis bridge
PARI/GP, installed separately Recompute GP-dependent modular-symbol and period data
MadGraph5_aMC@NLO, installed separately Optional SM process-diagram/code generation

The bundled SM atlas works offline with the base install. Many geometry engines can use frozen data without PARI/GP; regenerating those records is separate work.

Quick start

import mtft
from mtft.interactions import load_catalog, select_vertices

C = mtft.X0(143)
print(C.genus)                         # 13
print(mtft.dedekind_eta(1j))
print(mtft.filtered_moment_identity(0.18174, N=3))

# Inspect the SM reference without computing an MTFT amplitude.
catalog = load_catalog()
print(len(select_vertices(catalog, sector="qcd")))  # 8 for this model

# Existing phenomenology comparison, with its own assumptions and inputs:
print(mtft.falsify.honest_report())
python -m mtft info
python -m mtft report
python -m mtft.legend search Hodge
python -m mtft.legend card surface_higgs_slope_level
python -m mtft.interactions render -o atlas-output/index.html

Open atlas-output/index.html in a browser. Search vertices, inspect diagrams and symbolic tensors, filter sectors, follow related MTFT research and export the reference or evidence ledger. The atlas contains 153 reference vertices from a pinned stock model and explicitly lists its omissions. It does not represent every possible SM process diagram. See the atlas guide for evidence statuses, import limits, scope, licenses and MadGraph integration.

A prebuilt offline atlas is also included: download the HTML file and open it directly, without installing MTFT.

What the package can do

The table groups the complete module surface by task. The generated module index links every public module to its source and entry points, covering both older tools and current research code.

Work area Capabilities and principal modules
Arithmetic foundations Constants, divisor-log weights, filtered moments and combinatorial ancestry: constants, arithmetic, combinatorial
Modular functions and curves SL(2,ℤ), eta/modular forms, X₀(N), newform data and X₀(143) anchors: modular, modular_curve, forms, x0_143, levels, coset_reps
Riemann and ensembles Explicit formula, ζ′/Speiser diagnostics, Dirichlet curvature, Li coefficients and compressed Weil forms: riemann, arithmetic_wick, critical_ensemble, weil
Weight moments and information geometry Closed-form moments, statistical metrics, curvature and stiffness landscapes: moments, curvature, info_geometry, jacobian, tower
Spectral dynamics Marked primon gas, KMS diagnostics, internal/coupled chains, gap extraction and exceptional-point studies: marked_gas, marked_gap, chain, coupled, ep, expansion, exception_spectrum
Mellin and L-function channels Bulk/skeleton peel, Dirichlet channels, GL(2) diagnostics and analytic benchmarks: peel, lchannels, gl2_peel, hardy_ramanujan
Hecke and integral arithmetic Manin symbols, Hecke blocks, Eisenstein congruences, cuspidal torsion, codifferents and integer lattices: hecke, eisenstein, cuspidal, codifferent, integral_lattice, quadratic_forms
Canonical geometry Canonical ideals, quadrics, Atkin–Lehner descent, mod-p and Petri gates: canonical
Periods and Hodge geometry Period matrices, symplectic frames, polarization, Bergman density, Hamiltonian channels and stability: periods, hodge_polarization, al_morphology
Homology, spin and theta Integral homology, affine spin actions, Arf parity, theta functions and finite Kakeya diagnostics: homology, thetachar, thetafun, kakeya
Discrete and boundary geometry Origami/dimers, insertion calculus, boundary diagnostics and finite graph tools: origami, boundary
Modular-surface geometry Manin meshes, cycle lattices, exact transport, Hodge frames, marked/oldform sectors, CRT dessins, spin circles and Hopf bookkeeping: surface
Fields on the surface Yang–Mills partition functions, line operators, Ising models, Hamiltonian evolution, FEM Laplace/Bochner spectra, Petersson and HYM normalization: surface.gauge, .ising, .dynamics, .spectral, .magnetic, .petersson, .hym
Fluxes and Yukawa tensors Spin/CM data, Riemann–Roch spaces, canonical multiplication tensors, flux scans and condensation: surface.arithspin, .rrspace, .yukawa, .smflux, .condensation
Parent-theory gates Parent records, anomaly polynomials, charge lattices, discrete/bordism tests, tensor factorization, mode/chirality gates and compactification: research
Product-surface research Vector Higgs operators, X₀(143)×E slopes/indices, Künneth selection rules and torus theta factors: research.vector_higgs, .product_surface, .yukawa_triangle, .theta_torus, .unified_parent, .involutions
SM interaction reference Pinned UFO vertices, tensor/parameter data, SVG/HTML diagrams and an evidence ledger: interactions
Physics phenomenology Particle data/embeddings, Hosotani mechanism, Koide relations, decay, dimensional bridges, cosmology/dark-sector models and comparison reports: particles, hosotani, koide, decay, dimensional_bridge, cosmology, dark_sector, falsify, verify
Lattice, algebra and materials Lattice gauge experiments, Burning Ship models, Lie-algebra closure/SVD gates and material-property diagnostics: lattice, burning_ship, liealg, tano_metric
Quantum and experimental cryptography Qudits/holonomy gates, arithmetic codes, SL(2,ℤ)-sponge experiments and Jacobian orders: quantum, crypto, monster_hash; research implementations, not a security certification
Arithmetic computation Primitive signatures, Turing-machine decompositions, halting diagnostics and the package's exact-polynomial certificate: arithmetic_machine, busy_beaver, jc_counterexample
Provenance and usability Epistemic metadata, constant ledgers, estimator standards, PARI runner, plots and sonification: legend, ledger, ledger_peel, estimator_standards, gprun, viz, music
Experimental data bridge Optional ROOT-file/LHCb analysis via uproot and Awkward: lhcb_analysis

The original three-ensemble route remains available:

Assembly Object Tools
Laplace Weighted theta sums and filtered curvature weighted_theta, filtered_moment_identity, peel
Dirichlet −ζ(β)ζ′(β+1) and its log curvature dirichlet_curvature, hadamard_zetaprime_check, marked_gas
Critical Li coefficients from log ξ li_criterion_report, critical_ensemble
Weil extension Compressed explicit-formula quadratic form weil

Finite scans and truncated tests remain diagnostics unless their documented theorem or error bound supports a stronger conclusion.

Read the evidence and corrections

The Legend is a curated map, with tags Df, Pp, Pr, Conj, Heur, Cert and labels such as EXACT, CERTIFIED, DIAGNOSTIC, PHENO and GIVEN. It does not yet contain a hand-written entry for every callable.

python -m mtft.legend status
python -m mtft.legend trace alpha_inverse
python -m mtft.legend trace sm_interaction_atlas

The atlas trace terminates at external SM reference inputs. Its data is not presented as an arithmetic derivation. A passed software test verifies its stated calculation, not an unrestricted claim of physical validity.

For the current v0.33.x research line (v0.33.1 adds the SM interaction atlas and the review corrections listed in the v0.33.1 changelog), start with:

Historical results and frozen handoffs stay in studies/. They may contain superseded hypotheses and release-specific scripts; their original bytes and correction trail matter. New atlas mappings require explicit evidence.

Visuals and long calculations

Stiffness landscape

The visualization gallery includes the stiffness navigator, modular-surface and tiling components, arithmetic fingerprints and drawn-loop tools. The graph-clock wavepacket animation is a model evolution on the X₀(143) dual graph, not a simulation of experimentally established matter:

Wavepacket on the X₀(143) graph

For long PARI/GP work:

python -m mtft.gprun

The local browser runner locates gp (or the executable specified by MTFT_GP), freezes the input script, stamps its hash and GP version, streams output to disk, and records exit status. See PARI scripts and the study guide. Hours-long studies are separate from routine tests; choose a study's documented parameters and preserve its logs.

Test and maintain

# Atlas and its integration:
python -m pytest tests/test_interactions.py tests/test_tier11_and_legend.py -q
# Routine suite excluding tests marked slow (some unmarked tests still take minutes):
python -m pytest tests/ -m "not slow" -q
# The existing release gate:
python -m pytest tests/ -q
# Update or check the module index:
python scripts/build_capability_index.py
python scripts/build_capability_index.py --check

Optional dependencies and PARI/GP affect skips. Some research tests also use their own opt-ins, such as MTFT_SLOW=1 for the full theta census. Follow the test/study's instructions rather than treating one command as every archived experiment. No fixed test-count badge is maintained here.

Release notes are organized in docs/changelog/, with a separate unreleased record. Publishing uses the existing release workflow; the package version, __init__ version and CITATION.cff must agree before a release.

Citation and license

See CITATION.cff and LICENSE (MIT). The external MadGraph reference retains its upstream license.

Metadata

Release files for mtft 0.33.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mtft 0.33.1
File Size Uploaded Provenance Actions
mtft-0.33.1.tar.gz 4.5 MB With provenance Details for mtft-0.33.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mtft 0.33.1
File Interpreter ABI Platform Actions
mtft-0.33.1-py3-none-any.whl Python 3 none any Details for mtft-0.33.1-py3-none-any.whl

Total release size: 7.8 MB

Release files / mtft-0.33.1.tar.gz

Download URL mtft-0.33.1.tar.gz
Size 4.5 MB
Tags Source
SHA-256 checksum
How to use checksums
553c9890e0e92abdb53f01d2ce52f0bbf427b8ff4df8df8832ebe345dbc65ce9
BLAKE2b-256 checksum
How to use checksums
ff81a1fb631ba321a188d858e4bda1a3910f1fe9087a1676faf8481b2dbd5b2c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 29, 2026.

Transparency log

Release files / mtft-0.33.1-py3-none-any.whl

Download URL mtft-0.33.1-py3-none-any.whl
Size 3.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
3034e5cfd4922df5814c6c11bd59a195aa6c7339dc09a98c267d042dd91d050f
BLAKE2b-256 checksum
How to use checksums
c89f2eb72df51c160e31e4c2754a2a5418302a121d5325b47677df538d467404
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 29, 2026.

Transparency log

Security for mtft 0.33.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for mtft-0.33.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 29, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.33.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page