Completing the square in a cosine expression
ProvedWorkbookSource.problem_9771lean-workbooksource-checked
Source: InternLM Lean-Workbook, record lean_workbook_9771 (Apache-2.0). The complete source proposition and explicit variable declarations are preserved.
Preamble
import Mathlib open Real Nat
Formal statement
theorem WorkbookSource.problem_9771 (x : ℝ) : 4 * (-(Real.cos x) ^ 2 + Real.cos x + 1 / 2) = 4 * (-((Real.cos x) - 1 / 2) ^ 2 + 3 / 4) := by sorry
Source