Near-saturated native circuit cofactors limit selector dependence
ProvedPvsNP.NativeMcspGateSemantics.gateBound_near_saturated_cofactorcomplexity-theoryformal-verification
Suppose a Boolean function admits a native gate list of length at most s. Fix any k input coordinates. If the resulting cofactor needs at least q gates, where q is at least two, then there is a set of at most s minus q fixed coordinates such that the original function is determined by these coordinates together with all the unfixed coordinates.
Preamble
import Definitions.Def_NativeMcspGateSemantics set_option autoImplicit false open PvsNP.NativeMcspGateSemantics
Formal statement
theorem PvsNP.NativeMcspGateSemantics.gateBound_near_saturated_cofactor {n k m s q : ℕ} (positive : 2 ≤ q)
(split : Fin n ≃ Fin k ⊕ Fin m) (pin : Fin k → Bool) {f : Table n}
(small : gateBound f s) (tight : ¬ gateBound (cofactor split pin f) (q-1)) :
∃ needed : Finset (Fin k), needed.card ≤ s-q ∧
∀ a b : Fin n → Bool,
(∀ j : Fin m, a (split.symm (.inr j)) = b (split.symm (.inr j))) →
(∀ i ∈ needed, a (split.symm (.inl i)) = b (split.symm (.inl i))) →
f a = f b := by sorrySource
Backward register demands for the native gate-list compiler in PvsNPMcspCofactorSaturation.lean.