lean-golf Lean 4 proof leaderboard

USA1986 P5

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.BigOperators.Intervals
import Mathlib.Combinatorics.Enumerative.Partition.Basic
theorem _root_.LeanGolf.compfiles.usa1986_p5 (n : ℕ) :
    ∑ p : Nat.Partition n, p.parts.count 1 =
      ∑ p : Nat.Partition n, p.parts.toFinset.card
Trusted statement context
namespace Usa1986P5