# Registered protocol 2: the ordered sweep

Frozen on 29 November 2026, before any run of the new schedule beyond n = 24 and before any run of the three new families
beyond a smoke test. Corrections are dated addenda at the end.

## Why a second protocol

Protocol 1 (`PROTOCOL.md`) was scored first (`results/summary.json`, committed before this freeze). While it ran, a profile of the
pigeonhole proofs showed that most of their clauses came from conjoining a slice's clauses in the order in which
the shuffled formula listed them: a random subset of a hole's pairwise clauses has a much larger BDD than the whole
at-most-one constraint. Protocol 2 tests one change, made after seeing that profile and therefore registered
separately:

- **`sweep2`** (`schedule.py`): as `sweep`, except that a slice's clauses are conjoined in the order of the BDD levels
  they use (sorted by their sorted levels, then paired as a balanced tree). The orders (`spectral.py`), the slices
  and the proofs are unchanged.

What was seen before this freeze: `sweep2` on `php-direct` (shuffle 1) at n = 16, 20 and 24 (272,929, 615,499 and
1,192,892 proof clauses), on `php-sinz`, `chess` and `tseitin-grid` at 24 and `php-sinz` at 32 and 40 (all shuffle 1),
and an attempt at `php-direct` 32 and 40 that the kernel killed for memory before it finished. Protocol 1's results
were known: its hand-designed reference reached `php-direct` n = 48, its automatic sweep only n = 24. The new families `php-onto`, `chess-four` and `tseitin-cylinder` were
run only as smoke tests at n = 4, 6–8 and 4.

## Frozen files (SHA-256)

```
40281439e45abc86a11c4023510c4419ff79544015fbbcfd7a661ddb10c83e43  prover.py
ecbc6620b97c0d434236f7aa5fec1b7ab21fa9751cbc5a0d8dfe292253b75404  schedule.py
26bd331ddeb643228a3d49cca468dc2fd1eded913ffe7f553f306e85475c4a73  spectral.py
dd6a1639655e74d60ba1b30a5e2f72a372786e0b445c10b349274807391c4b88  orders.py
21509b0ef4e947653200ef1d39c1e01db01b2a2720ac1cdd1bc961e4593b333a  families.py
0e8aeedd0f4bf7b1017c07df72dc27f8c3258e6a44824a296fdcd4d041f604dd  run.py
3ba12bd98c63e97ecf3aff3e4fb1c28da13f7183ca4f3b07c4c1617363cd6c91  experiment.py
c23fdd89c14ae763d77b9cc2a217a2f2dd4cab53a422263872c427b75f89a7cb  analyze.py
```

## Runs

`python3 experiment.py --protocol 2` runs the 17 series listed by `--protocol 2 --list`, with the limits of protocol 1
after its addendum 1 (50 million proof clauses, 1,800 seconds, 7 GiB per run, two runs at a time). Every formula is
shuffled with seeds not used in protocol 1 (4, and 5 and 6 for invariance).

## Hypotheses and how they are scored (`analyze.py --protocol 2`)

- **Q0 (soundness).** Every run that reports "unsat" has a proof that `lrat-check` verifies.
- **Q1 (direct-encoded pigeonhole).** On `php-direct`, `sweep2` reaches n ≥ 48 with verified proofs; over n ≥ 16 the
  power fit beats the exponential fit with exponent at most 4.5; and at n = 36 the proof, counted with the input
  clauses as Bryant counts them, has fewer than 95,494,509 clauses, the size of the best proof he reports for
  n = 36 (bucket elimination with hand-chosen orthogonal orders, arXiv:2306.10337, which scales as O(n^5)).
- **Q2 (the families of protocol 1).** The protocol-1 criterion (reach n ≥ 32; power fit beats exponential;
  exponent ≤ 5) holds for `chess`, `php-sinz` and `tseitin-grid` under `sweep2`.
- **Q3 (held-out families).** The same criterion holds for `chess-random`, `chess-rect` and `tseitin-torus` (held out
  in protocol 1) and for `php-onto`, `chess-four` and `tseitin-cylinder` (new).
- **Q4 (control).** On random 3-SAT the median verified proof size under `sweep2` grows exponentially.
- **Q5 (invariance).** For `php-direct` and `chess` at n = 16, 24 and 32, shuffles 4, 5 and 6 give proof sizes within
  a factor of 2.

Reported, not scored: the ratio of `sweep2` to `sweep` proof sizes on the families both ran.

## Addenda
