Download tests/test_proofs.py from Codexcoder/sovereign-integration: direct link, hf CLI and curl.
- Browser
- Download file 799 Bytes
-
https://huggingface.co/datasets/Codexcoder/sovereign-integration/resolve/main/tests/test_proofs.py
- Command line
-
hf download hf://datasets/Codexcoder/sovereign-integration/tests/test_proofs.py
-
curl -L -o test_proofs.py https://huggingface.co/datasets/Codexcoder/sovereign-integration/resolve/main/tests/test_proofs.py
799 Bytes
| """Theory proofing suite tests — every proof must pass.""" | |
| import sys | |
| from pathlib import Path | |
| import pytest | |
| ROOT = Path(__file__).resolve().parent.parent | |
| sys.path.insert(0, str(ROOT)) | |
| sys.path.insert(0, str(ROOT / "proofs")) | |
| import theory_proofs as tp # noqa: E402 | |
| def test_proof(fn): | |
| """Each proof must evaluate to True (see proofs/theory_proofs.py).""" | |
| assert fn() is True, f"proof failed: {fn.__name__}" | |
| def test_all_proofs_defined(): | |
| names = {r["proof"] for r in tp.RESULTS} | |
| assert names == { | |
| "P1 IPT gradient", "P2 Phi-5 Kronecker", "P3 Progression honesty", | |
| "P4 CHSH Bell", "P5 HOLO-MEM Φ-symmetry", "P6 Kyrexis anchors", | |
| "P7 Coral invariants", | |
| } | |