/- 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 488

Reference: erdosproblems.com/488

open Classical namespace Erdos488

Let $A$ be a finite set and $$B={ n \geq 1 : a\mid n\textrm{ for some }a\in A}.$$ Is it true that, for every $m>n\geq \max(A)$, $$\frac{\lvert B\cap [1,m]\rvert }{m}< 2\frac{\lvert B\cap [1,n]\rvert}{n}?$$

@[category research open, AMS 5 11] theorem declaration uses 'sorry'erdos_488 : answer(sorry) (A : Finset ), A.Nonempty -- These are needed for the reasons outlined here: https://github.com/google-deepmind/formal-conjectures/pull/256 0 A 1 A letI B := {n 1 | a A, a n} ∀ᵉ (n : ) (m > n), A.max n ((Finset.Icc 1 m).filter (· B)).card / (m : ) < 2 * ((Finset.Icc 1 n).filter (· B)).card / n := True (A : Finset ), A.Nonempty 0 A 1 A (n m : ), m > n A.max n {x Finset.Icc 1 m | x {n | n 1 a A, a n}}.card / m < 2 * {x Finset.Icc 1 n | x {n | n 1 a A, a n}}.card / n All goals completed! 🐙 end Erdos488