lean-golf Lean 4 proof leaderboard

IMO1959 P2A

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.imo1959_p2a : IsGood x (sqrt 2) ↔ x ∈ solution_set_sqrt2
Trusted statement context
noncomputable section

open Set Real

namespace Imo1959P2

def IsGood (x A : ℝ) : Prop :=
  sqrt (x + sqrt (2 * x - 1)) + sqrt (x - sqrt (2 * x - 1)) = A ∧ 0 ≤ 2 * x - 1 ∧
    0 ≤ x + sqrt (2 * x - 1) ∧ 0 ≤ x - sqrt (2 * x - 1)

variable {x A : ℝ}

noncomputable abbrev solution_set_sqrt2 : Set ℝ := Icc (1 / 2) 1