/-
Copyright 2026 The Formal Conjectures Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-/
import FormalConjecturesUtilErdős Problem 532
[Er73] Erdős, P.,
[Er75b] Erdős, Paul,
[Er77c] Erdős, Paul,
[Hi74] Hindman, Neil,
namespace Erdos532
If $\mathbb{N}$ is 2-coloured then is there some infinite set $A\subseteq \mathbb{N}$ such that all finite subset sums$$ \sum_{n\in S}n$$(as $S$ ranges over all non-empty finite subsets of $A$) are monochromatic?
Asked by Graham and Rothschild. Proved by Hindman [Hi74] (for any number of colours).
@[category research solved, AMS 5, formal_proof using lean4 at "https://github.com/plby/lean-proofs/blob/main/src/v4.29.1/ErdosProblems/Erdos532.lean"]
theorem erdos_532 :
answer(True) ↔ ∀ (c : ℕ → Fin 2),
∃ A : Set ℕ, A.Infinite ∧
∃ color : Fin 2,
∀ S : Finset ℕ, S.Nonempty → ↑S ⊆ A →
c (∑ n ∈ S, n) = color := ⊢ True ↔ ∀ (c : ℕ → Fin 2), ∃ A, A.Infinite ∧ ∃ color, ∀ (S : Finset ℕ), S.Nonempty → ↑S ⊆ A → c (∑ n ∈ S, n) = color
All goals completed! 🐙
end Erdos532