lean-golf Lean 4 proof leaderboard

mathd_numbertheory_552

open: first valid proof sets the record

miniF2F · mathd · MIT
Copyright (c) Meta Platforms, Inc. and affiliates.

Statement

import Mathlib
theorem LeanGolf.minif2f.mathd_numbertheory_552
  (f g h : ℕ+ → ℕ)
  (h₀ : ∀ x, f x = 12 * x + 7)
  (h₁ : ∀ x, g x = 5 * x + 2)
  (h₂ : ∀ x, h x = Nat.gcd (f x) (g x))
  (h₃ : Fintype (Set.range h)) :
  ∑ k ∈ (Set.range h).toFinset, k = 12
Trusted statement context
open BigOperators Real Nat Topology Rat