lean-golf Lean 4 proof leaderboard

USA2007 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.Basic
import Mathlib.Data.Finset.Card
import Mathlib.Tactic.Ring
import Mathlib.Tactic.Ring.Basic
theorem _root_.LeanGolf.compfiles.usa2007_p3 (n : ℕ) (hn : 0 < n) {α : Type*} [DecidableEq α] (S : Finset α)
    (hS : S.card = n ^ 2 + n - 1) (col : Finset α → Bool) :
    ∃ F : Finset (Finset α), n ≤ F.card ∧ (∀ A ∈ F, A ⊆ S ∧ A.card = n) ∧
      (F : Set (Finset α)).PairwiseDisjoint id ∧ ∃ b : Bool, ∀ A ∈ F, col A = b
Trusted statement context
namespace Usa2007P3

variable {α : Type*} [DecidableEq α]