Everything below was executed on Windows 10 (PowerShell), Python 3.14.3. Recorded 2026-11-22.
pip install python-sat==1.9.dev24 # PySAT (bundles CaDiCaL 1.9.5, Glucose3)
pip install ziglang # C/C++ toolchain used to build the SAT tools
git clone --depth 1 https://github.com/jasondavies/queen-domination.git
The certified n = 48 run used CaDiCaL rel-3.1.0 with binary DRAT proofs
(the same solver generation as Davies' published n ≤ 46 runs) and
drat-trim as the proof checker. Source tarballs are pinned by SHA-256 in
tools/SHAS.txt; the minimal Windows-ABI patches are described in
PATCHES.md (they do not touch solver logic or proof semantics).
curl -L -o cadical-3.1.0.tar.gz https://github.com/arminbiere/cadical/archive/refs/tags/rel-3.1.0.tar.gz
tar -xzf cadical-3.1.0.tar.gz
curl -L -o drat-trim.tar.gz https://github.com/marijnheule/drat-trim/archive/refs/heads/master.tar.gz
tar -xzf drat-trim.tar.gz
CaDiCaL (in cadical-rel-3.1.0/; apply the walk.hpp and cadical.cpp patches
from PATCHES.md; mobical.cpp excluded, src/citten.c included):
$files = ((Get-ChildItem src -Filter *.cpp | Where-Object { $_.Name -ne 'mobical.cpp' } | ForEach-Object { $_.FullName }) + (Resolve-Path src/citten.c)) -join ' '
python -m ziglang c++ -O3 -DNDEBUG -DNBUILD -Wno-date-time -mno-ms-bitfields -Dgetc_unlocked=getc -Dputc_unlocked=putc $files.Split(' ') -o ..\tools\cadical.exe
drat-trim (in drat-trim-master/; apply the "rb" fopen patch from
PATCHES.md):
python -m ziglang cc -O2 -Dgetc_unlocked=getc -Dputc_unlocked=putc drat-trim.c -o ..\tools\drat-trim.exe
On Linux/macOS, the same two tools build unpatched via Davies' own
scripts/get_tools.sh (CaDiCaL rel-3.1.0 + drat-trim commit 2e3b2dc) — the
preferred path for an independent re-run.
4,278 of the 47,580 records were produced in an earlier run with
CaDiCaL rel-1.9.5 and text DRAT proofs (before the rel-3.1.0 toolchain was
built); the remaining 43,302 used rel-3.1.0 with binary DRAT. Every proof
of both runs was verified by drat-trim, and every record is self-contained
(case → deterministic CNF → verified proof), so the mix does not affect
validity. To regenerate a text-proof record's proof, repeat the solve with
cadical195.exe -q --no-binary case.cnf case.drat (build:
cadical-rel-1.9.5/src/*.cpp, same flags, ccadical.cpp included,
mobical.cpp excluded).
In code/frame/run_cases.py (relative to the Davies clone):
- import resource is guarded (absent on Windows);
- os.nice guarded;
- cpu_children() falls back to time.process_time();
- the CaDiCaL call uses binary DRAT (default; no --no-binary);
- optional QD_KEEP_PROOF env var retains a proof sample.
fast_cases.py (this project) replaces the slow pure-Python case enumeration;
it is cross-validated against geom.cases_by_frame (see EXPERIMENTS.md).
# differential validation against the certified n = 46 dataset (records included)
cd queen-domination && python xval_46.py
# the certified n = 48 run (resumable; writes out_48_24_drat.jsonl)
cd code/frame
$env:QD_KEEP_PROOF = "150"
python run_cases.py 48 24 --mode drat --jobs 12 --out out_48_24_drat.jsonl --resume
# upper-bound certificate check
cd ../..
python verify_48.py # re-checks the 25-queen set + 120 Glucose3 cross-solves
audit_final.py re-verifies a sample of retained proofs from rebuilt CNFs.
Each line of out_48_24_drat.jsonl is a JSON object:
{case, cnf_sha256, result, drat, t_solve, t_check, proof_bytes, kept_proof, ...}.
- result ∈ {SAT, UNSAT, TIMEOUT, ERRn}.
- drat ∈ {VERIFIED, FAILED} for UNSAT cases.
- The final line is {summary: {...}} with complete, verdict, and
all_proofs_verified.
The verdict γ(Q₄₈) = 25 requires: summary.complete = true, summary.UNSAT =
47,580, summary.SAT = 0, summary.all_proofs_verified = true, plus the upper
bound check in step 4. The canonical cleaned record set
(out_48_24_drat_clean.jsonl) contains exactly one VERIFIED record per case.
Historical verification (what was checked during execution). All 47,580
proofs were emitted and each was checked by drat-trim at run time; the
outcome is recorded per case (drat: VERIFIED, all_proofs_verified: true).
This is what "47,580/47,580 certified" means.
Independently reproducible verification (what a third party can do). Proofs totalling ~1 TB were not retained (21.6 GB transient at run time); 315 are published as artifacts, and every proof is deterministically regenerable: the CNF is a pure function of the recorded case, and the proof is a pure function of the CNF + solver version + options. A third party can therefore (i) rebuild every CNF from the record set and check the hashes, (ii) re-solve any subset with any DRAT-producing solver and re-check with drat-trim, and (iii) reproduce the whole run with the commands above. This policy matches Davies' published practice for n = 26/28. What has not yet happened is an external party actually executing (ii) or (iii) end to end; that is the current priority (see AUDIT.md §2.2).
For any case in the records: rebuild the CNF deterministically
(enc.Base(n,k,dv) + enc.case_extra(B, case) + enc.dimacs), then
cadical.exe -q case.cnf case.drat
drat-trim.exe case.cnf case.drat -t 1000000 # expect: s VERIFIED
queen-domination/UPSTREAM_COMMIT.txt (clone time 2026-11-22); local
patches documented in PATCHES.md.tools/SHAS.txt.The pipeline is POSIX-native: follow Davies' own README (uses
scripts/get_tools.sh to build CaDiCaL rel-3.1.0 + drat-trim), then run the
same run_cases.py 48 24 --mode drat command (it uses the standard tool
paths). The case list is fast_cases.py or the slow reference
geom.cases_by_frame (identical outputs; slow version takes ~6 min for
n = 48 on one core).
Downloads: Paper (PDF) · 25-queen certificate · certified record set (47,580 cases) · DRAT proof sample (315)