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. None of them can tell you whether a completely 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.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.2.0
File Size Uploaded Provenance Actions
twindex-0.2.0.tar.gz 95.1 kB With provenance Details for twindex-0.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 140.1 kB

Release files / twindex-0.2.0.tar.gz

Download URL twindex-0.2.0.tar.gz
Size 95.1 kB
Tags Source
SHA-256 checksum
How to use checksums
e9acb4e9c5bea8576ce1404cb3604de0079cf6ae7f7429ced74684a4764ab87d
BLAKE2b-256 checksum
How to use checksums
b85c96b0a456a0226b1b91554cc160a2a70b83e6b193787005143a0345ff0159
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 7, 2026.

Transparency log

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

Download URL twindex-0.2.0-py3-none-any.whl
Size 45.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
89f30718e87f737cceda45dcb974105cabc67959db8b2d1529634379aabd2609
BLAKE2b-256 checksum
How to use checksums
ebe57b787fadb508a63fa2bf886da9d421094f40f3d4a4b55e9200685fbb6379
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 7, 2026.

Transparency log

Security for twindex 0.2.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.2.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 7, 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