Systematic derivation of all the inequalities of Einstein locality