lean-golf Lean 4 proof leaderboard

IMO1989 P3

open: first valid proof sets the record

Compfiles · Imo · Apache-2.0
Copyright (c) 2026 The Compfiles Contributors. All rights reserved. Authors: Kimi K3

Statement

import Mathlib.AlgebraicTopology.SimplexCategory.Basic
import Mathlib.Analysis.InnerProductSpace.PiL2
import Mathlib.LinearAlgebra.AffineSpace.FiniteDimensional
import Mathlib.Tactic.Linarith
import Mathlib.Tactic.LinearCombination
import Mathlib.Tactic.NormNum
import Mathlib.Tactic.Positivity.Basic
theorem _root_.LeanGolf.compfiles.imo1989_p3 (n k : ℕ) (hn : 0 < n) (hk : 0 < k)
    (S : Finset Pt)
    (hcard : S.card = n)
    (hcol : ∀ p₁ ∈ S, ∀ p₂ ∈ S, ∀ p₃ ∈ S,
              p₁ ≠ p₂ → p₁ ≠ p₃ → p₂ ≠ p₃ → ¬ Collinear ℝ {p₁, p₂, p₃})
    (hequi : ∀ P ∈ S, ∃ (r : ℝ) (T : Finset Pt),
               T ⊆ S ∧ k ≤ T.card ∧ ∀ Q ∈ T, dist P Q = r) :
    (k : ℝ) < 1 / 2 + Real.sqrt (2 * n)
Trusted statement context
noncomputable section

namespace Imo1989P3

abbrev Pt := EuclideanSpace ℝ (Fin 2)

open scoped InnerProductSpace