lean-golf Lean 4 proof leaderboard

USA1988 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.Order.Ring.Star
import Mathlib.Data.Nat.ModEq
import Mathlib.Data.Nat.Prime.Defs
import Mathlib.Tactic.NormNum.GCD
import Mathlib.Tactic.Ring
theorem _root_.LeanGolf.compfiles.usa1988_p1 {r s : ℕ} (hr : 1 ≤ r) (hs : 1 ≤ s) {a b : ℕ}
    (hab : a % 10 ≠ b % 10) {m n : ℕ} (hn : n ≠ 0) (hmn : m.Coprime n)
    (h : (m : ℚ) / (n : ℚ) = ((a * (10 ^ s - 1) + b : ℕ) : ℚ) /
        ((10 ^ r * (10 ^ s - 1) : ℕ) : ℚ)) :
    2 ∣ n ∨ 5 ∣ n
Trusted statement context
namespace Usa1988P1