/-- Completing the square for a circle. Hint: both sides are polynomials; one tactic does it. -/
theorem circle_complete_square (D E F x y : ℝ) :
x ^ 2 + y ^ 2 + D * x + E * y + F =
(x + D / 2) ^ 2 + (y + E / 2) ^ 2 - ((D ^ 2 + E ^ 2) / 4 - F) := by
sorryShow the compiled solution
/-- **Completing the square for a circle.**
`x² + y² + Dx + Ey + F = (x + D/2)² + (y + E/2)² − r²` with `r² = (D² + E²)/4 − F`. So the
equation `x² + y² + Dx + Ey + F = 0` describes a circle with centre `(−D/2, −E/2)` if `r² > 0`,
the single point `(−D/2, −E/2)` if `r² = 0`, and no points at all if `r² < 0`. -/
theorem circle_complete_square (D E F x y : ℝ) :
x ^ 2 + y ^ 2 + D * x + E * y + F =
(x + D / 2) ^ 2 + (y + E / 2) ^ 2 - ((D ^ 2 + E ^ 2) / 4 - F) := by
ringAxioms used: propext, Classical.choice, Quot.soundformal/Lumenary/ConicSections.leanTry it in the Lean web editor