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.2.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 twindex 0.2.1
File Size Uploaded Provenance Actions
twindex-0.2.1.tar.gz 611.9 kB With provenance Details for twindex-0.2.1.tar.gz

Built distribution (wheel)

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

Total release size: 657.2 kB

Release files / twindex-0.2.1.tar.gz

Download URL twindex-0.2.1.tar.gz
Size 611.9 kB
Tags Source
SHA-256 checksum
How to use checksums
1c3dbabe9c1b752aaeab07931ff292799f9509800aacc7f690e3f6a38222f5db
BLAKE2b-256 checksum
How to use checksums
e76294ea6d7437e3771f7bb3aaaaf2f3151139b38b2187b5d1119bbfed898674
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.2.1-py3-none-any.whl

Download URL twindex-0.2.1-py3-none-any.whl
Size 45.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
18a81f7f774055da622b6c49e0cf97ccd939c79c4b1fe47ce7da7f0a854cb38d
BLAKE2b-256 checksum
How to use checksums
44850257316f6b1b4e07fbdce671d25f080221b02c700e4a95455433a0da5696
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.2.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 twindex-0.2.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 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