A first ordered row disagreement certifies every currently set unknown coordinate
ProvedPvsNP.discovery_stepcombinatoricscomplexity-theoryformal-verification
Order Boolean contexts by a positive weighted sum. Suppose a context disagrees with the row shared by all earlier contexts having the same values on a set of already witnessed essential coordinates, and that its key was previously observed. Adding its currently set coordinates strictly enlarges the set and all coordinates in the enlarged set are essential. A coordinate is essential when a pair differing only on that coordinate has distinct rows.
Preamble
import Mathlib set_option autoImplicit false
Formal statement
theorem PvsNP.discovery_step {I Row : Type} [DecidableEq I] (weight : I → ℕ) (positive : ∀ i, 0 < weight i)
(row : Finset I → Row) (known current : Finset I) (expected : Row)
(seen : (∑ j ∈ (current ∩ known), weight j) < (∑ j ∈ current, weight j))
(oldEssential : ∀ i ∈ known, (∃ a b : Finset I, (∀ j, j ≠ i → (j ∈ a ↔ j ∈ b)) ∧ row a ≠ row b))
(agreesEarlier : ∀ a, (∑ j ∈ a, weight j) < (∑ j ∈ current, weight j) →
a ∩ known = current ∩ known → row a = expected)
(mismatch : row current ≠ expected) :
known ⊂ known ∪ current ∧ ∀ i ∈ known ∪ current, (∃ a b : Finset I, (∀ j, j ≠ i → (j ∈ a ↔ j ∈ b)) ∧ row a ≠ row b) := by sorrySource
Exact ordered-stream selector refinement in PvsNPMonotoneSelectorDiscovery.lean.