This file is all Claude (Fable 5.2, Opus 5.5).

# Proofs and their checkers

Programs that check the proofs and the constructions on [the page](https://equipow.dreev.es), and the data of some of those proofs. Each program's opening comment states its claim and its argument, and most say how to run it.

A *sequence* is n signs, +1 or −1. It *has order m* when its power sums vanish for the exponents 0, …, m − 1, and m\*(n) is the largest order at length n. Below, "no n:m" means that no sequence of length n has order m, so that m\*(n) ≤ m − 1.

## Upper bounds

| files | what they check |
|---|---|
| [formtree.py](formtree.py), [fkernel.cpp](fkernel.cpp) | A form tree. The two checkers, in Python and in C++, share no code. Their proofs are in [../searches/formtree/](../searches/formtree/): no 288:10, and eight other cells. |
| [pintree.py](pintree.py), [pintree_second.py](pintree_second.py) | A pin tree. The two checkers share no code. Their proofs are [pintree_432_12.json.gz](pintree_432_12.json.gz) (no 432:12, so m\*(432) = 11) and [pintree_816_13.json.gz](pintree_816_13.json.gz) (no 816:13, so m\*(816) = 12). The prover is in [../searches/pintree/](../searches/pintree/). |
| [symtree.py](symtree.py) | A symmetric-only form tree (2026-11-11): no symmetric (or antisymmetric) sequence of a length has an order. It checks that the proof's start nodes are what the symmetry gives and then runs formtree.py's check of the trees under them. Its two proofs so far are [../searches/formtree/cells/480_14_sym/](../searches/formtree/cells/480_14_sym/) (no symmetric sequence of length 480 has order 14) and, since 2026-11-13, [../searches/formtree/cells/480_13_antisym/](../searches/formtree/cells/480_13_antisym/) (no antisymmetric one has order 13), so m\*(480) = 12 if BGPW's Symmetry Conjecture holds. They settle no upper bound without that conjecture. |
| [proof3360jets.py](proof3360jets.py) | Astra: “At length 3360, the checker computes the derivative congruences at an eighth root of unity for orders 21 through 23.” |
| [root480.py](root480.py) | Astra: “At length 480, order 13 forces the multiplicity at −1 to lie between two and eight.” |
| [firstconditions.py](firstconditions.py) | Necessary conditions at 1440:17, 2880:19, 6656:15 and 6688:15. |
| [proof288.py](proof288.py) | m\*(288) ≤ 10 (2026-10-25). The form tree has since shown m\*(288) = 9. |
| [proof384.py](proof384.py), [proof384.wl](proof384.wl) | Astra's certificate that m\*(384) = 10 (2026-10-20), in Python and in Mathematica. |
| [proof752.py](proof752.py) | m\*(752) ≤ 10 (2026-10-25). |
| [proof1248.py](proof1248.py) | Codex: m\*(1248) ≤ 13, so m\*(1248) = 13, with no symmetry assumption (2026-11-11). |
| [proof1456.py](proof1456.py) | m\*(1456) ≤ 11, so m\*(1456) = 11 (2026-11-07). |
| [proof2240.py](proof2240.py) | m\*(2240) ≤ 12 (2026-11-29). |
| [proof2400.py](proof2400.py) | m\*(2400) ≤ 18 (2026-11-29). |
| [proof3168.py](proof3168.py) | m\*(3168) ≤ 16 (2026-11-30). |
| [proof3264_3456.py](proof3264_3456.py) | m\*(3264) ≤ 16, m\*(3456) ≤ 17 (2026-11-29). |
| [primepower.py](primepower.py) | m\*(6560) ≤ 14, m\*(6592) ≤ 14, m\*(13120) ≤ 15, m\*(13184) ≤ 15 (2026-11-30). |

    python3 -B proofs/proof288.py
    python3 -B -I -S proofs/pintree.py proofs/pintree_432_12.json.gz

The Python programs above use the standard library only, except proof752.py, which also needs numpy.

## Constructions for powers of 2

- [pow2rate.py](pow2rate.py) checks the witnesses, finite joins, and residue certificates for the asymptotic rate in the page’s Asymptotics section.
- Astra: “The [even-base checker](primerates.py) verifies the integer prefixes from the Vandermonde determinant. The [fixed-multiplier checker](rayrates.py) compares the missing prime powers and verifies the shifted products at roots of unity.”
- Astra: “The [fixed-modulus checker](fixedmod.py) computes the mod-3 ceiling and, with SymPy, constructs joint residue-class sums at powers of two.”
- Astra: “The [sharp dyadic rate](sharpdyadic.py) checker bounds the first exponent for excess 542 and verifies the base-1728 construction used in the logarithmic error estimate.”
- Astra: “Run `python3 -B -I -S proofs/dyadicfirsts.py` to replay the [unrestricted first-exponent bounds](../pagedata/dyadic-firsts.txt). The [checker](dyadicfirsts.py) reconstructs all 686 bounds and their integer length identities. The [original constructions](dyadicseeds.txt) are checked even where a product later improved the bound. Each `product` row names two smaller excesses whose exponents and guaranteed orders add. The [mixed-product recipes](dyadicheads.json) give the radix, order and factor multiplicities for rows marked `heads` and the padded centers for rows marked `mirror`. The six `mirror` recipes reserve one reflected center at the first digit and allow a separate valuation at every digit. Their records give the head factors, the chosen ternary stencil length, a filler of length 1440 or 1728 before taking powers, the extra tile groups, and the dyadic scales of the prefix. Each signed atom is reconstructed from its chart half-code with the reflection sign of its order. The checker multiplies every chosen prefix over the integers and verifies its coefficient bound. In a `mirror` row the first radix and its order are stored as twice the side radix and one more than the side order. An independently signed terminal product gives every direct construction its stated exact order. In a reflected construction that product fixes the order of one side. Interchanging the reflected sides gives a Littlewood polynomial of that exact order and the required symmetry. The [split-seam recipes](dyadicsplit.json) list the signed factors, the extra filler groups, their multiplicity, and the prefix layout and padding. The [seam checker](symseam.py) verifies the maximum number of stencil copies at each source. A `split` recipe has independently signed joins. The `split-mirror` and `split-odd-mirror` recipes reserve one center and use the same doubled first-radix convention as `mirror`. A `split-odd` recipe can use a prefix of length $j2^v$ for odd $j$. Its two-entry layout gives $j$ and the number of difference triples dilated by that factor. A negative second entry names the prime in the [Vandermonde prefix construction](primerates.py). When three divides $j$, the prefix vanishes at a primitive cube root. The other summands can still supply the required length modulo the radix. The numeric key is the exponent and order, with a leading `r` for a reflected recipe. A `split-entropy` recipe checks the [integer stencil count](stencilcount.py) and has an `e` before the numeric key. A list of stride and multiplicity pairs specifies a product of differences. Its binary and ternary factors complete the prefix to length $3·2^v$. A list in the filler slot uses the indicated Littlewood polynomials with their recorded multiplicities in the expanded product. Earlier reflected and unrestricted receipts remain in the direct-construction file when a later receipt reaches the same excess. The long Littlewood polynomials exist by the construction and the ternary stencil's counting argument. Add `--reflections` to count the records and intermediate exponents with exact reflected witnesses. Add `--brackets` to print each excess, the first exponent permitted by the modulo-three class sizes, and its proved upper bound.”
- [sharedseam.py](sharedseam.py) builds a reflected center with two directions sharing the same physical residue class, and checks the order-seven example in the page's Asymptotics section.
- Astra: “Run `python3 -B -I -S proofs/catalogue_cancellation.py` to check the [signed-join obstruction](catalogue_cancellation.py). It verifies the cubic norms of the explicit Littlewood polynomials, including the large downloads, and gives the two leading coefficients that need direct evaluation modulo three.”
- Astra: “The [nested-join checker](nestedjets.py) tests every candidate exponent for an earlier excess-three first against a one-order lift. The [length-65,536 checker](first16.py) verifies the class sums and the restrictions on each half of the coefficient sequence. The [binary-digit checker](binaryfirst.py) verifies the restrictions on quadratic sign rules.”
- [nestedmixed.py](nestedmixed.py) runs the page's [two-prime calculation](../index.html#mixed-lift) at length 2^21.
- Astra: “[firstdensity.py](firstdensity.py) encloses the proportion of catalogue excesses that attain their earliest allowed exponent and prints the [686 certified first exponents](../pagedata/pow2-firsts.txt).”
- Gemini Neon: “[pow2target25.py](pow2target25.py) checks the reverse Diophantine target `2^25 = 13664*2368 + 1920*624`, the Proposition 4.4 exclusion of 6832:15, the symmetric mod-3 profile of 13664:16, and the three-gold-ring cascade in Figure 2.”

- [certificate_2^17.wl](certificate_2^17.wl), [certificate_2^18.wl](certificate_2^18.wl) and [certificate_2^24.wl](certificate_2^24.wl): Mathematica scripts. Each builds a partition of {0, …, 2^k − 1} into two parts whose power sums agree for the exponents 0, …, k, one more than Thue–Morse reaches, from sequences on the page, and checks it directly.
- [X_order25_2^24.txt.gz](X_order25_2^24.txt.gz): the part of the last of those partitions that contains 0: 8,388,608 numbers, one a line.
- [record_gaps.wl](record_gaps.wl): the table behind the page's Theorem 1. For each gap g = 1, …, 9 it gives the least k known with m\*(2^k) ≥ k + g and the construction that shows it, and checks each row.

## The rest

- [count128/](count128/): the exhaustive count of the sequences of length 128 and order 7. There are 862, which is 431 partitions, 303 of them antisymmetric. Its programs' opening comments say how they count, `out128/` holds the run's output, `prior/` holds earlier lists that its quals compare with, and `python3 quals.py` there builds and checks the programs.
- [symlarge.py](symlarge.py): the objects of the page's proof that BGPW's Symmetry Conjecture holds at every sufficiently large length, computed exactly for [../quals/quals_symlarge.py](../quals/quals_symlarge.py). It needs numpy. [symlarge.html](symlarge.html) held that proof for a day and now only sends its old address to the page.
- [sym15.py](sym15.py) builds the antisymmetric sign sequence of length 795280 from the page's order-13 examples and checks its exact order by synthetic division. [quals_sym15.py](../quals/quals_sym15.py) also builds each of the 60 shorter side lengths used in the order-15 tail.
  Astra added the [published constructions](sym15.json) on 2026-11-26. The same program reconstructs each one, including the shorter length 535440, and checks all 16 coefficients through degree 15.
- Astra: “The [symmetric firsts](symfirsts.py) are reconstructed from [their recorded sources](symfirsts.json). The [concentration checker](thresholdconcentration.py) verifies the small odd-step prefixes used in the exceptional-order bound.”
- [symtransport.py](symtransport.py) implements the finite-difference construction in the page's symmetry proof. It checks the signs of short sequences directly and prints the lengths of the much larger seeds without allocating them. It uses [symlarge.py](symlarge.py) for the integral moment basis.
- [symcenters.py](symcenters.py), [symcenters.json](symcenters.json) — 338784:17, 362784:17, 1208928:18, 2186400:19 (2026-11-30).
- Astra: “[symrays.py](symrays.py) checks the exact-order constructions used in the proof for doubling rays.”
<!-- TODO: Document the replay of the exact low-order cutoffs and the first open order. -->
- Astra: “The [small-order checker](exactcutoffs.py) constructs Littlewood polynomials with the required symmetry and checks their first nonzero Taylor coefficients at one. It gives the least cutoff for every order from 1 through 12, using the chart’s exclusions at the last missing lengths. Run `python3 -B -I -S proofs/exactcutoffs.py 13` or replace `13` by `14` for those orders’ lower and upper bounds.”
- Astra: “The [symmetric threshold](symthreshold.py) and its [finite certificate](symthreshold_finite.py) give upper bounds at every order. The [dyadic construction](thresholdliminf.py) checks the lower exponential limit of that threshold. The [fixed-valuation checker](valuationlength.py) constructs integer prefixes by polynomial division modulo two.”
- [lattice_search.wl](lattice_search.wl): the lattice method behind Claude's examples, cut down to what runs in plain Mathematica. Written for Stan Wagon on 2026-10-14.
- [mma240.wl](mma240.wl): an early Mathematica search for a sequence of length 240 and order 11. Its header says that Claude wrote it without a Mathematica to test it on.
- Astra: “The [prescribed cubic norm construction](normsigns.py) constructs Littlewood polynomials with the required symmetry while preserving the integer prefix’s class sums. The [finite and literal-sign quals](../quals/quals_normsigns.py) check the order-3072 example and both cubic length classes.”

- Astra: “The [center checker](centerlifts.py) replays the twelve [exact-order centers](centerlifts.json) at orders 20 through 31. Its `--physical 20` option independently streams all 9,964,128 signs of the first one. The [threshold checker](symthreshold_finite.py) uses these centers to verify the all-orders bound `E_m ≤ 3^m`.”
- Astra: “The [digit-count checker](digitweights.py) gives the exact order of a rule depending on a single Hamming weight. At length 65,536 it also checks all ways to use two digit counts and shows why all five remaining third moments exclude order 19.”

- Astra: “The [stencil count](stencilcount.py) bounds the entropy of integer subset moments with prime-power congruences. The [cubic edge checker](cubicedge.py) excludes order 14 at lengths 4384, 4400 and 4448, order 17 at 19712 and 19744, and order 18 at 39392 and 39424. It also constructs reflected lower witnesses at all four larger lengths. The [exact threshold checker](exactcutoffs.py) replays the first twelve exact values and the brackets for orders 13 and 14. The [shorter sides](centerlifts_short.json) can be checked with `python3 -B -I -S proofs/centerlifts.py --shorter 30 31`.”

- Astra: “The [uniform cutoff checker](threshold27.py) verifies that every admissible length at least $(27/10)^m$ admits a Littlewood polynomial of exact order $m$ and symmetry $(-1)^m$. The [eleven half-prefixes](threshold27.json) store integer coefficients. The checker verifies every required zero and every finite threshold with integer arithmetic.”

<!-- TODO: Describe the symmetric ternary counting certificate and its ordinary short example. -->
- Astra: “The [symmetric stencil checker](oddstencil.py) proves that a ternary palindrome of order at least 62 has odd width at most 12,599 and a zero midpoint. Its [independent quals](../quals/quals_oddstencil.py) also check an order-six example on 27 sites.”
<!-- TODO: Describe the parity obstruction to symmetry at 4320 and the antisymmetric 4320:21 Gauss-sum candidate. -->
- Gemini Neon: “The [parity-obstruction checker](sym4320.py) proves that no symmetric Littlewood polynomial of length 4320 has order at least 19 (hence none at order 20), verifies exact admissibility and `p_7`-valuation 21 for the antisymmetric quadratic Gauss-sum profile at 4320:21, and verifies that 4320 is the unique admissible survivor across the `p in {3, 7, 11}, s in {1, 2, 3}` families.”
