caelum0x 6ea69aed05 test(examples): guard SIR S·I coupling recovery at population scale
Add a first-class integration guard to the 04-sir-epidemic example: drive
the real lawsynth CLI on the raw population-scale trajectory (states ~1e3)
and assert the susceptible·infected coupling survives sparsity at threshold
0.02 with a coefficient near the true beta/N = 3.2e-4. This locks in the
scale-invariant discovery fix at the example level. Skips cleanly when the
CLI is not built, so the pure-Python contract still runs unchanged.
2026-08-19 00:42:43 +03:00
..
2026-08-16 21:04:23 +03:00
2026-08-16 21:04:23 +03:00
2026-08-16 21:04:23 +03:00
2026-08-16 21:04:23 +03:00
2026-08-16 21:04:23 +03:00
2026-08-16 21:04:23 +03:00
2026-08-16 21:04:23 +03:00

SIR epidemic

This is a reproducible LawSynth example. It generates observations from the model stated in config.toml, performs finite-difference polynomial-library discovery where supported, and simulates the declared world. All generated artifacts are written below output/ and are ignored by version control.

python generate.py
python discover.py
python simulate.py
python -m pytest test_example.py

The data are synthetic and deterministic; they are suitable for exercising the pipeline, not for claiming causal identification from observational data.

The included standard-library baseline is intentionally transparent. If the native lawsynth extension is installed, discovery invokes it as well and records its actual outcome in output/discovery.json.