lean_workbook_plus_25242
ProvedLet's say we have units of , and unit of . This has the advantage of being exactly the answer we want, since we'll have a ratio of . In this case, the total milk will be , and the total water will be . Setting those equal, because the new mixture is half-and-half, gives:
Preamble
import Mathlib.Analysis.Complex.Basic
Formal statement
theorem lean_workbook_plus_25242 (x : ℝ) (h₀ : 0 < x) (h₁ : 5 / 8 * x + 2 / 5 = 3 / 8 * x + 3 / 5) : x = 4 / 5 := by sorry
Source