A nonempty Boolean cube subset has a vertex with many external neighbors
ProvedPvsNP.cube_exists_many_external_neighborscombinatoricscomplexity-theoryformal-verification
In an n-dimensional Boolean cube, any nonempty finite set S contains a vertex with at least n minus the floor of the binary logarithm of |S| distinct neighbors outside S. Neighbors are obtained by flipping exactly one coordinate.
Preamble
import Mathlib.Algebra.BigOperators.Fin import Mathlib.Data.Fin.Tuple.Basic import Mathlib.Data.Fintype.Pi import Mathlib.Data.Nat.Log import Lean.Elab.Tactic.Omega set_option autoImplicit false
Formal statement
theorem PvsNP.cube_exists_many_external_neighbors (n : ℕ) (vertices : Finset (Fin n → Bool))
(nonempty : vertices.Nonempty) :
∃ x ∈ vertices, n - Nat.log 2 vertices.card ≤
((Finset.univ.filter fun i => ((fun i : Fin n => Function.update x i (!x i)) i) ∉ vertices).image (fun i : Fin n => Function.update x i (!x i))).card := by sorrySource
Simon’s hypercube degree bound, used for local reductions from exact MCSP to a distance promise.