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
- Python 3.11+ — python.org/downloads
- uv —
curl -LsSf https://astral.sh/uv/install.sh | sh(docs) - just —
cargo install justorbrew install just(docs) - typos —
cargo install typos-cliorbrew install typos-cli(repository) - vale —
brew install valeor download from vale.sh/docs/install (docs)
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3986d150833d2640ff100827e954369145e2ab610c22caa50fb06f36a13f9a99
|
|
| MD5 |
ad5c9764abc1939fa0147af2a1f84e5c
|
|
| BLAKE2b-256 |
c60dc39c408c8d9b929dfa93c5f3933668b59cadbbd10c7a2540f041198c423d
|
Provenance
The following attestation bundles were made for elegua-0.1.0.tar.gz:
Publisher:
release.yml on sashakile/elegua
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
elegua-0.1.0.tar.gz -
Subject digest:
3986d150833d2640ff100827e954369145e2ab610c22caa50fb06f36a13f9a99 - Sigstore transparency entry: 1286696677
- Sigstore integration time:
-
Permalink:
sashakile/elegua@2c3f4ceb3e0d2f8e6e5f559b527a1d4149db9e2c -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/sashakile
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@2c3f4ceb3e0d2f8e6e5f559b527a1d4149db9e2c -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b067044f9f72a31af91c7c3800ec71bafdd412ea99fa6ac21c5a75132f292ab3
|
|
| MD5 |
f7cf581d1d2ebf8d67fd98b94a5823b1
|
|
| BLAKE2b-256 |
a1bc790adeb9ed1a5014d130172d77eb0ee02cf8ee16f36482bf934a455bead8
|
Provenance
The following attestation bundles were made for elegua-0.1.0-py3-none-any.whl:
Publisher:
release.yml on sashakile/elegua
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
elegua-0.1.0-py3-none-any.whl -
Subject digest:
b067044f9f72a31af91c7c3800ec71bafdd412ea99fa6ac21c5a75132f292ab3 - Sigstore transparency entry: 1286696749
- Sigstore integration time:
-
Permalink:
sashakile/elegua@2c3f4ceb3e0d2f8e6e5f559b527a1d4149db9e2c -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/sashakile
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@2c3f4ceb3e0d2f8e6e5f559b527a1d4149db9e2c -
Trigger Event:
push
-
Statement type: