The quadratic formula
ProvedFamousTheorems.quadratic_formula_7bThe quadratic formula. Let be a field of characteristic other than , and let with . Suppose that the discriminant is a square in . Then for every ,
The formula goes back to Babylonian and Indian mathematics, and in general form to al-Khwarizmi. Its failure to generalize to degree and higher, by the Abel–Ruffini theorem, was one of the origins of group theory. The proof completes the square: .
Formalization note. Mathlib's quadratic_eq_zero_iff. discrim a b c is , and the condition NeZero (2 : K) says that the characteristic is not .
Preamble
import Mathlib
Formal statement
namespace FamousTheorems
theorem quadratic_formula_7b {K : Type*} [Field K] [NeZero (2 : K)] {a b c : K} (ha : a ≠ 0) {s : K} (h : discrim a b c = s * s)
(x : K) : a * (x * x) + b * x + c = 0 ↔ x = (-b + s) / (2 * a) ∨ x = (-b - s) / (2 * a) := by sorry
end FamousTheoremsSource
Listed in Mathlib's curated theorem manifests (docs/1000.yaml); formalized in Mathlib as `quadratic_eq_zero_iff`. Proof here reduces to that Mathlib result.