Linear gate slack suffices for any truth-table prefix extension
ProvedPvsNP.McspCandidateAgreement.exists_update_with_gate_slackcomplexity-theoryformal-verification
For a native circuit on n inputs and any binary address, one can retain every earlier truth-table bit and prescribe the value at that address. A budget that allows the old number of gates plus n+2 gates for true or n+3 gates for false is enough.
Preamble
import Definitions.Def_NativeCircuitExtensionSemantics set_option autoImplicit false open PvsNP PvsNP.SuccinctCircuits PvsNP.McspCandidateAgreement
Formal statement
theorem PvsNP.McspCandidateAgreement.exists_update_with_gate_slack {n : ℕ} (old : List Gate) (cut : Fin (2^n)) (b : Bool) (s : ℕ)
(slack : old.length+(n+1)+(if b then 1 else 2) ≤ s) :
∃ candidate, candidate.length ≤ s ∧ validUpdate old candidate cut b := by sorrySource
Direct gate-list comparison against the binary cut.