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.3.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.3.0
File Size Uploaded Provenance Actions
twindex-0.3.0.tar.gz 874.4 kB With provenance Details for twindex-0.3.0.tar.gz

Built distribution (wheel)

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

Total release size: 923.0 kB

Release files / twindex-0.3.0.tar.gz

Download URL twindex-0.3.0.tar.gz
Size 874.4 kB
Tags Source
SHA-256 checksum
How to use checksums
81e2ce5c83aae7781ae1f9511c50ee2f47ab0b801c19f8655beb232c08437e4c
BLAKE2b-256 checksum
How to use checksums
ee24c366504febf2d566923004e2243d0813c7a1fefb9012414e8ad1e75bd96e
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.3.0-py3-none-any.whl

Download URL twindex-0.3.0-py3-none-any.whl
Size 48.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
12f0019b4ba16312238c489cd166688cfce3725ec655739f7e83cd79c669c51f
BLAKE2b-256 checksum
How to use checksums
85ef56ce330c9923b8334aa5358476cbd9dc2c3d3e218e2b3d39ae56472c38c7
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.3.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.3.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