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 for the boundary value problem

-u''(x) + q(x; theta) f(u(x)) = g(x)  on (0, 1),   u(0) = alpha,  u(1) = beta,
q(x; theta) = sum_j theta_j B_j(x)   (Bernstein basis, theta >= 0),
f(u) = sum of a_m u^m over odd m, a_m >= 0,

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.

$ pip install twindex              # exact checker + CLI, zero dependencies
$ pip install "twindex[search]"    # + numerical search, audits and fitting (numpy)

$ 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 audit --data measurements.csv --epsilon 1/1000 --prior 0,1000 --target 1 --output audit/
  • Certificates: witness, pair (twins), box, and paving (two-sided bounds).
  • Your model: any coefficient degree, polynomial sources, odd-power nonlinearities, inhomogeneous boundary values.
  • 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.5.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.5.0
File Size Uploaded Provenance Actions
twindex-0.5.0.tar.gz 1.3 MB With provenance Details for twindex-0.5.0.tar.gz

Built distribution (wheel)

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

Total release size: 1.4 MB

Release files / twindex-0.5.0.tar.gz

Download URL twindex-0.5.0.tar.gz
Size 1.3 MB
Tags Source
SHA-256 checksum
How to use checksums
548875bfbad2a428969bb8fd5f5eb6e189a834118c1d8cda319ddb110e8aeee7
BLAKE2b-256 checksum
How to use checksums
cda2d1e7076220f24889bef7be599b12f6448311b16849e9f6955694198675c7
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 8, 2026.

Transparency log

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

Download URL twindex-0.5.0-py3-none-any.whl
Size 75.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3db639875a41931a00bf2ade8853336ce78a920d11e16530abe563268c3151f4
BLAKE2b-256 checksum
How to use checksums
69ce35ff9bfa197e0c9297cb7dde6ff022c7eac6442cf84cfa4ceb1da0240293
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 8, 2026.

Transparency log

Security for twindex 0.5.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.5.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 8, 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