Seven colours suffice for any 331 four-term progressions on 78 positions

Run the integer verification with Python 3 from this directory.

    python3 verify_certificate.py sparse-certificate.json
    python3 verify_exceptions.py

The first command recalculates the total integer weight and the failing weight at every one of the 975 progressions. The second checks all five exceptional progressions, all 52 point deletions, and the two sets of eight witnesses used at positions 27 and 52. The mathematical claims use ordinary positions numbered from one. The Lean representation uses zero-based starts.

The Lean 4.27.0 project pins mathlib. With Lake and that toolchain available, run the following commands in order.

    lake exe cache get
    lake build
    lake env lean audit.lean

SparseColourings imports the certified sparse-family theorem, the deletion theorems and the incidence theorem. Each RowCheck file verifies one common difference using small kernel computations. The two dependency chains limit the number of large checks that build concurrently. The code uses kernel reduction for the numerical checks.

The discovery directory contains the seed words and the programs used to generate and reprice seven-colourings. Checking the certificate requires only the two Python commands above. To reproduce an initial search, change into discovery and run these commands.

    c++ -O3 -std=c++20 harvest.cpp -o harvest
    ./harvest seed-words.txt faults.txt 4
    python3 core_bound.py
    c++ -O3 -std=c++20 price_walk.cpp -o price_walk
    ./price_walk seed-words.txt prices.txt new-words.txt 987117 36 5000 375

The optional core_bound.py program uses OR-Tools' GLOP linear solver. Its pool reads fault sets from faults.txt and, when present, pool.txt. The additional search programs accept their filenames as arguments. sparse-certificate.json contains all data needed for Theorem 1 regardless of discovery software or seeds.
