Consider the binary variables $x, y, z \in \{0,1\}$.
I'd like to formulate the two if-then constraints:
$$ x + y \geq 2 \implies z = 0, \tag{1} $$ $$ x + y \leq 1 \implies z = 1. \tag{2} $$
Constraint (1) can be formulated as
$$ x + y \leq 2 - z. $$
How to proceed for (2) ?