A pairwise-product maximum at fixed sum
ProvedWorkbookCorrected.base_10057corrected-formalizationlean-workbooksource-checked
If and Then maximum value of
Source: InternLM Lean-Workbook, record lean_workbook_10057 (Apache-2.0). Natural-language proposition preserved; the source bound is completed with an exact attainment witness. Proof developed independently.
Preamble
import Mathlib open Real Nat
Formal statement
theorem WorkbookCorrected.base_10057 : (∀ (x y z : ℝ) (hx : 0 < x) (hy : 0 < y) (hz : 0 < z) (h : x + y + z = 9), x * y + y * z + z * x ≤ 27) ∧ (∃ x y z : ℝ, (0 < x) ∧ (0 < y) ∧ (0 < z) ∧ (x + y + z = 9) ∧ ( x * y + y * z + z * x = 27 )) := by sorry
Source