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

Reference: erdosproblems.com/330

namespace Erdos330 open Setopen scoped BigOperators

Rep A m h means m is a sum of at most h elements of Ax.

def Rep (A : Set ) (m h : ) : Prop := k : , k h f : Fin k , ( i, f i A) ( i : Fin k, f i) = m

Integers not representable as a finite sum of elements with at most h terms of A while avoiding n.

def UnrepWithout (A : Set ) (n h: ) : Set := {m | ¬ Rep (A \ {n}) m h}

An asymptotic additive basis of order h is minimal when one cannot obtain an asymptotic additive basis by removing any element from it.

def MinAsymptoticAddBasisOfOrder (A : Set ) (h : ) : Prop := IsAsymptoticAddBasisOfOrder A h n A, ¬ IsAsymptoticAddBasisOfOrder (A \ {n}) h

Does there exist a minimal basis $A \subset \mathbb{N}$ with positive density such that, for any $n \in A$, the (upper) density of integers which cannot be represented without using $n$ is positive?

@[category research open, AMS 5 11] theorem declaration uses 'sorry'erdos_330_statement : answer(sorry) (A : Set ), h, MinAsymptoticAddBasisOfOrder A h A.HasPosDensity n A, Set.HasPosDensity (UnrepWithout A n h) := True A h, MinAsymptoticAddBasisOfOrder A h A.HasPosDensity n A, (UnrepWithout A n h).HasPosDensity All goals completed! 🐙 end Erdos330