Good-string combinatorics #
This module formalizes the finite counting core of the good-string argument. Surviving circuit codes form a finite type. An input catches a tuple of survivors when at most half of the tuple agrees with the target there, and the number of caught tuples is an exact weighted binomial tail.
If every survivor tuple is caught somewhere, a max-fiber averaging argument
finds one input catching at least a 2^-arity share of all tuples, stated by
cross-multiplication. The remaining quantitative step is to bound the binomial
tail when too few individual survivors disagree. The tail layer does this using
ordered tuples with repetition and obtains the required 1/(2n) shrink. The
remaining circuit-theoretic step is to obtain every-tuple coverage from target
hardness via majority composition.
A valid survivor code outputs the target bit exactly when the encoded circuit agrees with the target at that input.
If one input does not catch a survivor tuple, then a strict majority of the tuple's circuit outputs agrees with the target there.
Ruling out every survivor tuple as a majority representation of the target is enough to ensure that every tuple is caught somewhere.
The finite type of canonical survivor codes has cardinality equal to the canonical survivor count.
Catching a survivor tuple is exactly the statement that at most half of its entries agree with the target at that input.
Exact weighted-binomial count of survivor tuples caught at one input.
Disagreeing survivors and survivors after adding the input partition the current survivor set exactly.
A one-input extension shrinks by 1 / denominator exactly when at least a
1 / denominator share of current survivors disagree there.
If every survivor tuple is caught, some input catches at least a
2^-arity share of all survivor tuples, in exact cross-multiplied form.
At arity at least eight, target hardness above the explicit
packing-plus-majority bound gives a one-input survivor shrink by 1/(2n).