Getting started¶
English | 简体中文
This page walks through installing Structural Isomorphism and running a first pre-registered validation locally.
Prerequisites¶
- Python 3.12 or newer (3.14 is the development target).
- macOS or Linux. Windows is untested.
- About 5 GB of free disk for cached datasets.
Install¶
The shared analysis stack lives in v4/lib/soc_pipeline.py and has no heavy non-PyPI dependencies. The web backend (under web/backend/) additionally requires FastAPI and a small set of asynchronous client libraries; see web/backend/requirements.txt.
Quickstart — earthquakes¶
Programmatic example:
from v4.lib.soc_pipeline import fit_clauset_powerlaw, vuong_lr
result = fit_clauset_powerlaw(sizes, discrete=True)
print(result.alpha, result.x_min, result.n_tail)
lr_ln = vuong_lr(sizes, result, alternative="lognormal")
lr_exp = vuong_lr(sizes, result, alternative="exponential")
print(lr_ln.R, lr_ln.p, lr_exp.R, lr_exp.p)
See Pipeline for the full API surface.
Run an existing validation¶
Each system has a folder under v4/validation/. To replay a fit:
.venv/bin/python v4/scripts/run_preregistered_validation.py \
v4/preregistration/cve-vulnerabilities.yaml
This will
- read the pre-registration YAML,
- consume the cached burst-size data from
v4/validation/cve-vulnerabilities/burst_sizes.json, - run Clauset MLE + Vuong likelihood ratios + block bootstrap CI,
- write
fit_result.jsonwith the verdict.
Verdicts are PASS, INCONCLUSIVE, or FAIL according to the rules in the YAML. The pipeline does no per-system tuning: the same code path produces all verdicts.
Tests¶
At the time of writing the web backend test suite has 30+ passing tests covering the SSE orchestrator, rate-limited API endpoints, and the pipeline result serializer.
Where to go next¶
- Read the Pipeline overview to understand the seven analytical operations exposed by the shared library.
- Read the Pre-registration methodology to understand how exponent bands are locked before data acquisition.
- Browse Papers for the preprint set, including the unified thirteen-system preprint and the CVE falsification.
- Try the live Phase Detector — submit a size vector to
/api/ask/streamand watch the seven-event orchestrator return a verdict.