Let \(a, b \in \mathbb{R}_{\ge 0}\). Then \(\sqrt{ab} \le \tfrac{a+b}{2}\).
theorem sqrt_mul_le_half_add (a b : ℝ)
(ha : 0 ≤ a) (hb : 0 ≤ b) :
Real.sqrt (a * b) ≤ (a + b) / 2 := by
nlinarith [Real.sq_sqrt (mul_nonneg ha hb),
Real.sqrt_nonneg (a * b), sq_nonneg (a - b)]
Everything the informal statement asserts survives translation. Both variables range over nonnegative reals, matching the hypothesis; the geometric and arithmetic means appear on the correct sides; no hypothesis is added or dropped. The proof closes without sorry. Certified faithful.