Datasets:
Formats:
json
Languages:
English
Size:
< 1K
Tags:
mathematics
convex-geometry
discrete-geometry
illumination-problem
computational-mathematics
exact-arithmetic
Download code/verify_all.py from PureOne/SERAPH5-SAELYRA-v6: direct link, hf CLI and curl.
- Browser
- Download file 1.83 kB
-
https://huggingface.co/datasets/PureOne/SERAPH5-SAELYRA-v6/resolve/main/code/verify_all.py
- Command line
-
hf download hf://datasets/PureOne/SERAPH5-SAELYRA-v6/code/verify_all.py
-
curl -L -o verify_all.py https://huggingface.co/datasets/PureOne/SERAPH5-SAELYRA-v6/resolve/main/code/verify_all.py
1.83 kB
| #!/usr/bin/env python3 | |
| """Run every declared exact suite and combine the reports; never imply a global proof.""" | |
| from __future__ import annotations | |
| import json | |
| import subprocess | |
| import sys | |
| from pathlib import Path | |
| ROOT = Path(__file__).resolve().parents[1] | |
| SCRIPTS = [ | |
| ("primary", "verify_primary.py", "primary_report.json"), | |
| ("independent", "check_independent.py", "independent_report.json"), | |
| ("orbit", "check_orbits.py", "orbit_report.json"), | |
| ] | |
| def main() -> None: | |
| reports = {} | |
| for name, script, report in SCRIPTS: | |
| print(f"Running {script}...", flush=True) | |
| completed = subprocess.run([sys.executable, str(ROOT / "code" / script)], | |
| cwd=ROOT, text=True, capture_output=True) | |
| text = completed.stdout + completed.stderr | |
| (ROOT / "verification" / f"{name}_console.txt").write_text(text) | |
| if completed.returncode: | |
| print(text, file=sys.stderr) | |
| raise SystemExit(completed.returncode) | |
| data = json.loads((ROOT / "verification" / report).read_text()) | |
| if data.get("status") != "PASS": | |
| raise RuntimeError(f"{script} did not produce a PASS report") | |
| reports[name] = data | |
| combined = { | |
| "status": "PASS", "all_declared_suites_passed": True, | |
| "unrestricted_five_dimensional_theorem_proved": False, | |
| "global_integer_level_certified": None, | |
| "proof_assistant_verified": False, "externally_peer_reviewed": False, | |
| "publication_priority_established": False, "reports": reports, | |
| } | |
| target = ROOT / "verification/release_report.json" | |
| target.write_text(json.dumps(combined, indent=2) + "\n") | |
| print("All declared finite suites passed. No universal five-dimensional level was checked.") | |
| print(target) | |
| if __name__ == "__main__": | |
| main() | |