Linear masks have equal fibers for shifts in the same image coset
ProvedPvsNP.linear_mask_shift_fiber_cardcombinatoricscomplexity-theory
For an additive homomorphism with finite domain, two output shifts differing by an image element have equally many inputs mapping to each observed output after shifting.
Preamble
import Mathlib.Algebra.Group.Hom.Basic import Mathlib.Data.Finset.Card import Mathlib.Data.Fintype.Basic set_option autoImplicit false
Formal statement
theorem PvsNP.linear_mask_shift_fiber_card {Input Output : Type}
[AddGroup Input] [AddGroup Output] [Fintype Input] [DecidableEq Output]
(mask : Input →+ Output) (first second observed : Output)
(translation : Input) (offset : mask translation + second = first) :
(Finset.univ.filter (fun x : Input => mask x + first = observed)).card =
(Finset.univ.filter (fun x : Input => mask x + second = observed)).card := by sorrySource
Finite masking step for the noise quotient of a linear sketch.