IMO1978 P1
open: first valid proof sets the record
Compfiles · Imo · Apache-2.0
Copyright (c) 2024 The Compfiles Contributors. All rights reserved. Authors: InternLM-MATH LEAN Formalizer v0.1, David Renshaw
Statement
import Mathlib.Tactic
theorem _root_.LeanGolf.compfiles.imo1978_p1 (m n : ℕ)
(hmn : (m, n) = solution) :
ValidPair (m, n) ∧
(∀ m' n' : ℕ, ValidPair (m', n') → m + n ≤ m' + n')Trusted statement context
noncomputable section
namespace Imo1978P1
abbrev solution : ℕ × ℕ := (3, 103)
abbrev ValidPair : ℕ × ℕ → Prop
| (m, n) => 1 ≤ m ∧ m < n ∧ (1978^m) % 1000 = (1978^n) % 1000