Projection collisions averaged within shared tag classes
ProvedPvsNP.tagged_suffix_collision_boundcomplexity-theoryformal-verification
In a finite input family, each projection value occurs at most B times. Partition the inputs by a tag. In each selected class count ordered pairs with the same projection, then divide by the class size, with zero for an empty class. The sum of these normalized counts is at most B times the number of selected tags.
Preamble
import Mathlib set_option autoImplicit false
Formal statement
theorem PvsNP.tagged_suffix_collision_bound {Input Tag Projection : Type}
[DecidableEq Tag] [DecidableEq Projection]
(inputs : Finset Input) (tags : Finset Tag)
(tag : Input → Tag) (projection : Input → Projection) (bound : ℕ)
(multiplicity : ∀ key, (inputs.filter fun x => projection x = key).card ≤ bound) :
let fiber := fun t => inputs.filter fun x => tag x = t
let pairs := fun t => ∑ x ∈ fiber t, ((fiber t).filter fun y => projection y = projection x).card
(∑ t ∈ tags, (pairs t : ℚ) / ((fiber t).card : ℚ)) ≤ (tags.card : ℚ) * bound := by sorrySource
Crossing-sequence lower bounds with auxiliary metadata shared within tag classes.