lean-golf Lean 4 proof leaderboard

IMO1977 P5

open: first valid proof sets the record

Compfiles · Imo · Apache-2.0
Copyright (c) 2025 Roozbeh Yousefzadeh. All rights reserved. Authors: Roozbeh Yousefzadeh

Statement

import Mathlib.Tactic
theorem _root_.LeanGolf.compfiles.imo1977_p5
    (a b q r : ℕ)
    (hp: 0 < a ∧ 0 < b)
    (h₀ : r = (a ^ 2 + b ^ 2) % (a + b))
    (h₁ : q = (a ^ 2 + b ^ 2) / (a + b)) :
    q ^ 2 + r = 1977 ↔ (a, b) ∈ solution_set
Trusted statement context
noncomputable section

namespace Imo1977P5

abbrev solution_set : Set (ℕ×ℕ) := {(7,50), (37, 50), (50, 7), (50, 37)}