Skip to main content

Twindex

Your inverse solver returned a parameter. Twindex proves whether the data could have determined it.

Least squares, Bayesian inference and physics-informed neural networks always return a parameter. On their own, they do not give an independently checkable proof of whether a very different parameter fits your measurements just as well. Twindex finds such twins and proves it: it writes a JSON certificate that a small exact checker (standard-library Python, no floating point, type-checked with mypy --strict) replays and verifies. A VALID pair certificate proves that no method can recover the parameter from those data with worst-case error below half the certified gap.

Certified problem classes:

ODE systems    u' = F(t, u; theta), u(0) = u0(theta), F and u0 any polynomials
               (SIR/SEIR, pharmacokinetics, mass-action kinetics, Lotka-Volterra,
                FitzHugh-Nagumo, ...)
1-D BVP        -u'' + q(x; theta) f(u) = g on (0, 1)
2-D elliptic   -Laplace(u) + q(x, y; theta) f(u) = g on (0, 1)^2
heat equation  u_t - u_xx + q(x; theta) f(u) = g on (0, 1) x (0, 1]

Any other simulator you can call from Python gets a numerical audit, clearly labelled as evidence rather than proof.

$ pip install twindex                      # exact checker + CLI, zero dependencies
$ pip install "twindex[general,report]"    # + ODE workflow, audits and evidence reports

$ twindex example theta500_pair > pair.json
$ twindex check pair.json
pair.json: VALID: ... every estimator of theta_0 has worst-case error >= 500 on these data

$ twindex ode model.json data.csv --eps 1/100 --box k10=0,1 --box k12=0,1 --box k21=0,1 --target k10 --output out/
VALID: certified_pair; certified L = ... (about 0.287761); No U claimed. Wrote out/report.md

$ twindex report pair.json --output evidence/
  • Certificates: witness and pair (twins) for every problem class; box and paving (two-sided bounds) for the 1-D problem.
  • Headline result: early-epidemic SIR data at noise 1e-3 provably cannot determine R0 (certified twins with R0 = 2.5 and about 1.72).
  • twindex ode / identify_ode: a model file and a CSV in, a certificate and a report out.
  • audit_model / certify_audit: numerical audits of any simulator, with certified replay where an exact model exists.
  • twindex.fit: check any callable (a PINN, scipy, FEM) as an exact candidate.
  • Every step is proved: https://arnav-m10.github.io/Twindex/THEORY/

Documentation: https://arnav-m10.github.io/Twindex/ · Source: https://github.com/Arnav-M10/Twindex

Metadata

Release files for twindex 0.8.0

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

Source distribution (sdist)

Source distribution for twindex 0.8.0
File Size Uploaded Provenance Actions
twindex-0.8.0.tar.gz 1.9 MB With provenance Details for twindex-0.8.0.tar.gz

Built distribution (wheel)

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

Total release size: 2.0 MB

Release files / twindex-0.8.0.tar.gz

Download URL twindex-0.8.0.tar.gz
Size 1.9 MB
Tags Source
SHA-256 checksum
How to use checksums
f7371a6a2a575c7afa24535c2249e00cbc4255c5dcbb02d7bb5d8b3d9a07d17c
BLAKE2b-256 checksum
How to use checksums
8a732e9c94a507ad1900157146a8e4cd649c90297fcf8af42717c1696e386dcb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 9, 2026.

Transparency log

Release files / twindex-0.8.0-py3-none-any.whl

Download URL twindex-0.8.0-py3-none-any.whl
Size 118.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8a52d43400a3f752cd0f90adf3cde5d58915f9b0b161ffc4d8884a42ec0e244f
BLAKE2b-256 checksum
How to use checksums
c971e9ad3cec397e8e13b04caf25aa2e34419e4ff1cdff96127dff08d9640af4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 9, 2026.

Transparency log

Security for twindex 0.8.0

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 twindex-0.8.0.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 Nov 9, 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.

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