lean-golf Lean 4 proof leaderboard

Putnam 1976 A4

open: first valid proof sets the record

PutnamBench · 1976 A4 · Apache-2.0
PutnamBench contributors (Tsoukalas et al.).

Statement

import Mathlib
theorem LeanGolf.putnambench.putnam_1976_a4
(a b c d : ℤ)
(r : ℝ)
(P Q: Polynomial ℚ)
(hP : P = X^3 + (C (a : ℚ))*X^2 + (C (b : ℚ))*X - (C 1) ∧ aeval r P = 0 ∧ Irreducible P)
(hQ : Q =  X^3 + (C (c : ℚ))*X^2 + (C (d : ℚ))*X + (C 1) ∧ aeval (r + 1) Q = 0)
: ∃ s : ℝ, aeval s P = 0 ∧ (s = putnam_1976_a4_solution.1 r ∨ s = putnam_1976_a4_solution.2 r)
Trusted statement context
noncomputable section

open Polynomial

noncomputable abbrev putnam_1976_a4_solution : (ℝ → ℝ) × (ℝ → ℝ) :=
  (fun r : ℝ => -1/(r + 1), fun r : ℝ => -(r + 1)/r)