IMO2007 P1B
open: first valid proof sets the record
Compfiles · Imo · Apache-2.0
Copyright (c) 2023 The Compfiles Contributors. All rights reserved. Authors: Benpigchu
Statement
import Mathlib.Tactic
theorem _root_.LeanGolf.compfiles.imo2007_p1b {n : ℕ} (hn : 0 < n) {a : Fin n → ℝ} :
∃ x : Fin n → ℝ, Monotone x ∧
(⨆ i, d a i) / 2 = ⨆ i, |x i - a i|Trusted statement context
noncomputable section
namespace Imo2007P1
noncomputable abbrev d {n : ℕ} (a : Fin n → ℝ) (i : Fin n) :=
(⨆ j : {j // j ≤ i}, a j) - (⨅ j : {j // i ≤ j}, a j)