/- Copyright 2025 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 FormalConjecturesUtil

Erdős Problem 312

Reference: erdosproblems.com/312

namespace Erdos312

Does there exist a constant c > 0 such that, for any K > 1, whenever A is a sufficiently large finite multiset of integers with $\sum_{n \in A} 1/n > K$ there exists some $S \subseteq A$ such that $1 - \exp(-(c*K)) < \sum_{n \in S} 1/n \le 1$?

@[category research open, AMS 5 11] theorem declaration uses 'sorry'erdos_312 : answer(sorry) (c : ), 0 < c (K : ), 1 < K (N₀ : ), (n : ) (a : Fin n ), (n N₀ ( i : Fin n, (a i : )⁻¹) > K) (S : Finset (Fin n)), 1 - Real.exp (-(c * K)) < ( i S, (a i : )⁻¹) i S, (a i : )⁻¹ 1 := True c, 0 < c (K : ), 1 < K N₀, (n : ) (a : Fin n ), n N₀ i, (↑(a i))⁻¹ > K S, 1 - Real.exp (-(c * K)) < i S, (↑(a i))⁻¹ i S, (↑(a i))⁻¹ 1 All goals completed! 🐙 end Erdos312