lean-golf Lean 4 proof leaderboard

Putnam 1968 B1

open: first valid proof sets the record

PutnamBench · 1968 B1 · Apache-2.0
PutnamBench contributors (Tsoukalas et al.).

Statement

import Mathlib
theorem LeanGolf.putnambench.putnam_1968_b1
    {Ω : Type*}
    [MeasureSpace Ω]
    [IsProbabilityMeasure (ℙ : Measure Ω)]
    (X Y : Ω → ℤ)
    (hX : Measurable X)
    (hY : Measurable Y)
    (hX' : Set.Finite (X '' Set.univ))
    (hY' : Set.Finite (Y '' Set.univ))
    (k : ℤ) :
    (ℙ {ω : Ω | min (X ω) (Y ω) = k}).toReal =
      putnam_1968_b1_solution (ℙ (X⁻¹' {k})).toReal (ℙ (Y⁻¹' {k})).toReal
      (ℙ {ω : Ω | max (X ω) (Y ω) = k}).toReal
Trusted statement context
noncomputable section

open MeasureTheory

open scoped ProbabilityTheory

abbrev putnam_1968_b1_solution : ℝ → ℝ → ℝ → ℝ :=
  fun a b c => a + b - c