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

Reference: erdosproblems.com/348

namespace Erdos348 open Erdos348

For what values of $0 \leq m < n$ is there a complete sequence $A = {a_1 \leq a_2 \leq \cdots}$ of integers such that

    $A$ remains complete after removing any $m$ elements, but

    $A$ is not complete after removing any $n$ elements.

@[category research open, AMS 11] theorem declaration uses 'sorry'erdos_348 : { (m, n) | (m) (n) (_ : m < n) (a : ) (_ : Monotone a) (_ : s, s.card = m IsAddComplete (Set.range (Function.updateFinset a s 0))) (_ : t, t.card = n ¬IsAddComplete (Set.range (Function.updateFinset a t 0))) } = answer(sorry) := {x | m n, (_ : m < n), a, (_ : Monotone a) (_ : (s : Finset ), s.card = m IsAddComplete (Set.range (Function.updateFinset a s 0))) (_ : (t : Finset ), t.card = n ¬IsAddComplete (Set.range (Function.updateFinset a t 0))), (m, n) = x} = sorry All goals completed! 🐙 end Erdos348