Skip to main content

Domain-agnostic multi-tier test harness for validating mathematical equivalence

Project description

Eleguá

[!WARNING] All code in this repository is generated by AI. Use at your own caution. It was built under strict engineering practices but is not warranted to be absolutely correct. The only way to validate its correctness is to use it and identify failures. This repository is in an experimental phase and was meant to explore how to use AI to develop scientific software. Feel free to open issues; pull requests are momentarily closed until I (or industry, communities) figure out a way to manage them.

Domain-agnostic, multi-tier test harness for validating mathematical equivalence across symbolic computing systems.

The problem

When you port a symbolic math library to a new language, how do you prove the new implementation produces the same results as the original? Manual spot-checks don't scale — you need automated, layer-by-layer comparison that catches everything from bitwise differences to deep semantic mismatches.

What Eleguá does

Eleguá orchestrates validation tasks across multiple implementations of the same mathematical system. It runs the same symbolic action on a high-fidelity Oracle (ground truth) and one or more Implementations Under Test, then compares results through a 4-layer pipeline that cascades from fast structural checks to deep property-based testing.

TOML fixture → EleguaTask → Adapter.execute() → ValidationToken → Comparison Pipeline → pass/fail

Getting started

Prerequisites

Install and verify

git clone git@github.com:sashakile/elegua.git
cd elegua
just setup    # installs deps, syncs vale styles, configures git hooks
just check    # lint, format, typecheck, typos, vale
just test     # full test suite with 100% coverage

See the full documentation for the user guide, architecture overview, and API reference.

Development

just setup      # one-time: install deps + git hooks
just check      # run all pre-commit checks
just fix        # auto-fix lint and format issues
just test       # run tests (pass args: just test -v -k blob)
just cov        # tests with coverage report
just ci         # full local CI: check + test

Git hooks (installed by just setup): pre-commit runs ruff, pyright, typos, and vale; pre-push runs pytest.

CI runs on push and PR to main: lint, typecheck, typos, vale, and test matrix across Python 3.11–3.13.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

elegua-0.1.0.tar.gz (173.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

elegua-0.1.0-py3-none-any.whl (38.8 kB view details)

Uploaded Python 3

File details

Details for the file elegua-0.1.0.tar.gz.

File metadata

  • Download URL: elegua-0.1.0.tar.gz
  • Upload date:
  • Size: 173.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for elegua-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3986d150833d2640ff100827e954369145e2ab610c22caa50fb06f36a13f9a99
MD5 ad5c9764abc1939fa0147af2a1f84e5c
BLAKE2b-256 c60dc39c408c8d9b929dfa93c5f3933668b59cadbbd10c7a2540f041198c423d

See more details on using hashes here.

Provenance

The following attestation bundles were made for elegua-0.1.0.tar.gz:

Publisher: release.yml on sashakile/elegua

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file elegua-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: elegua-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 38.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for elegua-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b067044f9f72a31af91c7c3800ec71bafdd412ea99fa6ac21c5a75132f292ab3
MD5 f7cf581d1d2ebf8d67fd98b94a5823b1
BLAKE2b-256 a1bc790adeb9ed1a5014d130172d77eb0ee02cf8ee16f36482bf934a455bead8

See more details on using hashes here.

Provenance

The following attestation bundles were made for elegua-0.1.0-py3-none-any.whl:

Publisher: release.yml on sashakile/elegua

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page