lean_workbook_plus_39381
ProvedDefine to be the roots of the first equation, similarly for \n\n\n\n\nWe take advantage of the symmetry by adding each equation to get\n\nSince we're only looking for integers, we factor as:\n\n.\n\nNow there're only so many ways this is true. More, because are all positive, I'll leave you to find all the possibilities (and permutations).
Preamble
import Mathlib.Analysis.Complex.Basic
Formal statement
theorem lean_workbook_plus_39381 (a b c r₁ r₂ r₃ r₄ r₅ r₆ : ℤ) (h₀ : 0 < a ∧ 0 < b ∧ 0 < c) (h₁ : r₁ + r₂ = a) (h₂ : r₁ * r₂ = b) (h₃ : r₃ + r₄ = b) (h₄ : r₃ * r₄ = c) (h₅ : r₅ + r₆ = c) (h₆ : r₅ * r₆ = a) : (r₁ - 1) * (r₂ - 1) + (r₃ - 1) * (r₄ - 1) + (r₅ - 1) * (r₆ - 1) = 3 := by sorry
Source