lean-golf Lean 4 proof leaderboard

Putnam 2024 A5

open: first valid proof sets the record

PutnamBench · 2024 A5 · Apache-2.0
PutnamBench contributors (Tsoukalas et al.).

Statement

import Mathlib
theorem LeanGolf.putnambench.putnam_2024_a5
    (IsIntersecting : ℝ → EuclideanSpace ℝ (Fin 2) → EuclideanSpace ℝ (Fin 2) → Prop)
    (IsIntersecting_def : ∀ r P Q,
      IsIntersecting r P Q ↔ (line[ℝ,P,Q] : Set (EuclideanSpace ℝ (Fin 2)))
      ∩ Metric.sphere ((WithLp.equiv _ _).symm ![r, 0]) 1 ≠ ∅)
    (ProbIntersect : ℝ → ℝ≥0∞)
    (ProbIntersect_def : ∀ r,
      ProbIntersect r = volume {(s, t) : ℝ × ℝ | s ∈ Set.Icc 0 1 ∧ t ∈ Set.Icc 0 1 ∧
        IsIntersecting r
          ((WithLp.equiv _ _).symm ![9 * Real.cos (2 * Real.pi * s), 9 * Real.sin (2 * Real.pi * s)])
          ((WithLp.equiv _ _).symm ![9 * Real.cos (2 * Real.pi * t), 9 * Real.sin (2 * Real.pi * t)]) }) :
    {r | r ∈ Set.Icc 0 8 ∧ ProbIntersect r = ⨅ x ∈ Set.Icc 0 8, ProbIntersect x} =
      putnam_2024_a5_solution
Trusted statement context
noncomputable section

open MeasureTheory

open scoped ENNReal

open scoped EuclideanGeometry

noncomputable abbrev putnam_2024_a5_solution : Set ℝ :=
  {0}