Affine dispersers from nonconstancy on affine subspaces #
An affine disperser for dimension d (Cslib.BitString.IsAffineDisperser) is nonconstant on the
image of every injective map g : BitString d โ BitString n that preserves sums of three points
(Cslib.BitString.IsAffine). Such an image is an affine subspace of dimension d in Mathlib's
sense over ๐ฝโ = Bool: g is a Mathlib affine map with linear part x โฆ g x + g 0
(Cslib.BitString.IsAffine.toAffineMap), the image is the affine subspace โค.map g, and its
direction, the range of the injective linear part, has dimension d
(Cslib.BitString.IsAffine.finrank_direction_map_top).
Hence a function nonconstant on every affine subspace of dimension d is an affine disperser for
dimension d (Cslib.BitString.isAffineDisperser_of_forall_exists_ne). This turns nonconstancy
theorems stated with AffineSubspace, such as Ben-Sasson and Kopparty's, into affine dispersers.
The converse, that every affine subspace of dimension d contains such an image, is not
formalized here: Mathlib has no Field Bool instance, so a basis of the direction is not
available over Bool.
Main definitions #
Cslib.BitString.IsAffine.linearMap: the linear partx โฆ g x + g 0of an affine map over๐ฝโ.Cslib.BitString.IsAffine.toAffineMap: an affine map over๐ฝโas a Mathlib affine map.
Main results #
Cslib.BitString.IsAffine.finrank_direction_map_top: the image of an injective affine map fromVis an affine subspace whose direction has dimensionfinrank Bool V.Cslib.BitString.isAffineDisperser_of_forall_exists_ne: a function nonconstant on every affine subspace of dimensiondis an affine disperser for dimensiond.
References #
The linear part x โฆ g x + g 0 of a map g that is affine over ๐ฝโ.
Instances For
The linear part of g sends x to g x + g 0.
The linear part of an injective map that is affine over ๐ฝโ is injective.
A map that is affine over ๐ฝโ (IsAffine) as a Mathlib affine map over Bool, with linear
part x โฆ g x + g 0.
Instances For
As a function, the Mathlib affine map of g is g itself.
The image of an injective map from V that is affine over ๐ฝโ is an affine subspace whose
direction has the dimension of V.
A function nonconstant on every affine subspace of BitString n of dimension d is an affine
disperser for dimension d: the image of an injective affine map from BitString d is such a
subspace.