Blockwise decoding increases Hamming distance by at most the block width
ProvedPvsNP.blockwise_hamming_dist_lecombinatoricscomplexity-theory
If each source coordinate independently determines a fixed block of output coordinates, the Hamming distance between two decoded words is at most the input Hamming distance multiplied by the common block width.
Preamble
import Mathlib.InformationTheory.Hamming import Mathlib.Data.Finset.Prod import Mathlib.Data.Fintype.Prod set_option autoImplicit false
Formal statement
theorem PvsNP.blockwise_hamming_dist_le {Index Offset Source Target : Type}
[Fintype Index] [Fintype Offset] [DecidableEq Source] [DecidableEq Target]
(decode : Index → Offset → Source → Target) (x y : Index → Source) :
hammingDist (fun p : Index × Offset => decode p.1 p.2 (x p.1))
(fun p : Index × Offset => decode p.1 p.2 (y p.1)) ≤
hammingDist x y * Fintype.card Offset := by sorrySource
Finite distortion estimate for the correlated-block Gap-MCSP construction.