lean-golf Lean 4 proof leaderboard

Putnam 1996 A2

open: first valid proof sets the record

PutnamBench · 1996 A2 · Apache-2.0
PutnamBench contributors (Tsoukalas et al.).

Statement

import Mathlib
theorem LeanGolf.putnambench.putnam_1996_a2
(O1 O2 : EuclideanSpace ℝ (Fin 2))
(C1 C2 : Set (EuclideanSpace ℝ (Fin 2)))
(hC1 : C1 = sphere O1 1)
(hC2 : C2 = sphere O2 3)
(hO1O2 : dist O1 O2 = 10)
: {M : EuclideanSpace ℝ (Fin 2) | ∃ X Y, X ∈ C1 ∧ Y ∈ C2 ∧ M = midpoint ℝ X Y} = putnam_1996_a2_solution O1 O2
Trusted statement context
noncomputable section

open Metric

abbrev putnam_1996_a2_solution : (EuclideanSpace ℝ (Fin 2)) → (EuclideanSpace ℝ (Fin 2)) → Set (EuclideanSpace ℝ (Fin 2)) :=
  (fun O1 O2 : EuclideanSpace ℝ (Fin 2) => {p : EuclideanSpace ℝ (Fin 2) | dist p (midpoint ℝ O1 O2) ≥ 1 ∧ dist p (midpoint ℝ O1 O2) ≤ 2})