Commit 1211f02
Add Tier 3 weekly CI for upstream provers and corpus provisioning (#19)
## Summary
This PR introduces infrastructure for provisioning and testing heavier
upstream theorem provers and verification tools in a weekly CI tier. It
adds:
1. **Corpus provisioning script** (`scripts/provision_corpora.sh`) — a
non-interactive tool to clone/download 40+ upstream prover repositories
and benchmarks into `external_corpora/`
2. **Extractor runner** (`scripts/extract_all.sh`) — orchestrates all
`extract_*.jl` scripts against provisioned corpora
3. **Tier 3 weekly CI matrix** — tests 9 backends (Tamarin, ProVerif,
Metamath, Twelf, OR-Tools, HOL4, ACL2, SCIP, Imandra) with per-backend
provisioning
4. **Justfile recipes** — convenient targets for the corpus pipeline:
`provision-corpora`, `extract-corpora`, `retrain`, and `corpus-refresh`
5. **Training script environment overrides** —
`ECHIDNA_MAX_PROOF_STATES`, `ECHIDNA_NUM_EPOCHS`,
`ECHIDNA_NUM_NEGATIVES` for flexible retraining
## Key Changes
- **`scripts/provision_corpora.sh`** (281 lines)
- Catalogues 40+ upstream sources (git repos, tarballs,
form-gated/proprietary)
- Clones with `--depth=1 --filter=blob:none` for bandwidth efficiency
(~4-8 GB total)
- Idempotent (skips existing directories unless `--force`)
- Retries once on network failure; continues on error so one offline
mirror doesn't abort the batch
- Supports `--list`, `--status`, `--all`, and selective provisioning by
name
- **`scripts/extract_all.sh`** (89 lines)
- Runs every `extract_*.jl` script non-interactively
- Collects failures and exits with count of failed extractors
- Suitable for nightly cron workflows
- **`.github/workflows/live-provers.yml`** — Tier 3 job
- Replaced placeholder with a 9-job matrix (one per backend)
- Each job provisions its backend via apt, upstream tarball, or defers
to Containerfile
- Runs `cargo test --test live_prover_suite` with `continue-on-error:
true` so absences are logged as SKIP
- Includes version probes in the matrix log for debugging
- **`tests/live_prover_suite.rs`**
- Added 9 new async tests for Tier 3 backends (Tamarin, ProVerif,
Metamath, Twelf, OR-Tools, HOL4, ACL2, SCIP, Imandra)
- Each test calls `assert_version_reachable()` with the expected CLI
binary name
- Tests SKIP gracefully if the binary is absent (via `which` probe in
the suite)
- **`src/julia/run_training.jl`**
- Made `max_proof_states` configurable via `ECHIDNA_MAX_PROOF_STATES`
env var (default: 200k on GPU, 50k on CPU; 0 = unlimited)
- Made `num_epochs` configurable via `ECHIDNA_NUM_EPOCHS` (default: 30)
- Made `num_negatives` configurable via `ECHIDNA_NUM_NEGATIVES`
(default: 20)
- Logs the active configuration at startup
- **`Justfile`**
- Added `provision-corpora`, `corpora-status`, `extract-corpora`,
`retrain`, and `corpus-refresh` recipes
- `corpus-refresh` chains the full pipeline: provision → extract →
retrain
## Implementation Details
- **Provisioning strategy**: Heavy builds (HOL4, ACL2, SCIP) and
proprietary tools (Imandra) are marked `skip` in the catalogue; the CI
workflow defers them to Containerfile provisioning or notes them as
unavailable.
- **Graceful degradation**: Tests use `
https://claude.ai/code/session_01NFEuqk68SFBy49KRSSVL8N
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 2200dcf commit 1211f02
6 files changed
Lines changed: 613 additions & 9 deletions
File tree
- .github/workflows
- scripts
- src/julia
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
229 | | - | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
230 | 238 | | |
231 | 239 | | |
232 | | - | |
| 240 | + | |
233 | 241 | | |
234 | 242 | | |
235 | 243 | | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
236 | 257 | | |
237 | 258 | | |
238 | 259 | | |
239 | | - | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
240 | 266 | | |
241 | | - | |
242 | | - | |
243 | | - | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
244 | 350 | | |
245 | 351 | | |
246 | 352 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
77 | 111 | | |
78 | 112 | | |
79 | 113 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
0 commit comments