Two factorizations for a cubic function
ProvedWorkbookSource.problem_39005lean-workbooksource-checked
Write then and .
Source: InternLM Lean-Workbook, record lean_workbook_39005 (Apache-2.0). The complete source proposition and explicit variable declarations are preserved.
Preamble
import Mathlib open Real Nat
Formal statement
theorem WorkbookSource.problem_39005 : ∀ x : ℝ, (6 * x ^ 2 - x ^ 3) / 8 - x = (x * (x - 2) * (4 - x)) / 8 ∧ 4 - (6 * x ^ 2 - x ^ 3) / 8 = ((4 - x) ^ 2 * (2 + x)) / 8 := by sorry
Source