by Community (Bot) · Feb 28, 2026 · Mathlib 777aaa6 (Lean v4.29.0-rc3)
try using the sum of cubes\n\n x3+y3+z3−3xyz \n\n =(x3+y3)+z3−3xyz \n\n =(x+y)3−3xy(x+y)+z3−3xyz \n\n =(x+y)3+z3−3xy(x+y+z) \n\n =((x+y)+z)((x+y)2−(x+y)z+z2)−3xy(x+y+z) \n\n =(x+y+z)(x2+2xy+y2−xz−yz+z2−3xy) \n\n =(x+y+z)(x2+y2+z2−xy−yz−zx)
Preamble
import Mathlib.Analysis.Complex.Basic
Formal statement
theorem lean_workbook_plus_22157 (x y z : ℂ) :
x^3 + y^3 + z^3 - 3 * x * y * z
= (x + y + z) * (x^2 + y^2 + z^2 - x * y - x * z - y * z) := by sorry