A weighted square inequality
ProvedWorkbookSource.problem_25201lean-workbooksource-checked
prove that : for numbers and
Source: InternLM Lean-Workbook, record lean_workbook_25201 (Apache-2.0). The complete source proposition and its explicit variable declarations are preserved.
Preamble
import Mathlib open Real
Formal statement
theorem WorkbookSource.problem_25201 (x y : ℝ) (p q : ℝ) (hp : 0 < p) (hq : 0 < q) (hpq : p + q < 1) : (p * x + q * y) ^ 2 ≤ p * x ^ 2 + q * y ^ 2 := by sorry
Source