Factoring a quadratic polynomial
ProvedWorkbookSource.problem_31836lean-workbooksource-checked
For given problem, you have and , Thus, . Now, it's easy to regroup it as and to make . Now, .
Source: InternLM Lean-Workbook, record lean_workbook_31836 (Apache-2.0). The complete source proposition and explicit variable declarations are preserved.
Preamble
import Mathlib open Real Nat
Formal statement
theorem WorkbookSource.problem_31836 (a b c d x : ℝ) (h₀ : a * c = 8) (h₁ : b * d = -5) (h₂ : (a * d + b * c) = -18) (h₃ : x = (a + b) * (c + d)) : 8 * x^2 - 18 * x - 5 = (2 * x - 5) * (4 * x + 1) := by sorry
Source