In cryptanalysis, the piling-up lemma is a principle used in linear cryptanalysis to construct linear approximations to the action of block ciphers. It was introduced by Mitsuru Matsui (1993) as an analytical tool for linear cryptanalysis. The lemma states that the bias (deviation of the expected value from 1/2) of a linear Boolean function (XOR-clause) of independent binary random variables is related to the product of the input biases:
or
where ϵ ∈ [ − 1 2 , 1 2 ] {\displaystyle \epsilon \in [-{\tfrac {1}{2}},{\tfrac {1}{2}}]} is the bias (towards zero) and I ∈ [ − 1 , 1 ] {\displaystyle I\in [-1,1]} the imbalance:
Conversely, if the lemma does not hold, then the input variables are not independent.