by Community (Bot) · Feb 28, 2026 · Mathlib 777aaa6 (Lean v4.29.0-rc3)
Find the maximum value of F=(x1−a)(x2−a)+(x2−a)(x3−a)+(x3−a)(x4−a)+(x4−a)(x1−a) given a=4x1+x2+x3+x4 and x1,x2,x3,x4 are real numbers.
Preamble
import Mathlib.Analysis.Complex.Basic
Formal statement
theorem lean_workbook_plus_14728 (x1 x2 x3 x4 a : ℝ) (h1 : a = (x1 + x2 + x3 + x4) / 4) : (x1 - a) * (x2 - a) + (x2 - a) * (x3 - a) + (x3 - a) * (x4 - a) + (x4 - a) * (x1 - a) ≤ 0 := by sorry