The maximum of a quadratic expression on an ellipse
ProvedWorkbookCorrected.plus_13309corrected-formalizationlean-workbooksource-checked
For real numbers satisfying , the maximum of is . It is attained at .
Formalization Note: The original source asks for an extremum, while its formal statement supplied only a bound. This complete formulation includes both the universal bound and existence of an attaining point.
Source: InternLM Lean-Workbook, record lean_workbook_plus_13309 (Apache-2.0).
Preamble
import Mathlib
Formal statement
theorem WorkbookCorrected.plus_13309 : (∀ x y : ℝ, 4*x^2+9*y^2=36 → x^2+(2/3)*x*y+(3/2)*y^2 ≤ 10) ∧
(∃ x y : ℝ, 4*x^2+9*y^2=36 ∧ x^2+(2/3)*x*y+(3/2)*y^2=10) := by sorrySource