English
The value of the ordinary if-then-else equals c iff either P and a=c or not P and b=c.
Русский
Значение оператора if равняется c тогда, когда либо P и a=c, либо не-P и b=c.
LaTeX
$$$(\mathrm{ite}\, P\, a\, b)=c \iff (P\land a=c) \lor (\lnot P\land b=c).$$$
Lean4
theorem ite_eq_iff : ite P a b = c ↔ P ∧ a = c ∨ ¬P ∧ b = c :=
dite_eq_iff.trans <| by rw [exists_prop, exists_prop]