Consistency of pion-pion phase shifts with analyticity