lean-golf Lean 4 proof leaderboard

IMO1971 P1

open: first valid proof sets the record

Compfiles · Imo · Apache-2.0
Copyright (c) 2024 The Compfiles Contributors. All rights reserved. Authors: Francesco Cappetti

Statement

import Mathlib.Tactic
import Mathlib.Data.Fin.Tuple.Sort
theorem _root_.LeanGolf.compfiles.imo1971_p1 : P 3 ∧ P 5 ∧ ∀ n > 2, n ≠ 3 ∧ n ≠ 5 → ¬P n
Trusted statement context
noncomputable section

namespace Imo1971P1

def E {n : ℕ} (a : Fin n → ℝ) : ℝ :=
  ∑ i, ∏ j ≠ i, (a i - a j)

def P (n : ℕ) : Prop :=
  ∀ (a : Fin n → ℝ), E a ≥ 0