A selector row separated from the allowed weights certifies a native gate lower bound
ProvedPvsNP.NativeMcspGateSemantics.not_gateBound_of_row_weight_remaindercomplexity-theoryformal-verification
Assume one cofactor requires at least q native gates, with q at least two. For a fixed payload assignment, prescribe a Boolean pattern across the selector assignments except on a specified set of ambiguous entries. Put D equal to two to the power k minus (s minus q), using natural subtraction. If the weight of the pattern has remainder modulo D strictly farther from zero and D than the number of ambiguous entries, then the full table cannot have a native circuit with at most s gates.
Preamble
import Definitions.Def_NativeMcspGateSemantics set_option autoImplicit false open PvsNP.NativeMcspGateSemantics
Formal statement
theorem PvsNP.NativeMcspGateSemantics.not_gateBound_of_row_weight_remainder {n k m s q : ℕ} (positive : 2 ≤ q)
(split : Fin n ≃ Fin k ⊕ Fin m) (pin : Fin k → Bool) {f : Table n}
(tight : ¬ gateBound (cofactor split pin f) (q-1))
(u : Fin m → Bool) (pattern : (Fin k → Bool) → Bool)
(ambiguous : Finset (Fin k → Bool))
(prescribed : ∀ a, a ∉ ambiguous → cofactor split a f u = pattern a)
(above : ambiguous.card <
(Finset.univ.filter fun a => pattern a = true).card % (2 : ℕ) ^ (k-(s-q)))
(below : ambiguous.card <
(2 : ℕ) ^ (k-(s-q)) - (Finset.univ.filter fun a => pattern a = true).card %
(2 : ℕ) ^ (k-(s-q))) : ¬ gateBound f s := by sorrySource
Native restriction and Boolean fiber divisibility in PvsNPMcspSparseBankRepair.lean.