Weighted projection changes in a full Boolean traversal
ProvedPvsNP.SupportTransitionCost.weighted_support_switches_lowercombinatoricscomplexity-theoryformal-verification
Suppose a list covers all Boolean assignments. Each labeled coordinate set incurs its weight whenever a consecutive pair changes on that set. The total cost is at least the sum over labels of the weight times one less than the number of assignments to the set. Overlaps and transitions changing several coordinates are allowed.
Preamble
import Mathlib
Formal statement
theorem PvsNP.SupportTransitionCost.weighted_support_switches_lower {Index Label : Type*} [DecidableEq Index]
(visits : List (Index → Bool)) (covers : ∀ x, x ∈ visits)
(labels : Finset Label) (support : Label → Finset Index) (weight : Label → ℕ) :
(∑ label ∈ labels, weight label * (2 ^ (support label).card - 1)) ≤
((visits.zip visits.tail).map (fun pair =>
∑ label ∈ labels, weight label * (if ∀ i ∈ support label, pair.1 i = pair.2 i
then 0 else 1))).sum := by sorrySource
Exact support-projection charge for consecutive-address traversal.