Kernel-checked bounded C3 certificate #
The Boolean certificates cover 27 ≤ m ≤ 6560 over the five ranges on which
the ternary length is constant. Within each range, modular residues are advanced
by multiplication by four, so only the first power is computed from scratch.
Their soundness is transported through proved modular exponentiation and ternary
prefix lemmas, yielding the headline carry theorem at the end of this file.
For every m in the closed interval from 27 through 6560, the first
6 * ternaryLength m little-endian ternary digits of 4 ^ m contain at least
two digits equal to 2.
Equivalent length-indexed form of the bounded ternary-prefix theorem.
Bounded C3 carry result: throughout 27 ≤ m ≤ 6560, doubling
the selected prefix of the ternary expansion of 4 ^ m produces at least two
outgoing carries.