A sparse collision vector for a finite linear checkpoint
ProvedPvsNP.sparse_kernel_of_choose_gtcombinatoricscomplexity-theoryformal-verification
For bit masks on a finite position set, let a digest take values in a finite additive group and send symmetric difference to subtraction. If there are more masks of the selected weight than digest values, there is a nonempty kernel mask supported on the position set with weight at most twice the selected weight.
Preamble
import Mathlib set_option autoImplicit false open scoped symmDiff
Formal statement
theorem PvsNP.sparse_kernel_of_choose_gt {I Tag : Type} [DecidableEq I] [Fintype Tag]
[AddCommGroup Tag] (positions : Finset I) (radius : ℕ) (digest : Finset I → Tag)
(linear : ∀ a b, digest (a ∆ b) = digest a - digest b)
(large : Fintype.card Tag < positions.card.choose radius) :
∃ pattern : Finset I, pattern.Nonempty ∧ pattern ⊆ positions ∧
pattern.card ≤ 2 * radius ∧ digest pattern = 0 := by sorrySource
One-head movement and replay in PvsNPSparseCheckpointKernel.lean.