lean-golf Lean 4 proof leaderboard

Putnam 1965 B6

open: first valid proof sets the record

PutnamBench · 1965 B6 · Apache-2.0
PutnamBench contributors (Tsoukalas et al.).

Statement

import Mathlib
theorem LeanGolf.putnambench.putnam_1965_b6
    (A B C D : EuclideanSpace ℝ (Fin 2))
    (S : Set (EuclideanSpace ℝ (Fin 2)))
    (hS : S = {A, B, C, D})
    (hdistinct : S.ncard = 4)
    (through : (ℝ × (EuclideanSpace ℝ (Fin 2))) → (EuclideanSpace ℝ (Fin 2)) → Prop)
    (through_def : through = fun (r, P) => fun Q => dist P Q = r)
    (hABCD : ∀ r s : ℝ, ∀ P Q,
      through (r, P) A ∧ through (r, P) B ∧ through (s, Q) C ∧ through (s, Q) D →
      ∃ I, through (r, P) I ∧ through (s, Q) I) :
    Collinear ℝ S ∨ ∃ r : ℝ, ∃ P, ∀ Q ∈ S, through (r, P) Q
Trusted statement context
open EuclideanGeometry Topology Filter Complex SimpleGraph.Walk