/-
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.
-/modulepublicimportMathlib.Algebra.BigOperators.Group.Finset.BasicpublicimportMathlib.Algebra.Order.BigOperators.Group.FinsetpublicimportMathlib.Data.Set.Finite.LatticepublicimportMathlib.Order.Filter.AtTopBot.BasicpublicimportMathlib.Order.Filter.AtTopBot.DefspublicimportMathlib.Order.Interval.Finset.NatpublicimportMathlib.Order.WellFounded@[expose]publicsectionvariable{M:Type*}[AddCommMonoidM]openscopedList
Sequences whose partial sums are dominated by the next term
If A : ℕ → ℕ is strictly increasing from index n₀ on and A 0 + ⋯ + A (m - 1) ≤ A (m + 1)
for m ≥ n₀, then removing infinitely many terms from A destroys completeness. This is the
argument of Graham [Gr64d] for the sequence n ↦ fib n - (-1) ^ n: once three terms
A m₁ < A m₂ < A m are removed, the remaining terms below A (m + 1) sum to at most
A (m + 1) - 2, so A (m + 1) - 1 is not a sum of distinct remaining terms.
Let A : ℕ → ℕ be strictly increasing from index n₀ on, with
A 0 + ⋯ + A (m - 1) ≤ A (m + 1) for all m ≥ n₀. Then Set.range A \ B is not complete for
any infinite B ⊆ Set.range A.