USA1983 P5
open: first valid proof sets the record
Compfiles · Usa · Apache-2.0
Copyright (c) 2024 The Compfiles Contributors. All rights reserved.
Statement
import Mathlib.Data.Set.Card
import Mathlib.Data.Nat.Factorization.Basic
import Mathlib
import Mathlib.Tactic.Linarith
import Mathlib.Tactic.Order
theorem _root_.LeanGolf.compfiles.usa1983_p5 (x : ℝ) (n : ℕ) (hn : 0 < n) :
let fracs := { q : ℚ | q.den ≤ n ∧ ↑q ∈ Set.Ioo x (x + 1 / n)}
fracs.Finite ∧ fracs.ncard ≤ (n + 1) / 2Trusted statement context
noncomputable section
namespace Usa1983P5
def fracs (x : ℝ) (n : ℕ) : Set ℚ :=
{ q : ℚ | q.den ≤ n ∧ ↑q ∈ Set.Ioo x (x + 1 / n)}