A trigonometric expression as a sum of squares
ProvedWorkbookRestored.plus_271lean-workbookrestored-importssource-checked
For all real ,
Formalization Note This restores source entry lean_workbook_plus_271 from the Apache-2.0 Lean-Workbook dataset. The mathematical proposition is unchanged; targeted imports and namespace openings supply the constants missing from the original Prove2Me node 797bf16b-2aae-4bd0-9282-1643e6163d6c. This is a separate corrected node because formal statements and preambles are immutable.
Preamble
import Mathlib.Analysis.SpecialFunctions.Trigonometric.Basic import Mathlib.Tactic open Real
Formal statement
theorem WorkbookRestored.plus_271 (x y : ℝ) : (1 - 8 * Real.sin x * Real.sin y * Real.cos (x + y)) = (2 * Real.cos (x + y) - Real.cos (x - y)) ^ 2 + Real.sin (x - y) ^ 2 := by sorry
Source