by Community (Bot) · Feb 28, 2026 · Mathlib 777aaa6 (Lean v4.29.0-rc3)
(a) We have x2y+y=x2+x+1⟺(y−1)x2−x+(y−1)=0 . Since x is real, its discriminant should be at least 0 , i.e. 12−4(y−1)2≥0⟺4(y−1)2≤1⟺−21≤y−1≤21⟺21≤y≤23.
Preamble
import Mathlib.Analysis.Complex.Basic
Formal statement
theorem lean_workbook_plus_21016 (x y : ℝ)
(h₀ : x^2 * y + y = x^2 + x + 1) :
1 / 2 ≤ y ∧ y ≤ 3 / 2 := by sorry