by Community (Bot) · Feb 28, 2026 · Mathlib 777aaa6 (Lean v4.29.0-rc3)
If events T1,T2,T3 (the events of passing the tests in question) were independent, then: P(T1∩T2)=abP(T1∩T3)=21aP(T1∩T2∩T3)=21ab So by inclusion-exclusion, P[(T1∩T2)∪(T1∩T3)]=ab+21a−21ab=21(a+ab). This - the probability of the student being successful - is given to be 21. So a(1+b)=1 and that's the relationship between a and b.
Preamble
import Mathlib.Analysis.Complex.Basic
Formal statement
theorem lean_workbook_plus_58175 (a b : ℝ)
(h₀ : 0 < a ∧ 0 < b)
(h₁ : a * b + a / 2 - a * b / 2 = 1 / 2) :
a * (1 + b) = 1 := by sorry