We prove a general rigidity result for the maximal possible number of gradients by showing that any lipschitz function using four pairwise not rank-one connected gradients is necessarily affine. This exhibits an interesting difference between rigidity features of approximate and exact solutions of differential inclusions.