Support size of a field-product test lift
ProvedPvsNP.field_product_lift_cardcoding-theoryfinite-fieldsformal-verification
Take a function into a finite field and a Boolean test that rejects zero. The number of pairs where the test accepts the product of a field element and the function value equals the number of nonzero function values counted over their inputs times the number of field elements accepted by the test.
Preamble
import Mathlib
Formal statement
theorem PvsNP.field_product_lift_card {U F : Type*} [Fintype U] [Field F] [Fintype F]
(value : U → F) (test : F → Bool) (zeroTest : test 0 = false) :
Nat.card {uv : U × F // test (uv.2 * value uv.1) = true} =
Nat.card {u : U // value u ≠ 0} * Nat.card {v : F // test v = true} := by sorrySource
The binary support count in a constant-distance field coefficient code.