Compound support bound for row and column checks with exempt rows
ProvedPvsNP.joint_check_support_boundcoding-theorycombinatoricsformal-verification
In a nonzero finite bit matrix, suppose each nonzero column has at least a ones and each nonzero row outside an exempt set of h rows has at least b ones. The total weight is at least the product of b and a minus h, with natural subtraction capped at zero.
Preamble
import Mathlib
Formal statement
theorem PvsNP.joint_check_support_bound {Row Col : Type*}
[Fintype Row] [Fintype Col] [DecidableEq Row]
(bits : Row → Col → Bool) (exempt : Finset Row) (minRows minCols : ℕ)
(nonzero : ∃ r c, bits r c = true)
(columns : ∀ c, (∃ r, bits r c = true) →
minRows ≤ (Finset.univ.filter (fun r => bits r c = true)).card)
(rows : ∀ r, r ∉ exempt → (∃ c, bits r c = true) →
minCols ≤ (Finset.univ.filter (fun c => bits r c = true)).card) :
(minRows - exempt.card) * minCols ≤
∑ r : Row, (Finset.univ.filter (fun c => bits r c = true)).card := by sorrySource
The local rigidity calculation for joint high moments and low-row fingerprints.