The minimum squared distance under a shifted product constraint
ProvedWorkbookCorrected.plus_21177corrected-formalizationlean-workbooksource-checked
For real numbers satisfying , the minimum of 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_21177 (Apache-2.0).
Preamble
import Mathlib
Formal statement
theorem WorkbookCorrected.plus_21177 : (∀ x y : ℝ, (x+1)*(y+1)=9 → 8 ≤ x^2+y^2) ∧
(∃ x y : ℝ, (x+1)*(y+1)=9 ∧ x^2+y^2=8) := by sorrySource