Local replacements in permuted codeword output preserve the addressed values
ProvedPvsNP.addressed_slot_agreementcoding-theorycombinatoricscomplexity-theory
Let two Boolean codewords be written as lists of address–value records, each with every address exactly once. Suppose the two lists agree off a set of output slots. If the set has cardinality less than the minimum distance between distinct codewords, then the underlying codewords are equal and the designated slots contain the same set of addresses in both lists.
Preamble
import Mathlib
Formal statement
theorem PvsNP.addressed_slot_agreement {N D : ℕ} (slots : Finset (Fin N))
(baseAddr altAddr : Fin N ≃ Fin N) (baseVal altVal : Fin N → Bool)
(outsideAddr : ∀ i ∉ slots, baseAddr i = altAddr i)
(outsideVal : ∀ i ∉ slots, baseVal (baseAddr i) = altVal (altAddr i))
(distance : baseVal ≠ altVal → D ≤ (Finset.univ.filter (fun i => baseVal i ≠ altVal i)).card)
(small : slots.card < D) :
baseVal = altVal ∧ slots.image baseAddr = slots.image altAddr := by sorrySource
Distance step in the one-work-tape lower bound for low-degree completion with arbitrary read-ahead and adaptive addressed output order.