lean-golf Lean 4 proof leaderboard

IMO1994 P1

open: first valid proof sets the record

Compfiles · Imo · Apache-2.0
Copyright (c) 2021 Antoine Labelle. All rights reserved. Authors: Antoine Labelle

Statement

import Mathlib.Algebra.Group.Fin.Basic
import Mathlib.Algebra.Order.BigOperators.Group.Finset
import Mathlib.Data.Finset.Sort
import Mathlib.Order.Interval.Finset.Fin
import Mathlib.Tactic.Linarith
import Mathlib.Tactic.ByContra
theorem _root_.LeanGolf.compfiles.imo1994_p1 (n : ℕ) (m : ℕ) (A : Finset ℕ) (hm : A.card = m + 1)
    (hrange : ∀ a ∈ A, 0 < a ∧ a ≤ n)
    (hadd : ∀ a ∈ A, ∀ b ∈ A, a + b ≤ n → a + b ∈ A) :
    (m + 1) * (n + 1) ≤ 2 * ∑ x ∈ A, x
Trusted statement context
open Finset

namespace Imo1994P1