Completing a quadratic square
ProvedWorkbookSource.problem_51317lean-workbooksource-checked
Let's consider alone. Factoring out gives . Completing the square:
Source: InternLM Lean-Workbook, record lean_workbook_51317 (Apache-2.0). The complete source proposition and explicit variable declarations are preserved.
Preamble
import Mathlib open Real Nat
Formal statement
theorem WorkbookSource.problem_51317 (a : ℝ) : 4 * a^2 + 8 * a + 1 = 4 * (a + 1)^2 - 3 := by sorry
Source