Sparse linear grafts preserve inputs when their local outputs agree
ProvedPvsNP.sparse_graft_preserves_inputcoding-theorycomplexity-theorylinear-algebra
Consider a linear map with no nonzero vector in its kernel supported on at most t coordinates. Splice a donor into at most t input positions. Suppose the resulting linear output equals the source output off designated output positions and equals the donor output on them. If the donor and source outputs agree there, then the spliced input values equal the source values.
Preamble
import Mathlib
Formal statement
theorem PvsNP.sparse_graft_preserves_input {F I J : Type*}
[Field F] [Fintype I] [DecidableEq I] [DecidableEq F]
(observe : (I → F) →ₗ[F] (J → F)) (inputSlots : Finset I) (outputSlots : Finset J)
(base donor : I → F)
(noSparse : ∀ change, observe change = 0 → hammingNorm change ≤ inputSlots.card → change = 0)
(sameLocal : ∀ j ∈ outputSlots, observe donor j = observe base j)
(graftActive : ∀ j ∈ outputSlots,
observe (fun i => if i ∈ inputSlots then donor i else base i) j = observe donor j)
(graftInactive : ∀ j ∉ outputSlots,
observe (fun i => if i ∈ inputSlots then donor i else base i) j = observe base j) :
∀ i ∈ inputSlots, donor i = base i := by sorrySource
The local donor step in a two-port one-work-tape lower bound for linear digest computation.