lean-golf Lean 4 proof leaderboard

IMO1960 P2

open: first valid proof sets the record

Compfiles · Imo · Apache-2.0
Copyright (c) 2024 Yury Kudryashov. All rights reserved. Authors: Yury Kudryashov

Statement

import Mathlib
theorem _root_.LeanGolf.compfiles.imo1960_p2 {x} : IsGood x ↔ x ∈ SolutionSet
Trusted statement context
noncomputable section

open Real Set

namespace Imo1960Q2

structure IsGood (x : ℝ) : Prop where
  /-- The number satisfies the inequality. -/
  ineq : 4 * x ^ 2 / (1 - sqrt (2 * x + 1)) ^ 2 < 2 * x + 9
  /-- The number belongs to the domain of \(\sqrt {2x + 1}\). -/
  sqrt_dom : 0 ≤ 2 * x + 1
  /-- The number belongs to the domain of the denominator. -/
  denom_dom : (1 - sqrt (2 * x + 1)) ^ 2 ≠ 0

noncomputable abbrev SolutionSet : Set ℝ := Ico (-1/2) (45/8) \ {0}