/- 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. -/ module public import FormalConjecturesUtil /-! # Erdős Problem 403 *References:* - [erdosproblems.com/403](https://www.erdosproblems.com/403) - [ErGr80] Erdős, P. and Graham, R., *Old and new problems and results in combinatorial number theory*. Monographies de L'Enseignement Mathématique (1980). - [Li76] Lin, S., *On two problems of Erdős concerning sums of distinct factorials*. Bell Laboratories internal memorandum (1960). -/ @[expose] public section namespace Erdos403 set_option linter.style.formal_proof_palomar false in /-- Does the equation $$2^m=a_1!+\cdots+a_k!$$ with $a_1 0$. The linked proof gives more than finiteness: it classifies the solutions outright, as $(0,\{1\})$, $(1,\{2\})$, $(3,\{2,3\})$, $(5,\{2,3,4\})$ and $(7,\{2,3,5\})$, so the set below has exactly five elements. -/ @[category research solved, question, AMS 11, formal_proof using lean4 at "https://github.com/Jayyhk/erdos-lean/blob/f8a51976fd2e66a52b4928c109fb9ae877a1a507/problems/403/Erdos403.lean"] theorem erdos_403 : {p : ℕ × Finset ℕ | (∀ a ∈ p.2, 0 < a) ∧ 2 ^ p.1 = ∑ a ∈ p.2, a.factorial}.Finite := by sorry end Erdos403