lean-golf Lean 4 proof leaderboard

IMO1970 P6

open: first valid proof sets the record

Compfiles · Imo · Apache-2.0
Copyright (c) 2024 David Renshaw. All rights reserved. Authors: David Renshaw

Statement

import Mathlib
theorem _root_.LeanGolf.compfiles.imo1970_p6
    (P : Fin 100 → Pt)
    (hP : ∀ a b c : Fin 100,
             List.Nodup [a, b, c] → ¬ Collinear ℝ {P a, P b, P c}) :
    let cardAll := Nat.card { s : Finset (Fin 100) | s.card = 3 }
    let cardAcute := Nat.card { s : Finset (Fin 100) | s.card = 3 ∧
      ∃ a b c : Fin 100, s = {a, b, c} ∧
      ∃ t : Affine.Triangle ℝ Pt, ![P a, P b, P c] = t.points ∧ t.AcuteAngled }
    (cardAcute : ℚ) / cardAll ≤ 7 / 10
Trusted statement context
noncomputable section

namespace Imo1970P6

open scoped EuclideanGeometry Real RealInnerProductSpace

open EuclideanGeometry Finset

abbrev Pt := EuclideanSpace ℝ (Fin 2)