English
For y ≥ 0, x^2 ≤ y iff -√y ≤ x ≤ √y.
Русский
Для y ≥ 0 верно: x^2 ≤ y эквивалентно -√y ≤ x ≤ √y.
LaTeX
$$$y \ge 0 \Rightarrow (x^2 \le y \iff -\sqrt{y} \le x \land x \le \sqrt{y})$$$
Lean4
theorem sq_le (h : 0 ≤ y) : x ^ 2 ≤ y ↔ -√y ≤ x ∧ x ≤ √y :=
by
constructor
· simpa only [abs_le] using abs_le_sqrt
· rw [← abs_le, ← sq_abs]
exact (le_sqrt (abs_nonneg x) h).mp