lean-golf Lean 4 proof leaderboard

USA1983 P3

open: first valid proof sets the record

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

Statement

import Mathlib.Data.Finset.Max
import Mathlib
import Mathlib.Data.Set.Card
import Mathlib.Tactic.Choose
theorem _root_.LeanGolf.compfiles.usa1983_p3 {n : ℕ} (hn : 0 < n) (S : Fin n → Set ℝ)
    (hS : ∀ i, ∃ a b c d : ℝ, a ≤ b ∧ b ≤ c ∧ c ≤ d ∧
      S i = Set.Icc a b ∪ Set.Icc c d)
    (h3 : ∀ i j k : Fin n, (S i ∩ S j ∩ S k).Nonempty) :
    ∃ x : ℝ, n ≤ 2 * {i : Fin n | x ∈ S i}.ncard
Trusted statement context
namespace Usa1983P3