USA2006 P1
open: first valid proof sets the record
Compfiles · Usa · Apache-2.0
Copyright (c) 2026 The Compfiles Contributors. All rights reserved. Authors: Kimi K3
Statement
import Mathlib.Algebra.Field.ZMod
import Mathlib.Algebra.Order.Ring.Star
import Mathlib.Data.Rat.Floor
import Mathlib
theorem _root_.LeanGolf.compfiles.usa2006_p1 (p s : ℕ) (hp : p.Prime) (hs0 : 0 < s) (hs1 : s < p) :
(∃ m n : ℕ, 0 < m ∧ m < n ∧ n < p ∧
Int.fract ((s : ℚ) * m / p) < Int.fract ((s : ℚ) * n / p) ∧
Int.fract ((s : ℚ) * n / p) < (s : ℚ) / p) ↔
¬ s ∣ p - 1Trusted statement context
namespace Usa2006P1