Simplifying a quadratic constraint
ProvedWorkbookSource.problem_34929lean-workbooksource-checked
Let be real numbers satisfying
Then
Source: InternLM Lean-Workbook, record lean_workbook_34929 (Apache-2.0). The complete source proposition and explicit variable declarations are preserved.
Preamble
import Mathlib open Real Nat
Formal statement
theorem WorkbookSource.problem_34929 (x y z : ℝ) : (x + y) ^ 2 + (y + z) ^ 2 + (z + x) ^ 2 + 4 * (x ^ 2 + y * z + x * z + y * x) = 128 → x ^ 2 + y ^ 2 + z ^ 2 + 3 * (x * y + x * z + y * z) = 64 - 2 * x ^ 2 := by sorry
Source