# Computational supplement Run `latexmk -pdf paper.tex` in the parent directory to build the paper. Run the commands below from this directory. Python 3 suffices for the coverage and multiplicity calculations. The independent determinant checks also use NumPy and python-flint. Paths below work both in the manuscript directory and in the extracted source ZIP. ## Lean verification The [verification repository](https://github.com/Galuisss/foulkes-verification) contains the Lean project and the C++ finite comparisons. From a directory where you want to create the checkout, run ~~~sh git clone https://github.com/Galuisss/foulkes-verification.git cd foulkes-verification git checkout --detach 351cfd82b8fb782f1cc2dcd7b5f95d450eb471bc (cd verification/lean && lake exe cache get) ./reproduce.sh lean ~~~ ## CPU checks ```sh python a9/check-coverage.py --input a9/coverage-input.json python a9/check-first-primitive.py python a10/check-centered-minor.py a10/decic-20-4.json python a10/check-centered-minor.py a10/decic-37-9.json --size 2048 ``` The coverage input records the interval and shape counts printed by the second-row iterator in degrees 18–21 and every initial root box printed by the box iterator in degrees 22–39. Each root is an array of 16 integers giving the inclusive lower and upper bounds of gaps 2 through 9, in that order. At fixed degree, the weight equation determines gap 1. The checker compares the interval totals with an independent bounded-partition count. For the box search it checks disjointness and the partition identity in each degree. The C++ programs in the separate verification repository perform the multiplicity comparisons on these domains. The last three commands give determinants 42 modulo 251, 236 modulo 239 and 125 modulo 239, respectively. Each decic JSON file records the prime, weight parameters, seed, slab size and the selected original evaluation rows in pivot order, numbered from zero. To replay the complete 391,089-column minor, omit `--size 2048` and add `--scratch /path/to/disk` on a disk with about 77 GB free. ```sh python a9/uniform.py python a10/orbit-bound.py python corrections.py 9 3 12 2 2 2 2 2 2 2 1 --pivot ``` These commands compute the uniform nonic multiplicity bound, the decic orbit bound, and the single coefficient used in the sharpness example of Section 5. The arguments of `corrections.py` are the outer degree, inner degree, and partition parts. ## GPU rank calculations Use NumPy, CUDA-enabled PyTorch with signed 8-bit integer matrix multiplication, and Triton. The largest recorded computation used NumPy 2.5.4, PyTorch 2.11.0 with CUDA 12.8, and Triton 3.6.0. Set `rank_disk` to an existing directory for temporary pivot blocks. For the six-through-nine seed chain, the commands are ```sh export FOULKES_RANK_PRIME=251 for h in 0 2 4; do python quaternary-primitives.py 6 7 16 10 "$h" --scratch "$rank_disk" done python ternary_rank_gpu.py 7 7 18 7 --scratch "$rank_disk" python ternary_rank_gpu.py 8 8 21 8 --scratch "$rank_disk" for h in 23 24 25 26 27 28; do python ternary-coupled.py 8 8 7 "$h" --slab 4096 --scratch "$rank_disk" done python ternary-primitives.py 9 9 24 9 --slab 8192 --initial-slabs 74 2048 --scratch "$rank_disk" for h in 25 26 27 28 29; do python ternary-coupled.py 9 9 8 "$h" --scratch "$rank_disk" done export FOULKES_RANK_PRIME=239 for h in 30 31 32 33; do python ternary-coupled.py 9 9 8 "$h" --scratch "$rank_disk" done ``` For the balanced decic seed, run the branching tests and all 18 centered layers. The projected ranks follow in the next section. ```sh export FOULKES_RANK_PRIME=239 python ternary-primitives.py 10 10 19 9 --scratch "$rank_disk" python ternary-primitives.py 10 10 48 3 --scratch "$rank_disk" for h in $(seq 34 48); do python ternary-coupled.py 10 10 4 "$h" --slab 2048 --scratch "$rank_disk" done for h in $(seq 33 47); do python ternary-coupled.py 10 10 5 "$h" --slab 4096 --scratch "$rank_disk" done python ternary-coupled.py 10 10 6 47 --slab 1024 --scratch "$rank_disk" python ternary-coupled.py 10 10 8 46 --slab 1024 --scratch "$rank_disk" python ternary-coupled.py 10 10 10 45 --slab 4096 --scratch "$rank_disk" for h in 23 24 25 26 27 28 29 30 31; do python ternary-coupled.py 10 10 6 "$h" --slab 4096 --scratch "$rank_disk" done for h in 20 21 22; do python ternary-coupled.py 10 10 9 "$h" --slab 8192 --scratch "$rank_disk" done for s in 32 33 34 35 36 37; do for h in 7 8 9; do case "$s/$h" in 37/7) size=8192 ;; 32/7) size=2048 ;; 32/*|33/*) size=4096 ;; 34/*|37/9) size=16384 ;; 36/9|37/8) size=20480 ;; *) size=24576 ;; esac python a10/centered-rank.py "$s" "$h" --slab "$size" --scratch "$rank_disk" done done ``` ## The 58 projected decic ranks The [rank table](a10/projected-types.tsv) gives the dimensions and production settings. Each corresponding JSON certificate records the sampling and compression seeds and the selected original row indices in pivot order. For example, the [$(50,44,6)$ certificate](a10/decic-proj-50-44-6.json) has 20,769 indices. From `anc/`, compile the C++17 graph generator and run the following loop with `rank_disk` set to an absolute scratch directory. The Python environment needs NumPy, python-flint, CUDA PyTorch and Triton. Each iteration regenerates a minor and compares its complete pivot row sequence with the supplied certificate. ~~~sh export FOULKES_RANK_PRIME=239 work=$(mktemp -d "$rank_disk/projected.XXXXXXXX") export TMPDIR="$work" awk '/^~~~cpp$/{src=1;next} src && /^~~~$/{exit} src' a10/projected-row.md > "$work/projected-row.cpp" c++ -std=c++17 -O3 "$work/projected-row.cpp" -o "$work/projected-row" tail -n +2 a10/projected-types.tsv | while read -r l m k width batch slab basis; do graphs=$(mktemp -d "$work/graphs.XXXXXXXX") prepare=--prepare set -- if [ "$basis" = binary ]; then prepare=--prepare-flag set -- --binary fi "$work/projected-row" "$l" "$m" "$k" "$prepare" "$graphs" && python a10/projected-rank.py "$graphs" "$l" "$m" "$k" "$@" \ --cache --batch "$batch" --slab "$slab" --scratch "$work" \ --replay "a10/decic-proj-$l-$m-$k.json" || exit 1 rm -r "$graphs" done ~~~ In the 42 binary-basis tests, `projected-rank.py` uses `diagonal_weights()` from `a10/seed-vectors.py` to check the number of binary highest-weight columns at $(l,m,k)$ against the adjacent weight difference $W(m,k)-W(m-1,k)$. The GPU program uses `schur-projector.py` for sampling, `binary-readout.py` for the binary basis, and `collision-bound.py` when choosing the sampling limit for a fresh run. For a small independent CPU check with NumPy, SciPy and python-flint, run `python a10/schur-projector.py 10 88 6 6 --batch 32`. The expected rank is 17 modulo 239.