lean-golf Lean 4 proof leaderboard

USA2001 P1

open: first valid proof sets the record

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

Statement

import Mathlib.Data.Finset.Card
import Mathlib.Order.Bounds.Basic
import Mathlib.Tactic
theorem _root_.LeanGolf.compfiles.usa2001_p1 : IsLeast possible_num_colors min_colors
Trusted statement context
noncomputable section

namespace Usa2001P1

def possible_num_colors : Set ℕ :=
{ n : ℕ | ∃ f : Fin 8 → Finset (Fin n),
    (∀ i, (f i).card = 6) ∧
    (∀ x y : Fin n, ∀ i j : Fin 8,
      i ≠ j → x ∈ f i → y ∈ f i → x ≠ y →
        (¬ (x ∈ f j ∧ y ∈ f j))) }

abbrev min_colors : ℕ := 23