USA1996 P2
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.BigOperators.Group.Finset
import Mathlib.Data.Finset.Sort
theorem _root_.LeanGolf.compfiles.usa1996_p2 (S : Finset ℕ) (hS : ∀ s ∈ S, 0 < s) :
∃ T : Fin S.card → Set ℕ,
(∀ i, T i ⊆ SubsetSums S) ∧
(⋃ i, T i = SubsetSums S) ∧
∀ i, ∀ a ∈ T i, ∀ b ∈ T i, a ≤ 2 * bTrusted statement context
noncomputable section
namespace Usa1996P2
def SubsetSums (S : Finset ℕ) : Set ℕ :=
{x | ∃ A : Finset ℕ, A ⊆ S ∧ A.Nonempty ∧ x = A.sum id}
variable (S : Finset ℕ)