Modular triangle counts from the actual seven-product coefficient recursion #
The coefficient arrays contain zero padding and one monomial for each real edge residue.
CountPrime.count applies the executable finite Strassen recursion and selects one product
coefficient for each original AB pair. It equals the existing countZeroMod, including
modular false positives. This is a mathematical specification and correctness bridge for
the native counter, not a native execution or running-time theorem.
The construction selectively adapts Spec/Sec3/Theorem17/Strassen.lean, the matPList,
matQList, countBy and countOf_eq sections, at revision
16a5ce41304fcdaea4e0be7c132e1c361dc26da5. Existing matP, matQ, cyclic coefficients and
modular triangle counts are reused; no parallel triangle problem or polynomial ring is added.
Every original pair and residue in the executable finite Strassen coefficient array has exactly the existing cyclic matrix-product meaning, including power-of-two padding.
The selected real product coefficient is a nonnegative count of at most n middle vertices. Native signed-to-unsigned extraction uses this bound before every sum.