TITLE: A Boolean function that is not constant on affine subspaces of large enough dimension
QUESTION [5 upvotes]: I'm interested in an explicit Boolean function $f \colon \{0,1\}^n \rightarrow \{0,1\}$ with the following property: if $f$ is constant on some affine subspace of $\{0,1\}^n$, then the dimension of this subspace is $o(n)$. 
It is not difficult to show that a symmetric function does not satisfy this property
by considering a subspace $A=\{x \in \{0,1\}^n \mid x_1 \oplus x_2=1, x_3 \oplus x_4=1, \dots, x_{n-1} \oplus x_n=1\}$. Any $x \in A$ has exactly $n/2$ $1$'s and hence $f$ is constant on the subspace $A$ of dimension $n/2$.
Cross-post: https://cstheory.stackexchange.com/questions/1948/a-boolean-function-that-is-not-constant-on-affine-subspaces-of-large-enough-dimen

REPLY [3 votes]: Unless I am misreading it, the paper Affine dispersers from subspace polynomials by Ben-Sasson and Kopparty gives an explicit construction which is nonconstant on any affine subspace of dimension less than $6 n^{4/5}$.