lean-golf Lean 4 proof leaderboard

IMO1991 P6

open: first valid proof sets the record

Compfiles · Imo · Apache-2.0
Copyright (c) 2024 David Renshaw. All rights reserved. Authors: David Renshaw, Constantin Seebach

Statement

import Mathlib.Tactic
theorem _root_.LeanGolf.compfiles.imo1991_p6 (a : ℝ) (ha : 1 < a) :
    Bounded (solution a ha) ∧
    ∀ i j, i ≠ j →
      1 ≤ |solution a ha i - solution a ha j| * |(i:ℝ) - j|^a
Trusted statement context
noncomputable section

namespace Imo1991P6

abbrev Bounded (x : ℕ → ℝ) : Prop := ∃ C, ∀ i, |x i| ≤ C

noncomputable abbrev solution (a : ℝ) (ha : 1 < a) : ℕ → ℝ :=
  fun n => (2*√2 + 2) * Int.fract (√2 * n)