Documentation

LeanPool.Erdos346.LimitExistsVariant

Erdős Problem 346, limit-exists interpretation #

This file formalizes an attempted Lean 4 proof of the limit-exists interpretation of Erdős Problem 346.

Original problem: T. F. Bloom, Erdős Problem #346, https://www.erdosproblems.com/346

Background references:

Forum relation: In the Erdős Problems discussion thread for Problem #346, Liam Price submitted an answer for the convergence-from-hypotheses interpretation. Dogmachine then proposed the limit-exists interpretation, citing ambiguity in the Erdős-Graham phrasing and Graham's earlier formulation. This file formalizes that limit-exists interpretation:

if the two deletion hypotheses hold, the sequence has a uniform ratio gap, and a (n+1) / a n tends to a real number L > 1, then the quotient sequence tends to the golden ratio.

AI usage disclosure: The Lean formalization and accompanying writeup were prepared with assistance from Codex and ChatGPT. The final mathematical claims and public presentation remain the author's responsibility.

def Erdos346.subsetSums (a : ) (I : Set ) :

Finite subset sums using only terms with indices in I.

Equations
Instances For
    def Erdos346.IsCompleteOn (a : ) (I : Set ) :

    Completeness of the subsequence with index set I: every sufficiently large natural number is a finite subset sum of terms indexed by I.

    Equations
    Instances For
      noncomputable def Erdos346.leastCompleteThreshold (a : ) (I : Set ) (hcomplete : IsCompleteOn a I) :

      The least threshold from which a complete subsequence is complete, once a proof of completeness is supplied.

      Equations
      Instances For
        theorem Erdos346.leastCompleteThreshold_spec {a : } {I : Set } (hcomplete : IsCompleteOn a I) (t : ) :
        leastCompleteThreshold a I hcomplete tt subsetSums a I
        theorem Erdos346.leastCompleteThreshold_le_of_complete_from {a : } {I : Set } (hcomplete : IsCompleteOn a I) {H : } (hH : ∀ (t : ), H tt subsetSums a I) :
        leastCompleteThreshold a I hcomplete H
        theorem Erdos346.exists_hole_of_lt_leastCompleteThreshold {a : } {I : Set } (hcomplete : IsCompleteOn a I) {B : } (hB : B < leastCompleteThreshold a I hcomplete) :
        ∃ (t : ), B t tsubsetSums a I
        theorem Erdos346.lt_leastCompleteThreshold_of_exists_hole {a : } {I : Set } (hcomplete : IsCompleteOn a I) {B : } (hhole : ∃ (t : ), B t tsubsetSums a I) :
        B < leastCompleteThreshold a I hcomplete
        theorem Erdos346.lt_leastCompleteThreshold_iff_exists_hole {a : } {I : Set } (hcomplete : IsCompleteOn a I) {B : } :
        B < leastCompleteThreshold a I hcomplete ∃ (t : ), B t tsubsetSums a I
        theorem Erdos346.pred_leastCompleteThreshold_not_mem {a : } {I : Set } (hcomplete : IsCompleteOn a I) (hpos : 0 < leastCompleteThreshold a I hcomplete) :
        leastCompleteThreshold a I hcomplete - 1subsetSums a I
        theorem Erdos346.exists_hole_at_pred_leastCompleteThreshold {a : } {I : Set } (hcomplete : IsCompleteOn a I) (hpos : 0 < leastCompleteThreshold a I hcomplete) :
        ∃ (t : ), t = leastCompleteThreshold a I hcomplete - 1 tsubsetSums a I
        def Erdos346.prefixSubsetSums (a : ) (I : Set ) (n : ) :

        Finite subset sums using only terms in I up to index n.

        Equations
        Instances For
          def Erdos346.CoversInterval (a : ) (I : Set ) (n H T : ) :

          The finite subset sums up to n cover the whole interval [H, T].

          Equations
          Instances For
            theorem Erdos346.exists_prefixCoverThreshold_vacuous {a : } {I : Set } {n T : } :
            ∃ (H : ), CoversInterval a I n H T
            noncomputable def Erdos346.leastPrefixCoverThreshold (a : ) (I : Set ) (n T : ) :

            The least lower endpoint H from which the prefix through n covers [H, T]. This is always defined: H = T + 1 gives a vacuous cover.

            Equations
            Instances For

              The least prefix-cover threshold really covers from itself.

              theorem Erdos346.leastPrefixCoverThreshold_le_of_cover {a : } {I : Set } {n T H : } (hcover : CoversInterval a I n H T) :

              Any prefix-cover threshold bounds the least such threshold.

              theorem Erdos346.CoversInterval.mono_lower {a : } {I : Set } {n H H' T : } (hcover : CoversInterval a I n H T) (hHH' : H H') :
              CoversInterval a I n H' T
              theorem Erdos346.not_coversInterval_iff_exists_prefix_hole {a : } {I : Set } {n H T : } :
              ¬CoversInterval a I n H T ∃ (t : ), H t t T tprefixSubsetSums a I n
              theorem Erdos346.exists_prefix_hole_of_lt_leastPrefixCoverThreshold {a : } {I : Set } {n T B : } (hB : B < leastPrefixCoverThreshold a I n T) :
              ∃ (t : ), B t t T tprefixSubsetSums a I n
              theorem Erdos346.lt_leastPrefixCoverThreshold_of_exists_prefix_hole {a : } {I : Set } {n T B : } (hhole : ∃ (t : ), B t t T tprefixSubsetSums a I n) :
              def Erdos346.nextSeedMargin (a : ) (M : ) :

              The first finite margin in the start = M + 2 seed.

              Equations
              Instances For
                def Erdos346.pairSeedMargin (a : ) (M : ) :

                The second finite margin in the start = M + 2 seed.

                Equations
                Instances For
                  theorem Erdos346.nextSeedMargin_lt_least_of_not_seed_keep {a : } {I : Set } {M : } (hnext : a (M + 1) a (M + 2)) (hnot : ¬leastPrefixCoverThreshold a I M (a (M + 2) - 1) + a (M + 1) a (M + 2)) :
                  theorem Erdos346.pairSeedMargin_lt_least_of_not_seed_margin {a : } {I : Set } {M : } (hpair : a (M + 3) a (M + 1) + a (M + 2)) (hnot : ¬leastPrefixCoverThreshold a I M (a (M + 2) - 1) + a (M + 3) a (M + 1) + a (M + 2)) :
                  theorem Erdos346.exists_prefix_hole_of_not_seed_keep {a : } {I : Set } {M : } (hnext : a (M + 1) a (M + 2)) (hnot : ¬leastPrefixCoverThreshold a I M (a (M + 2) - 1) + a (M + 1) a (M + 2)) :
                  ∃ (t : ), nextSeedMargin a M t t a (M + 2) - 1 tprefixSubsetSums a I M
                  theorem Erdos346.exists_prefix_hole_of_not_seed_margin {a : } {I : Set } {M : } (hpair : a (M + 3) a (M + 1) + a (M + 2)) (hnot : ¬leastPrefixCoverThreshold a I M (a (M + 2) - 1) + a (M + 3) a (M + 1) + a (M + 2)) :
                  ∃ (t : ), pairSeedMargin a M t t a (M + 2) - 1 tprefixSubsetSums a I M
                  noncomputable def Erdos346.keptPrefixSum (a : ) (D : Set ) (n : ) :

                  Sum of the non-deleted terms up to index n.

                  Equations
                  Instances For
                    def Erdos346.fullPrefixSum (a : ) (n : ) :

                    Sum of all terms up to index n.

                    Equations
                    Instances For
                      def Erdos346.budgetBase (a : ) (H M T : ) :

                      The fixed numerical slack needed to convert a full-prefix surplus into the Brown budget inequality for an initial covered interval [H, T] at index M.

                      Equations
                      Instances For
                        def Erdos346.beforeBudgetNeed (a : ) (H start : ) :

                        A simple finite upper bound sufficient for all before-budget inequalities between M and the first deleted index start. This is deliberately coarse: it packages the finite obstruction into one number.

                        Equations
                        Instances For
                          noncomputable def Erdos346.deletedPrefixSum (a : ) (D : Set ) (n : ) :

                          Sum of the deleted terms up to index n.

                          Equations
                          Instances For
                            def Erdos346.indexedDeletedSum (a b : ) (k : ) :

                            Sum of the first k deleted terms in an indexed deletion sequence.

                            Equations
                            Instances For
                              theorem Erdos346.indexedDeletedSum_succ {a b : } {k : } :
                              indexedDeletedSum a b (k + 1) = indexedDeletedSum a b k + a (b k)
                              def Erdos346.recursiveBudgetState (a threshold : ) (C start : ) :

                              State for the recursive sparse-deletion construction. The first component is the current deleted index, and the second component is the sum of all deleted terms chosen so far.

                              Equations
                              Instances For
                                def Erdos346.recursiveBudgetSeq (a threshold : ) (C start k : ) :

                                The indexed deletion sequence associated to recursiveBudgetState.

                                Equations
                                Instances For
                                  theorem Erdos346.recursiveBudgetSeq_zero {a threshold : } {C start : } :
                                  recursiveBudgetSeq a threshold C start 0 = start
                                  theorem Erdos346.recursiveBudgetState_sum {a threshold : } {C start : } (k : ) :
                                  (recursiveBudgetState a threshold C start k).2 = indexedDeletedSum a (recursiveBudgetSeq a threshold C start) (k + 1)
                                  theorem Erdos346.recursiveBudgetSeq_succ {a threshold : } {C start k : } :
                                  recursiveBudgetSeq a threshold C start (k + 1) = max (recursiveBudgetSeq a threshold C start k + 2) (threshold (C + indexedDeletedSum a (recursiveBudgetSeq a threshold C start) (k + 1)))
                                  theorem Erdos346.recursiveBudgetSeq_gap {a threshold : } {C start : } (k : ) :
                                  recursiveBudgetSeq a threshold C start k + 1 < recursiveBudgetSeq a threshold C start (k + 1)
                                  theorem Erdos346.recursiveBudgetSeq_threshold_le_succ {a threshold : } {C start k : } :
                                  threshold (C + indexedDeletedSum a (recursiveBudgetSeq a threshold C start) (k + 1)) recursiveBudgetSeq a threshold C start (k + 1)

                                  Deletion set obtained from an indexed family of finite blocks [b k, e k].

                                  Equations
                                  Instances For

                                    Deletion set obtained by combining a finite initial deletion set with an indexed sparse tail.

                                    Equations
                                    Instances For
                                      def Erdos346.periodicDeletionSeq (start period k : ) :

                                      Arithmetic-progression deletion indices. In the global-budget route these are used to delete one term every fixed block.

                                      Equations
                                      Instances For
                                        def Erdos346.periodicDeletionSet (start period : ) :

                                        The set of indices deleted by the periodic deletion scheme with the given start and period, i.e. the range of periodicDeletionSeq start period.

                                        Equations
                                        Instances For
                                          def Erdos346.previousBlockSum (a : ) (m n : ) :

                                          Sum of the m terms immediately preceding index n. For m ≤ n, this is a (n-m) + ... + a (n-1).

                                          Equations
                                          Instances For

                                            From index N on, every term a (n + 1) is strictly dominated by the sum of the previous m terms (previousBlockSum a m n). This is the fixed-length block surplus property used to force completeness.

                                            Equations
                                            Instances For
                                              theorem Erdos346.FixedLengthBlockSurplusFrom.mono {a : } {m N N' : } (hsurplus : FixedLengthBlockSurplusFrom a m N) (hNN' : N N') :

                                              The geometric block-surplus condition at ratio ρ and block length m: for every n ≥ m, the inverse geometric weights of the previous m terms sum to more than one. This drives the surplus needed for the golden-ratio bound.

                                              Equations
                                              Instances For
                                                theorem Erdos346.periodicDeletionSeq_succ {start period k : } :
                                                periodicDeletionSeq start period (k + 1) = periodicDeletionSeq start period k + period
                                                theorem Erdos346.periodicDeletionSeq_gap_of_two_le_period {start period : } (hperiod : 2 period) (k : ) :
                                                periodicDeletionSeq start period k + 1 < periodicDeletionSeq start period (k + 1)
                                                theorem Erdos346.strictMono_periodicDeletionSeq_of_pos {start period : } (hperiod : 0 < period) :
                                                theorem Erdos346.periodicDeletionSet_infinite {start period : } (hperiod : 0 < period) :
                                                theorem Erdos346.periodicDeletionSet_coinfinite_of_two_le_period {start period : } (hperiod : 2 period) :
                                                theorem Erdos346.periodicDeletionSet_avoids_initial {M start period : } (hMstart : M < start) :
                                                theorem Erdos346.periodicDeletionSeq_add_period_le_of_lt {start period j k : } (hperiod : 0 < period) (hjk : j < k) :
                                                periodicDeletionSeq start period j + period periodicDeletionSeq start period k
                                                theorem Erdos346.periodicDeletionSet_not_mem_of_current_window {start period k i : } (hperiod : 0 < period) (hleft : periodicDeletionSeq start period k < i + period) (hright : i < periodicDeletionSeq start period k) :
                                                iperiodicDeletionSet start period
                                                theorem Erdos346.periodicDeletionSet_not_mem_previousBlock_of_period_m_add_two {start m k i : } (hmpos : 0 < m) (hmd : m periodicDeletionSeq start (m + 2) k) (hlo : periodicDeletionSeq start (m + 2) k - m i) (hhi : i periodicDeletionSeq start (m + 2) k - 1) :
                                                iperiodicDeletionSet start (m + 2)
                                                theorem Erdos346.periodicDeletionSet_not_mem_previousBlock_of_mem_period_m_add_two {start m d i : } (hmpos : 0 < m) (hmem : d periodicDeletionSet start (m + 2)) (hmd : m d) (hlo : d - m i) (hhi : i d - 1) :
                                                iperiodicDeletionSet start (m + 2)
                                                theorem Erdos346.periodicDeletionSet_start_le_of_mem {start period d : } (hmem : d periodicDeletionSet start period) :
                                                start d
                                                theorem Erdos346.periodicDeletionSet_mem_period_m_add_two_bounds {M m d : } (hmem : d periodicDeletionSet (M + m + 1) (m + 2)) :
                                                M < d - m m d M + m + 1 d
                                                noncomputable def Erdos346.quotient (a : ) (n : ) :

                                                The quotient a (n+1) / a n, viewed in .

                                                Equations
                                                Instances For

                                                  The original lacunarity lower bound, expressed for index sequences.

                                                  Equations
                                                  Instances For

                                                    Deleting any finite set of indices leaves a complete subsequence.

                                                    Equations
                                                    Instances For

                                                      Uniform finite-base singleton completeness. This is the remaining uniformity needed by the finite-initial-tail lower-bound route: after deleting one fixed finite base set F, deleting any sufficiently late single extra index still leaves a complete subsequence with one common threshold.

                                                      Equations
                                                      Instances For

                                                        The weaker uniform condition actually needed by the start = M + 2 finite-initial-tail seed route. Instead of asking for full completeness after deleting F ∪ {M + 1}, it asks only for the finite prefix cover window used by the seed constructor.

                                                        Equations
                                                        Instances For

                                                          A still weaker seed-window condition: the threshold may depend on M, but for eventually all M there is a prefix-cover threshold small enough for the two finite numeric inequalities used by the start = M + 2 seed constructor.

                                                          Equations
                                                          • One or more equations did not get rendered due to their size.
                                                          Instances For

                                                            The seed construction only needs one sufficiently late good singleton window, not a good window at every sufficiently late index. This formulation asks for good finite-singleton windows arbitrarily far out.

                                                            Equations
                                                            • One or more equations did not get rendered due to their size.
                                                            Instances For

                                                              The same small-window target phrased using the least possible prefix-cover threshold. This turns the remaining finite-deletion problem into bounding one explicit finite combinatorial quantity.

                                                              Equations
                                                              • One or more equations did not get rendered due to their size.
                                                              Instances For

                                                                Least-threshold form of ArbitrarilyLargeFinSingletonSmallPrefixCover.

                                                                Equations
                                                                • One or more equations did not get rendered due to their size.
                                                                Instances For

                                                                  The weakest current finite-window target for the lower-bound route. It only asks, arbitrarily far out, for the first finite seed inequality. Under the eventual upper ratio bound quotient a n < ρ < φ, finite-deletion completeness upgrades this to the full least-small target below.

                                                                  Equations
                                                                  • One or more equations did not get rendered due to their size.
                                                                  Instances For

                                                                    Equivalent cover form of the current first-seed target. Instead of speaking about the canonical least threshold, it asks directly that the finite prefix through M cover the whole first seed window [nextSeedMargin a M, a (M + 2) - 1].

                                                                    Equations
                                                                    • One or more equations did not get rendered due to their size.
                                                                    Instances For

                                                                      Local closure condition that rules out the first-window shift gap. Every prefix sum below the first seed margin remains a prefix sum after adding a (M + 1), even though index M + 1 itself is not allowed in the prefix through M.

                                                                      Equations
                                                                      Instances For

                                                                        Arbitrarily late occurrences of the local first-window shift closure for one fixed finite base set.

                                                                        Equations
                                                                        Instances For

                                                                          The moving singleton-deletion threshold condition sufficient for FirstWindowShiftClosed: after deleting F ∪ {M + 1}, completeness has already started by the previous term a (M + 1).

                                                                          Equations
                                                                          Instances For

                                                                            Arbitrarily late occurrences of the moving singleton-deletion threshold condition for one fixed finite base set.

                                                                            Equations
                                                                            Instances For

                                                                              Deleting any infinite set of indices leaves an incomplete subsequence.

                                                                              Equations
                                                                              Instances For

                                                                                Completeness after deleting a set of values rather than a set of indices. The remaining terms are those indices i whose value a i is not in B.

                                                                                Equations
                                                                                Instances For

                                                                                  Deleting any finite set of values leaves a complete subsequence.

                                                                                  Equations
                                                                                  Instances For

                                                                                    Deleting any infinite subset of the sequence values leaves an incomplete subsequence. The side condition BSet.range a says that B really consists of values from the sequence.

                                                                                    Equations
                                                                                    Instances For
                                                                                      theorem Erdos346.index_compl_eq_value_kept_image {a : } (hmono : StrictMono a) (D : Set ) :
                                                                                      D = {i : | a ia '' D}
                                                                                      theorem Erdos346.term_ge_succ_of_strictMono_pos {a : } (hmono : StrictMono a) (hpos : ∀ (n : ), 0 < a n) (n : ) :
                                                                                      n + 1 a n
                                                                                      theorem Erdos346.evt_const_add_self_le_next_of_uniformRatioGap {a : } (hmono : StrictMono a) (hpos : ∀ (n : ), 0 < a n) (hgap : HasUniformRatioGap a) (C : ) :
                                                                                      ∀ᶠ (n : ) in Filter.atTop, C + a n a (n + 1)
                                                                                      theorem Erdos346.evt_const_add_next_le_next_next_of_uniformRatioGap {a : } (hmono : StrictMono a) (hpos : ∀ (n : ), 0 < a n) (hgap : HasUniformRatioGap a) (C : ) :
                                                                                      ∀ᶠ (M : ) in Filter.atTop, C + a (M + 1) a (M + 2)
                                                                                      noncomputable def Erdos346.finSingletonCompleteThreshold (a : ) (hfinite : FiniteDeletionComplete a) {F : Set } (hF : F.Finite) (M : ) :

                                                                                      The canonical completeness threshold obtained from finite deletion after deleting a fixed finite base set F and the moving singleton M + 1.

                                                                                      Equations
                                                                                      Instances For
                                                                                        theorem Erdos346.finSingletonCompleteThreshold_spec {a : } (hfinite : FiniteDeletionComplete a) {F : Set } (hF : F.Finite) {M t : } (ht : finSingletonCompleteThreshold a hfinite hF M t) :
                                                                                        t subsetSums a (F {M + 1})
                                                                                        theorem Erdos346.finSingletonCompleteThreshold_le_of_complete_from {a : } (hfinite : FiniteDeletionComplete a) {F : Set } (hF : F.Finite) {M H : } (hH : ∀ (t : ), H tt subsetSums a (F {M + 1})) :
                                                                                        theorem Erdos346.exists_finSingletonCompleteThreshold_hole_of_prev_lt {a : } (hfinite : FiniteDeletionComplete a) {F : Set } (hF : F.Finite) {M : } (hlt : a (M + 1) < finSingletonCompleteThreshold a hfinite hF M) :
                                                                                        ∃ (t : ), a (M + 1) t tsubsetSums a (F {M + 1})
                                                                                        theorem Erdos346.pred_finSingletonCompleteThreshold_hole_of_prev_lt {a : } (hfinite : FiniteDeletionComplete a) {F : Set } (hF : F.Finite) {M : } (hlt : a (M + 1) < finSingletonCompleteThreshold a hfinite hF M) :
                                                                                        finSingletonCompleteThreshold a hfinite hF M - 1subsetSums a (F {M + 1})
                                                                                        theorem Erdos346.pred_finSingletonCompleteThreshold_ge_prev_of_prev_lt {a : } (hfinite : FiniteDeletionComplete a) {F : Set } (hF : F.Finite) {M : } (hlt : a (M + 1) < finSingletonCompleteThreshold a hfinite hF M) :
                                                                                        a (M + 1) finSingletonCompleteThreshold a hfinite hF M - 1
                                                                                        theorem Erdos346.exists_pred_finSingletonCompleteThreshold_hole_of_prev_lt {a : } (hfinite : FiniteDeletionComplete a) {F : Set } (hF : F.Finite) {M : } (hlt : a (M + 1) < finSingletonCompleteThreshold a hfinite hF M) :
                                                                                        ∃ (t : ), t = finSingletonCompleteThreshold a hfinite hF M - 1 a (M + 1) t tsubsetSums a (F {M + 1})
                                                                                        theorem Erdos346.two_step_gap_of_quotient_gt_goldenRatio {a : } {n : } (hpos : ∀ (n : ), 0 < a n) (hn : Real.goldenRatio < quotient a n) (hn1 : Real.goldenRatio < quotient a (n + 1)) :
                                                                                        a n + a (n + 1) < a (n + 2)
                                                                                        theorem Erdos346.rho_mul_sub_one_lt_one {ρ : } (hρ1 : 1 < ρ) (hρφ : ρ < Real.goldenRatio) :
                                                                                        ρ * (ρ - 1) < 1
                                                                                        theorem Erdos346.exists_range_geometricBlockWeightSum_gt_one {ρ : } (hρ1 : 1 < ρ) (hρφ : ρ < Real.goldenRatio) :
                                                                                        ∃ (m : ), 0 < m 1 < jFinset.range m, (ρ ^ (j + 2))⁻¹
                                                                                        theorem Erdos346.geometricBlockSurplus_of_range_geometricBlockWeightSum_gt_one {ρ : } {m : } (hmpos : 0 < m) (hrange : 1 < jFinset.range m, (ρ ^ (j + 2))⁻¹) :
                                                                                        theorem Erdos346.two_mul_of_quotient_succ_lt_two {a : } {n : } (hpos : ∀ (n : ), 0 < a n) (h : quotient a (n + 1) < 2) :
                                                                                        a (n + 2) < 2 * a (n + 1)
                                                                                        theorem Erdos346.evt_two_mul_of_eventual_quotient_lt_of_lt_two {a : } {ρ : } (hpos : ∀ (n : ), 0 < a n) (hρ2 : ρ < 2) (hupper : ∀ᶠ (n : ) in Filter.atTop, quotient a n < ρ) :
                                                                                        ∀ᶠ (n : ) in Filter.atTop, a (n + 2) < 2 * a (n + 1)
                                                                                        theorem Erdos346.two_step_sum_gt_of_quotient_lt_rho {a : } {ρ : } {n : } (hpos : ∀ (n : ), 0 < a n) (hρ1 : 1 < ρ) (hρφ : ρ < Real.goldenRatio) (hn : quotient a n < ρ) (hn1 : quotient a (n + 1) < ρ) :
                                                                                        a (n + 2) < a n + a (n + 1)
                                                                                        theorem Erdos346.evt_two_step_sum_gt_of_eventual_quotient_lt_rho {a : } {ρ : } (hpos : ∀ (n : ), 0 < a n) (hρ1 : 1 < ρ) (hρφ : ρ < Real.goldenRatio) (hupper : ∀ᶠ (n : ) in Filter.atTop, quotient a n < ρ) :
                                                                                        ∀ᶠ (n : ) in Filter.atTop, a (n + 2) < a n + a (n + 1)
                                                                                        theorem Erdos346.evt_two_step_le_of_eventual_quotient_lt_rho {a : } {ρ : } (hpos : ∀ (n : ), 0 < a n) (hρ1 : 1 < ρ) (hρφ : ρ < Real.goldenRatio) (hupper : ∀ᶠ (n : ) in Filter.atTop, quotient a n < ρ) :
                                                                                        ∀ᶠ (n : ) in Filter.atTop, a (n + 2) a n + a (n + 1)
                                                                                        theorem Erdos346.const_add_two_step_le_of_quotient_lt_rho_of_const_le {a : } {ρ : } {C n : } (hpos : ∀ (n : ), 0 < a n) (hρ1 : 1 < ρ) (hC : C (1 - ρ * (ρ - 1)) * (a n)) (hn : quotient a n < ρ) (hn1 : quotient a (n + 1) < ρ) :
                                                                                        C + a (n + 2) a n + a (n + 1)
                                                                                        theorem Erdos346.evt_const_add_two_step_le_of_eventual_quotient_lt_rho {a : } {ρ : } (hmono : StrictMono a) (hpos : ∀ (n : ), 0 < a n) (hρ1 : 1 < ρ) (hρφ : ρ < Real.goldenRatio) (hupper : ∀ᶠ (n : ) in Filter.atTop, quotient a n < ρ) (C : ) :
                                                                                        ∀ᶠ (n : ) in Filter.atTop, C + a (n + 2) a n + a (n + 1)
                                                                                        theorem Erdos346.term_le_pow_mul_of_quotient_lt_on_range {a : } {ρ : } {s k : } (hpos : ∀ (n : ), 0 < a n) (hρpos : 0 < ρ) (hquot : j < k, quotient a (s + j) < ρ) :
                                                                                        (a (s + k)) ρ ^ k * (a s)
                                                                                        theorem Erdos346.term_div_pow_le_of_quotient_lt_between {a : } {ρ : } {i n : } (hpos : ∀ (n : ), 0 < a n) (hρpos : 0 < ρ) (hin : i n + 1) (hquot : ∀ (t : ), i tt < n + 1quotient a t < ρ) :
                                                                                        (a (n + 1)) / ρ ^ (n + 1 - i) (a i)
                                                                                        theorem Erdos346.fixedLengthBlockSurplusFrom_of_geometricBlockSurplus_of_eventual_quotient_lt {a : } {ρ : } {m : } (hpos : ∀ (n : ), 0 < a n) (hρpos : 0 < ρ) (hgeom : GeometricBlockSurplus ρ m) (hupper : ∀ᶠ (n : ) in Filter.atTop, quotient a n < ρ) :
                                                                                        def Erdos346.propagatedGap (a : ) (N : ) :

                                                                                        A moving hole in a tail. Starting from a N - 1, it is propagated two steps at a time by adding the intervening odd-indexed tail term.

                                                                                        Equations
                                                                                        Instances For
                                                                                          theorem Erdos346.finset_sum_le_Icc_sum_of_subset_Ici_of_forall_le {a : } {F : Finset } {N m : } (hFN : F Set.Ici N) (hm : iF, i m) :
                                                                                          iF, a i iFinset.Icc N m, a i
                                                                                          theorem Erdos346.propagatedGap_ge_self {a : } {N : } (hpos : ∀ (n : ), 0 < a n) (k : ) :
                                                                                          theorem Erdos346.prefixSubsetSums_mono_index {a : } {I : Set } {m n : } (hmn : m n) :
                                                                                          theorem Erdos346.prefixSubsetSums_succ_iff {a : } {I : Set } {M t : } :
                                                                                          t prefixSubsetSums a I (M + 1) t prefixSubsetSums a I M M + 1 I a (M + 1) t t - a (M + 1) prefixSubsetSums a I M
                                                                                          theorem Erdos346.CoversInterval.mono_index {a : } {I : Set } {m n H T : } (hcover : CoversInterval a I m H T) (hmn : m n) :
                                                                                          CoversInterval a I n H T
                                                                                          theorem Erdos346.CoversInterval.mono_set {a : } {I J : Set } {n H T : } (hcover : CoversInterval a I n H T) (hIJ : I Set.Iic n J Set.Iic n) :
                                                                                          CoversInterval a J n H T
                                                                                          theorem Erdos346.cover_compl_of_cover_univ_of_avoid {a : } {D : Set } {n H T : } (hcover : CoversInterval a Set.univ n H T) (havoid : Set.Iic n D) :
                                                                                          theorem Erdos346.wide_prefix_cover_forces_zero_left {a : } {M H T : } (hcover : CoversInterval a Set.univ M H T) (hHT : H T) (hwide : fullPrefixSum a M + H T) :
                                                                                          H = 0
                                                                                          theorem Erdos346.exists_prefix_cover_univ_of_complete {a : } (hcomplete : IsCompleteOn a Set.univ) :
                                                                                          ∃ (H : ), ∀ (T : ), H T∃ (M : ), CoversInterval a Set.univ M H T
                                                                                          theorem Erdos346.exists_prefix_cover_of_complete {a : } {I : Set } (hcomplete : IsCompleteOn a I) :
                                                                                          ∃ (H : ), ∀ (T : ), H T∃ (M : ), CoversInterval a I M H T
                                                                                          theorem Erdos346.finite_subset_iic {F : Set } (hF : F.Finite) :
                                                                                          ∃ (M : ), F Set.Iic M
                                                                                          theorem Erdos346.exists_prefix_cover_compl_of_finiteDeletionComplete {a : } {F : Set } (hfinite : FiniteDeletionComplete a) (hF : F.Finite) :
                                                                                          ∃ (H : ), ∀ (T : ), H T∃ (M : ), F Set.Iic M CoversInterval a F M H T
                                                                                          theorem Erdos346.finset_term_le_sum_of_mem {a : } {F : Finset } {i : } (hi : i F) :
                                                                                          a i jF, a j
                                                                                          theorem Erdos346.subset_sum_eq_lt_next_uses_only_prefix {a : } {F : Finset } {n t : } (hmono : StrictMono a) (hsum : iF, a i = t) (hlt : t < a (n + 1)) :
                                                                                          F Set.Iic n
                                                                                          theorem Erdos346.subsetSums_lt_next_subset_prefixSubsetSums {a : } {I : Set } {n t : } (hmono : StrictMono a) (ht : t subsetSums a I) (hlt : t < a (n + 1)) :
                                                                                          theorem Erdos346.complete_prefix_cover_two_mul_sub_one {a : } {H q : } (hmono : StrictMono a) (hprev_pos : 0 < a (q + 1)) (hcompleteH : ∀ (t : ), H tt subsetSums a Set.univ) (hnext : a (q + 1) + H a (q + 2)) :
                                                                                          CoversInterval a Set.univ (q + 1) H (2 * a (q + 1) - 1)
                                                                                          theorem Erdos346.exists_initial_global_budget_seed_of_complete_of_evtQuotientLtGold {a : } {ρ : } (hmono : StrictMono a) (hpos : ∀ (n : ), 0 < a n) (hgap : HasUniformRatioGap a) (hcomplete : IsCompleteOn a Set.univ) (hρ1 : 1 < ρ) (hρφ : ρ < Real.goldenRatio) (hupper : ∀ᶠ (n : ) in Filter.atTop, quotient a n < ρ) :
                                                                                          ∃ (H : ) (q : ), H 2 * a (q + 1) - 1 CoversInterval a Set.univ (q + 1) H (2 * a (q + 1) - 1) a (q + 2) 2 * a (q + 1) - H
                                                                                          theorem Erdos346.exists_initial_global_budget_seed_after_of_complete_of_evtQuotientLtGold {a : } {ρ : } (hmono : StrictMono a) (hpos : ∀ (n : ), 0 < a n) (hgap : HasUniformRatioGap a) (hcomplete : IsCompleteOn a Set.univ) (hρ1 : 1 < ρ) (hρφ : ρ < Real.goldenRatio) (hupper : ∀ᶠ (n : ) in Filter.atTop, quotient a n < ρ) (B : ) :
                                                                                          ∃ (H : ) (q : ), B q H 2 * a (q + 1) - 1 CoversInterval a Set.univ (q + 1) H (2 * a (q + 1) - 1) a (q + 2) 2 * a (q + 1) - H
                                                                                          theorem Erdos346.not_subsetSums_of_not_prefixSubsetSums_of_lt_next {a : } {I : Set } {n t : } (hmono : StrictMono a) (hmiss : tprefixSubsetSums a I n) (hlt : t < a (n + 1)) :
                                                                                          tsubsetSums a I
                                                                                          theorem Erdos346.subsetSums_avoiding_finite_singleton_lt_next_next_subset_prefix {a : } {F : Set } {M t : } (hmono : StrictMono a) (ht : t subsetSums a (F {M + 1})) (hlt : t < a (M + 2)) :
                                                                                          theorem Erdos346.not_subsetSums_avoiding_finite_singleton_of_prefix_hole {a : } {F : Set } {M t : } (hmono : StrictMono a) (hmiss : tprefixSubsetSums a F M) (hlt : t < a (M + 2)) :
                                                                                          tsubsetSums a (F {M + 1})
                                                                                          theorem Erdos346.exists_finite_singleton_hole_of_not_seed_margins {a : } {F : Set } {M : } (hmono : StrictMono a) (hpos : ∀ (n : ), 0 < a n) (hnext : a (M + 1) a (M + 2)) (hpair : a (M + 3) a (M + 1) + a (M + 2)) (hnot : ¬(leastPrefixCoverThreshold a F M (a (M + 2) - 1) + a (M + 1) a (M + 2) leastPrefixCoverThreshold a F M (a (M + 2) - 1) + a (M + 3) a (M + 1) + a (M + 2))) :
                                                                                          ta (M + 2) - 1, t < a (M + 2) tsubsetSums a (F {M + 1}) (nextSeedMargin a M t pairSeedMargin a M t)
                                                                                          theorem Erdos346.finite_singleton_hole_mem_base_compl_forces_shifted_prefix {a : } {F : Set } {H M t : } (hmono : StrictMono a) (hcompleteF : ∀ (u : ), H uu subsetSums a F) (hHt : H t) (hmiss : tsubsetSums a (F {M + 1})) (hlt : t < a (M + 2)) :
                                                                                          a (M + 1) t t - a (M + 1) prefixSubsetSums a F M
                                                                                          theorem Erdos346.finite_singleton_hole_lt_next_forces_shifted_prefix {a : } {F : Set } {H M R t : } (hmono : StrictMono a) (hcompleteF : ∀ (u : ), H uu subsetSums a F) (hHt : H t) (hmiss : tsubsetSums a (F {M + 1})) (hlt : t < a (R + 1)) :
                                                                                          a (M + 1) t t - a (M + 1) prefixSubsetSums a (F {M + 1}) R
                                                                                          theorem Erdos346.finite_singleton_hole_lt_next3_forces_shifted_prefix {a : } {F : Set } {H M t : } (hmono : StrictMono a) (hcompleteF : ∀ (u : ), H uu subsetSums a F) (hHt : H t) (hmiss : tsubsetSums a (F {M + 1})) (hlt : t < a (M + 3)) :
                                                                                          a (M + 1) t t - a (M + 1) prefixSubsetSums a (F {M + 1}) (M + 2)
                                                                                          theorem Erdos346.finite_singleton_hole_ge_base_threshold_forces_shifted_prefix_of_finiteDeletionComplete {a : } {F : Set } (hmono : StrictMono a) (hfinite : FiniteDeletionComplete a) (hFfinite : F.Finite) :
                                                                                          ∃ (H : ), ∀ (M t : ), H ttsubsetSums a (F {M + 1})t < a (M + 2)a (M + 1) t t - a (M + 1) prefixSubsetSums a F M
                                                                                          theorem Erdos346.shifted_prefix_source_lt_nextSeedMargin {a : } {M t : } (ha : a (M + 1) t) (hlt : t < a (M + 2)) :
                                                                                          t - a (M + 1) < nextSeedMargin a M
                                                                                          theorem Erdos346.shifted_prefix_hole_gives_prefix_shift_gap {a : } {F : Set } {M t : } (ha : a (M + 1) t) (hsource : t - a (M + 1) prefixSubsetSums a F M) (hmiss : tsubsetSums a (F {M + 1})) (hlt : t < a (M + 2)) :
                                                                                          sprefixSubsetSums a F M, s < nextSeedMargin a M a (M + 1) + s < a (M + 2) a (M + 1) + sprefixSubsetSums a F M
                                                                                          theorem Erdos346.pred_finSingletonCompleteThreshold_small_forces_prefix_shift_gap {a : } (hfinite : FiniteDeletionComplete a) {F : Set } (hF : F.Finite) {H M : } (hmono : StrictMono a) (hcompleteF : ∀ (u : ), H uu subsetSums a F) (hHprev : H a (M + 1)) (hprevlt : a (M + 1) < finSingletonCompleteThreshold a hfinite hF M) (hthreshold_le : finSingletonCompleteThreshold a hfinite hF M a (M + 2)) :
                                                                                          sprefixSubsetSums a F M, s < nextSeedMargin a M a (M + 1) + s < a (M + 2) a (M + 1) + sprefixSubsetSums a F M
                                                                                          theorem Erdos346.pred_finSingletonCompleteThreshold_next_forces_shifted_prefix {a : } (hfinite : FiniteDeletionComplete a) {F : Set } (hF : F.Finite) {H M R : } (hmono : StrictMono a) (hcompleteF : ∀ (u : ), H uu subsetSums a F) (hM1R : M + 1 < R) (hHR : H a R) (hRlt : a R < finSingletonCompleteThreshold a hfinite hF M) (hthreshold_le : finSingletonCompleteThreshold a hfinite hF M a (R + 1)) :
                                                                                          ∃ (t : ) (s : ), t = finSingletonCompleteThreshold a hfinite hF M - 1 a R t t < a (R + 1) tsubsetSums a (F {M + 1}) s = t - a (M + 1) s prefixSubsetSums a (F {M + 1}) R
                                                                                          theorem Erdos346.pred_finSingletonCompleteThreshold_next3_forces_shifted_prefix {a : } (hfinite : FiniteDeletionComplete a) {F : Set } (hF : F.Finite) {H M : } (hmono : StrictMono a) (hcompleteF : ∀ (u : ), H uu subsetSums a F) (hHnext : H a (M + 2)) (hnextlt : a (M + 2) < finSingletonCompleteThreshold a hfinite hF M) (hthreshold_le : finSingletonCompleteThreshold a hfinite hF M a (M + 3)) :
                                                                                          ∃ (t : ) (s : ), t = finSingletonCompleteThreshold a hfinite hF M - 1 a (M + 2) t t < a (M + 3) tsubsetSums a (F {M + 1}) s = t - a (M + 1) s prefixSubsetSums a (F {M + 1}) (M + 2)
                                                                                          theorem Erdos346.first_prefix_cover_of_succ_cover_and_shiftClosed {a : } {F : Set } {M : } (hpos : 0 < a (M + 2)) (hcoverSucc : CoversInterval a F (M + 1) (nextSeedMargin a M) (a (M + 2) - 1)) (hclosed : FirstWindowShiftClosed a F M) :
                                                                                          CoversInterval a F M (nextSeedMargin a M) (a (M + 2) - 1)
                                                                                          theorem Erdos346.prefix_shift_gap_forces_nextSeedMargin_lt_least {a : } {F : Set } {M s : } (hnext_le : nextSeedMargin a M a (M + 1)) (hgap : s prefixSubsetSums a F M s < nextSeedMargin a M a (M + 1) + s < a (M + 2) a (M + 1) + sprefixSubsetSums a F M) :
                                                                                          theorem Erdos346.complete_forces_next_le_fullPrefixSum_add_one {a : } {H n : } (hmono : StrictMono a) (hcomplete : ∀ (t : ), H tt subsetSums a Set.univ) (hH : H fullPrefixSum a n + 1) :
                                                                                          a (n + 1) fullPrefixSum a n + 1
                                                                                          theorem Erdos346.complete_prefix_cover_of_lt_next {a : } {H n T : } (hmono : StrictMono a) (hcomplete : ∀ (t : ), H tt subsetSums a Set.univ) (hTlt : T < a (n + 1)) :
                                                                                          theorem Erdos346.complete_prefix_cover_of_lt_next_on {a : } {I : Set } {H n T : } (hmono : StrictMono a) (hcomplete : ∀ (t : ), H tt subsetSums a I) (hTlt : T < a (n + 1)) :
                                                                                          CoversInterval a I n H T
                                                                                          theorem Erdos346.exists_prefix_cover_compl_lt_next_of_finiteDeletionComplete {a : } {F : Set } (hmono : StrictMono a) (hfinite : FiniteDeletionComplete a) (hF : F.Finite) :
                                                                                          ∃ (H : ), ∀ (n T : ), T < a (n + 1)CoversInterval a F n H T
                                                                                          theorem Erdos346.deletedPrefixSum_eq_zero_of_avoid {a : } {D : Set } {n : } (havoid : Set.Iic n D) :
                                                                                          theorem Erdos346.finset_sum_union_le_add {a : } {s t : Finset } :
                                                                                          is t, a i is, a i + it, a i
                                                                                          theorem Erdos346.fullPrefixSum_succ {a : } {n : } :
                                                                                          fullPrefixSum a (n + 1) = fullPrefixSum a n + a (n + 1)
                                                                                          theorem Erdos346.succ_le_fullPrefixSum_of_pos {a : } (hpos : ∀ (n : ), 0 < a n) (n : ) :
                                                                                          theorem Erdos346.evt_next_le_fullPrefixSum_add_one_of_complete {a : } (hmono : StrictMono a) (hpos : ∀ (n : ), 0 < a n) (hcomplete : IsCompleteOn a Set.univ) :
                                                                                          theorem Erdos346.next_add_fullPrefixSum_ge_add_next_of_evt_two_mul_aux {a : } {N : } (hsmall : ∀ (n : ), N na (n + 2) < 2 * a (n + 1)) (k : ) :
                                                                                          a (N + 1) + fullPrefixSum a (N + k) k + a (N + k + 1)
                                                                                          theorem Erdos346.evt_const_add_next_le_fullPrefixSum_of_evt_two_mul {a : } (hsmall : ∀ᶠ (n : ) in Filter.atTop, a (n + 2) < 2 * a (n + 1)) (C : ) :
                                                                                          theorem Erdos346.two_initial_add_fullPrefixSum_ge_add_pair_aux {a : } {N : } (hsmall : ∀ (n : ), N na (n + 2) < a n + a (n + 1)) (k : ) :
                                                                                          a N + a (N + 1) + fullPrefixSum a (N + k) k + (a (N + k) + a (N + k + 1))
                                                                                          theorem Erdos346.evt_const_add_pair_le_fullPrefixSum_of_evt_pair_gap {a : } (hsmall : ∀ᶠ (n : ) in Filter.atTop, a (n + 2) < a n + a (n + 1)) (C : ) :
                                                                                          ∀ᶠ (n : ) in Filter.atTop, C + a n + a (n + 1) fullPrefixSum a n
                                                                                          theorem Erdos346.evt_pair_prefix_surplus_of_evtQuotientLtGold {a : } {ρ : } (hpos : ∀ (n : ), 0 < a n) (hρ1 : 1 < ρ) (hρφ : ρ < Real.goldenRatio) (hupper : ∀ᶠ (n : ) in Filter.atTop, quotient a n < ρ) (C : ) :
                                                                                          ∀ᶠ (n : ) in Filter.atTop, C + a n + a (n + 1) fullPrefixSum a n
                                                                                          theorem Erdos346.evt_next_next_seed_tail_conditions_of_evtQuotientLtGold {a : } {ρ : } (hpos : ∀ (n : ), 0 < a n) (hρ1 : 1 < ρ) (hρφ : ρ < Real.goldenRatio) (hupper : ∀ᶠ (n : ) in Filter.atTop, quotient a n < ρ) :
                                                                                          ∀ᶠ (M : ) in Filter.atTop, a (M + 2) + a (M + 3) fullPrefixSum a (M + 2) ∀ (n : ), M + 2 na (n + 2) a n + a (n + 1)
                                                                                          theorem Erdos346.evt_next_next_seed_numeric_conditions {a : } {ρ : } (hmono : StrictMono a) (hpos : ∀ (n : ), 0 < a n) (hratioGap : HasUniformRatioGap a) (hρ1 : 1 < ρ) (hρφ : ρ < Real.goldenRatio) (hupper : ∀ᶠ (n : ) in Filter.atTop, quotient a n < ρ) (H : ) :
                                                                                          ∀ᶠ (M : ) in Filter.atTop, H + a (M + 1) a (M + 2) a (M + 2) + a (M + 3) fullPrefixSum a (M + 2) ∀ (n : ), M + 2 na (n + 2) a n + a (n + 1)
                                                                                          theorem Erdos346.evt_next_next_seed_numeric_conditions_with_margin {a : } {ρ : } (hmono : StrictMono a) (hpos : ∀ (n : ), 0 < a n) (hratioGap : HasUniformRatioGap a) (hρ1 : 1 < ρ) (hρφ : ρ < Real.goldenRatio) (hupper : ∀ᶠ (n : ) in Filter.atTop, quotient a n < ρ) (H : ) :
                                                                                          ∀ᶠ (M : ) in Filter.atTop, H + a (M + 1) a (M + 2) a (M + 2) + a (M + 3) fullPrefixSum a (M + 2) H + a (M + 3) a (M + 1) + a (M + 2) ∀ (n : ), M + 2 na (n + 2) a n + a (n + 1)
                                                                                          theorem Erdos346.strictMono_nat_add_le {b : } (hb : StrictMono b) (k : ) :
                                                                                          b 0 + k b k
                                                                                          theorem Erdos346.strictMono_of_gap_one {b : } (hgap : ∀ (k : ), b k + 1 < b (k + 1)) :
                                                                                          theorem Erdos346.deletedPrefixSum_range_le_indexedDeletedSum_between {a b : } {n k : } (hb : StrictMono b) (_hleft : b k n) (hright : n < b (k + 1)) :
                                                                                          theorem Erdos346.succ_range_subset_compl_of_gap {b : } (hgap : ∀ (k : ), b k + 1 < b (k + 1)) :
                                                                                          (Set.range fun (k : ) => b k + 1) (Set.range b)
                                                                                          theorem Erdos346.range_succ_infinite_of_gap {b : } (hgap : ∀ (k : ), b k + 1 < b (k + 1)) :
                                                                                          (Set.range fun (k : ) => b k + 1).Infinite
                                                                                          theorem Erdos346.coinfinite_range_of_gap {b : } (hgap : ∀ (k : ), b k + 1 < b (k + 1)) :
                                                                                          theorem Erdos346.initialTailDeletionSet_infinite {F : Set } {b : } (hgap : ∀ (k : ), b k + 1 < b (k + 1)) :
                                                                                          theorem Erdos346.gap_points_subset_compl_initialTailDeletionSet {F : Set } {b : } {M : } (hF : F Set.Iic M) (hgap : ∀ (k : ), b k + 1 < b (k + 1)) (havoid : ∀ (k : ), M < b k) :
                                                                                          (Set.range fun (k : ) => b k + 1) (initialTailDeletionSet F b)
                                                                                          theorem Erdos346.initialTailDeletionSet_coinfinite {F : Set } {b : } {M : } (hF : F Set.Iic M) (hgap : ∀ (k : ), b k + 1 < b (k + 1)) (havoid : ∀ (k : ), M < b k) :
                                                                                          theorem Erdos346.cover_initialTailDeletionSet_of_cover_initial {a : } {F : Set } {b : } {H M T : } (hcover : CoversInterval a F M H T) (havoid : ∀ (k : ), M < b k) :
                                                                                          theorem Erdos346.strictMono_block_left {b e : } (hnonempty : ∀ (k : ), b k e k) (hgap : ∀ (k : ), e k + 1 < b (k + 1)) :
                                                                                          theorem Erdos346.strictMono_block_right {b e : } (hnonempty : ∀ (k : ), b k e k) (hgap : ∀ (k : ), e k + 1 < b (k + 1)) :
                                                                                          theorem Erdos346.blockDeletionSet_infinite {b e : } (hnonempty : ∀ (k : ), b k e k) (hgap : ∀ (k : ), e k + 1 < b (k + 1)) :
                                                                                          theorem Erdos346.block_gap_points_subset_compl {b e : } (hnonempty : ∀ (k : ), b k e k) (hgap : ∀ (k : ), e k + 1 < b (k + 1)) :
                                                                                          (Set.range fun (k : ) => e k + 1) (blockDeletionSet b e)
                                                                                          theorem Erdos346.block_gap_points_infinite {b e : } (hnonempty : ∀ (k : ), b k e k) (hgap : ∀ (k : ), e k + 1 < b (k + 1)) :
                                                                                          (Set.range fun (k : ) => e k + 1).Infinite
                                                                                          theorem Erdos346.blockDeletionSet_coinfinite {b e : } (hnonempty : ∀ (k : ), b k e k) (hgap : ∀ (k : ), e k + 1 < b (k + 1)) :
                                                                                          theorem Erdos346.keptPrefixSum_succ_of_mem {a : } {D : Set } {n : } (hmem : n + 1 D) :
                                                                                          keptPrefixSum a D (n + 1) = keptPrefixSum a D n
                                                                                          theorem Erdos346.keptPrefixSum_succ_of_not_mem {a : } {D : Set } {n : } (hmem : n + 1D) :
                                                                                          keptPrefixSum a D (n + 1) = keptPrefixSum a D n + a (n + 1)
                                                                                          theorem Erdos346.keptPrefixSum_add_term_le_of_lt_of_not_mem {a : } {D : Set } {n m : } (hnm : n < m) (hm : mD) :
                                                                                          theorem Erdos346.brown_tail_budget_nonempty_of_initial {a : } {D : Set } {H M T n : } (hMn : M n) (hnonempty : H T) :
                                                                                          H T + (keptPrefixSum a D n - keptPrefixSum a D M)
                                                                                          theorem Erdos346.brown_tail_budget_propagates_of_two_mul {a : } {D : Set } {H M T n : } (hMn : M n) (hnonempty : H T + (keptPrefixSum a D n - keptPrefixSum a D M)) (hkeep : n + 1D) (hcurrent : a (n + 1) T + (keptPrefixSum a D n - keptPrefixSum a D M) - H + 1) (htwo : a (n + 2) 2 * a (n + 1)) :
                                                                                          a (n + 2) T + (keptPrefixSum a D (n + 1) - keptPrefixSum a D M) - H + 1
                                                                                          theorem Erdos346.brown_tail_budget_unchanged_of_deleted {a : } {D : Set } {H M T n : } (hdel : n + 1 D) :
                                                                                          T + (keptPrefixSum a D (n + 1) - keptPrefixSum a D M) - H + 1 = T + (keptPrefixSum a D n - keptPrefixSum a D M) - H + 1
                                                                                          theorem Erdos346.keptPrefixSum_add_sum_Icc_le_of_not_mem {a : } {D : Set } {M lo hi : } (hMlo : M < lo) (hlohi : lo hi) (hkeep : ∀ (i : ), lo ii hiiD) :
                                                                                          keptPrefixSum a D M + iFinset.Icc lo hi, a i keptPrefixSum a D hi
                                                                                          theorem Erdos346.previousBlockSum_le_brown_tail_budget_of_not_mem {a : } {D : Set } {H M T m n : } (hnonempty : H T) (hmpos : 0 < m) (hmn : m n) (hMlo : M < n - m) (hkeep : ∀ (i : ), n - m ii n - 1iD) :
                                                                                          previousBlockSum a m n T + (keptPrefixSum a D (n - 1) - keptPrefixSum a D M) - H + 1
                                                                                          theorem Erdos346.brown_tail_budget_after_deleted_of_previousBlockSurplus {a : } {D : Set } {H M T m d : } (hnonempty : H T) (hmpos : 0 < m) (hmd : m d) (hMlo : M < d - m) (hkeep : ∀ (i : ), d - m ii d - 1iD) (hdel : d D) (hsurplus : a (d + 1) < previousBlockSum a m d) :
                                                                                          a (d + 1) T + (keptPrefixSum a D d - keptPrefixSum a D M) - H + 1
                                                                                          theorem Erdos346.periodicDeletion_step_of_fixedBlockSurplus {a : } {H M T m : } (hmpos : 0 < m) (hnonempty : H T) (hbase : a (M + 1) T - H + 1) (htwo : ∀ (n : ), M na (n + 2) 2 * a (n + 1)) (hsurplus : FixedLengthBlockSurplusFrom a m (M + m + 1)) (n : ) :
                                                                                          M nn + 1periodicDeletionSet (M + m + 1) (m + 2)a (n + 1) T + (keptPrefixSum a (periodicDeletionSet (M + m + 1) (m + 2)) n - keptPrefixSum a (periodicDeletionSet (M + m + 1) (m + 2)) M) - H + 1
                                                                                          theorem Erdos346.exists_keptPrefixSum_ge_of_infinite_compl {a : } {D : Set } (hpos : ∀ (n : ), 0 < a n) (hinf : D.Infinite) (k start : ) :
                                                                                          ∃ (n : ), start n k keptPrefixSum a D n
                                                                                          theorem Erdos346.coversInterval_step_of_kept {a : } {D : Set } {n H T : } (hcover : CoversInterval a D n H T) (hHT : H T) (hkeep : n + 1D) (hnext : a (n + 1) T - H + 1) :
                                                                                          CoversInterval a D (n + 1) H (T + a (n + 1))
                                                                                          structure Erdos346.BrownDeletionData (a : ) (D : Set ) (H M : ) :

                                                                                          Brown-style data guaranteeing that deleting D preserves eventual completeness. The initial interval [H, keptPrefixSum M] is covered, every kept next term is small enough to extend the covered interval, and the kept prefix sums are unbounded.

                                                                                          Instances For
                                                                                            structure Erdos346.BrownStepData (a : ) (D : Set ) (H M : ) :

                                                                                            Brown-style data before proving unboundedness of the kept prefix sums. Coinfiniteness of the kept set plus positivity implies the unbounded field of BrownDeletionData.

                                                                                            Instances For
                                                                                              structure Erdos346.BrownSeedData (a : ) (D : Set ) (H M C : ) :

                                                                                              Brown-style seed data with a fixed initial slack C. This is weaker than BrownStepData: the propagated covered interval is allowed to be [H, C + keptPrefixSum n] rather than [H, keptPrefixSum n].

                                                                                              Instances For
                                                                                                structure Erdos346.BrownTailData (a : ) (D : Set ) (H M T : ) :

                                                                                                Brown-style tail data with an explicit initial covered interval [H, T]. The construction only has to avoid deleting the initial prefix. Lean then transfers the Set.univ prefix cover to Dᶜ and propagates the covered upper endpoint by the kept-prefix growth after M.

                                                                                                Instances For
                                                                                                  structure Erdos346.BrownTailCoverData (a : ) (D : Set ) (H M T : ) :

                                                                                                  Brown-style tail data when the initial cover has already been proved in the kept set. This removes the avoids_initial requirement and is useful for starting after a finite batch of deletions.

                                                                                                  Instances For
                                                                                                    structure Erdos346.BrownBudgetData (a : ) (D : Set ) (H M T : ) :

                                                                                                    A purely numerical sufficient condition for BrownTailData. It controls the total deleted mass up to n, rather than mentioning the kept prefix sum in the step inequality.

                                                                                                    Instances For
                                                                                                      structure Erdos346.BrownBudgetCoverData (a : ) (D : Set ) (H M T : ) :

                                                                                                      Numerical sufficient condition for BrownTailCoverData. Unlike BrownBudgetData, this permits a finite batch of deletions at or before M, provided the initial cover is already in the kept set.

                                                                                                      Instances For
                                                                                                        structure Erdos346.IndexedBudgetInitialTailData (a : ) (F : Set ) (b : ) (H M T : ) :

                                                                                                        Indexed sparse-tail data after a finite initial deletion set F. The initial interval is covered in Fᶜ; the indexed tail starts after M, so the initial cover also lives in the full kept set (F ∪ range b)ᶜ.

                                                                                                        Instances For
                                                                                                          structure Erdos346.IndexedPartialBudgetInitialTailData (a : ) (F : Set ) (b : ) (H M T : ) :

                                                                                                          Constructive version of IndexedBudgetInitialTailData. It only asks for the budget inequality before the first tail deletion and between consecutive tail deletions.

                                                                                                          Instances For
                                                                                                            structure Erdos346.IndexedBudgetData (a b : ) (H M T : ) :

                                                                                                            Indexed sparse-deletion budget data. Unlike the discarded block-control condition below, this asks for the Brown budget inequality itself at the kept extension steps.

                                                                                                            Instances For
                                                                                                              structure Erdos346.IndexedPartialBudgetData (a b : ) (H M T : ) :

                                                                                                              A more constructive form of indexed sparse-deletion budget data. It only mentions the finite sum of the first k chosen deleted terms on the interval before the next deletion.

                                                                                                              Instances For
                                                                                                                structure Erdos346.IndexedPartialBudgetSeed (a : ) (H M T start : ) :

                                                                                                                Finite seed data for the remaining recursive sparse-deletion construction. After start, the global pair-prefix surplus handles all later intervals; the finite interval before start is recorded explicitly.

                                                                                                                Instances For
                                                                                                                  structure Erdos346.IndexedInitialTailSeed (a : ) (F : Set ) (H M T start : ) :

                                                                                                                  Seed data for the finite-initial-deletion route. The initial covered interval is already proved after deleting a finite set F ⊆ Iic M; after start, the usual pair-prefix surplus controls the recursive sparse tail.

                                                                                                                  Instances For
                                                                                                                    theorem Erdos346.indexedPartialBudgetSeed_of_wide_prefix_cover {a : } {H M T start : } (hcover : CoversInterval a Set.univ M H T) (hHT : H T) (hwide : fullPrefixSum a M + H T) (hMstart : M < start) (hnext : ∀ (n : ), M na (n + 1) fullPrefixSum a n + 1) (hsurplus0 : ∀ (n : ), start na n + a (n + 1) fullPrefixSum a n) :
                                                                                                                    theorem Erdos346.indexedPartialBudgetSeed_of_prefix_cover_and_tail_surplus {a : } {H M T : } (hcover : CoversInterval a Set.univ M H T) (hHT : H T) (hsurplus_from : ∀ (n : ), M + 1 nbudgetBase a H M T + a n + a (n + 1) fullPrefixSum a n) :
                                                                                                                    theorem Erdos346.before_budget_of_large_T {a : } {H M T start : } (hmono : StrictMono a) (hTlarge : H + a start T) (n : ) :
                                                                                                                    M nn < startn + 1 starta (n + 1) T + (fullPrefixSum a n - fullPrefixSum a M) - H + 1
                                                                                                                    theorem Erdos346.beforeBudgetNeed_ge {a : } {H start n : } (hnstart : n < start) :
                                                                                                                    H + a (n + 1) beforeBudgetNeed a H start
                                                                                                                    theorem Erdos346.before_budget_of_T_ge_beforeBudgetNeed {a : } {H M T start : } (hT : beforeBudgetNeed a H start T) (n : ) :
                                                                                                                    M nn < startn + 1 starta (n + 1) T + (fullPrefixSum a n - fullPrefixSum a M) - H + 1
                                                                                                                    theorem Erdos346.indexedInitialTailSeed_of_cover_ge_beforeBudgetNeed_and_tail_surplus {a : } {F : Set } {H M T start : } (hF : F Set.Iic M) (hcover : CoversInterval a F M H T) (hHT : H T) (hMstart : M < start) (hT : beforeBudgetNeed a H start T) (hsurplus_from : ∀ (n : ), start nbudgetBase a H M T + a n + a (n + 1) fullPrefixSum a n) :
                                                                                                                    IndexedInitialTailSeed a F H M T start
                                                                                                                    theorem Erdos346.indexedPartialBudgetSeed_of_large_cover_and_tail_surplus {a : } {H M T start : } (hmono : StrictMono a) (hcover : CoversInterval a Set.univ M H T) (hHT : H T) (hMstart : M < start) (hTlarge : H + a start T) (hsurplus_from : ∀ (n : ), start nbudgetBase a H M T + a n + a (n + 1) fullPrefixSum a n) :
                                                                                                                    theorem Erdos346.indexedPartialBudgetSeed_of_cover_ge_beforeBudgetNeed_and_tail_surplus {a : } {H M T start : } (hcover : CoversInterval a Set.univ M H T) (hHT : H T) (hMstart : M < start) (hT : beforeBudgetNeed a H start T) (hsurplus_from : ∀ (n : ), start nbudgetBase a H M T + a n + a (n + 1) fullPrefixSum a n) :
                                                                                                                    theorem Erdos346.prefix_cover_of_complete_avoiding_singleton_of_lt_next_next {a : } {H M T : } (hmono : StrictMono a) (hcomplete : ∀ (t : ), H tt subsetSums a {M + 1}) (hTlt : T < a (M + 2)) :
                                                                                                                    theorem Erdos346.exists_prefix_cover_of_finiteDeletionComplete_avoiding_singleton {a : } (hmono : StrictMono a) (hfinite : FiniteDeletionComplete a) (M : ) :
                                                                                                                    ∃ (H : ), ∀ (T : ), H TT < a (M + 2)CoversInterval a Set.univ M H T
                                                                                                                    theorem Erdos346.tail_pair_surplus_of_initial_and_two_step_le {a : } {C start : } (hinit : C + a start + a (start + 1) fullPrefixSum a start) (hstep : ∀ (n : ), start na (n + 2) a n + a (n + 1)) (n : ) :
                                                                                                                    start nC + a n + a (n + 1) fullPrefixSum a n
                                                                                                                    theorem Erdos346.indexedPartialBudgetSeed_of_next_next_cover {a : } {H M : } (hcover : CoversInterval a Set.univ M H (a (M + 2) - 1)) (hHT : H a (M + 2) - 1) (hkeep : H + a (M + 1) a (M + 2)) (hsurplus_from : ∀ (n : ), M + 2 nbudgetBase a H M (a (M + 2) - 1) + a n + a (n + 1) fullPrefixSum a n) :
                                                                                                                    IndexedPartialBudgetSeed a H M (a (M + 2) - 1) (M + 2)
                                                                                                                    theorem Erdos346.indexedPartialBudgetSeed_of_next_next_cover_and_two_step_tail {a : } {H M : } (hcover : CoversInterval a Set.univ M H (a (M + 2) - 1)) (hHT : H a (M + 2) - 1) (hkeep : H + a (M + 1) a (M + 2)) (hinit : budgetBase a H M (a (M + 2) - 1) + a (M + 2) + a (M + 3) fullPrefixSum a (M + 2)) (hstep : ∀ (n : ), M + 2 na (n + 2) a n + a (n + 1)) :
                                                                                                                    IndexedPartialBudgetSeed a H M (a (M + 2) - 1) (M + 2)
                                                                                                                    theorem Erdos346.budgetBase_next_next_initial_surplus_of_pair_and_margin {a : } {H M : } (hA2pos : 0 < a (M + 2)) (hpair : a (M + 2) + a (M + 3) fullPrefixSum a (M + 2)) (hmargin : H + a (M + 3) a (M + 1) + a (M + 2)) :
                                                                                                                    budgetBase a H M (a (M + 2) - 1) + a (M + 2) + a (M + 3) fullPrefixSum a (M + 2)
                                                                                                                    theorem Erdos346.indexedPartialBudgetSeed_of_next_next_cover_and_margin_tail {a : } {H M : } (hpos : ∀ (n : ), 0 < a n) (hcover : CoversInterval a Set.univ M H (a (M + 2) - 1)) (hHT : H a (M + 2) - 1) (hkeep : H + a (M + 1) a (M + 2)) (hpair : a (M + 2) + a (M + 3) fullPrefixSum a (M + 2)) (hmargin : H + a (M + 3) a (M + 1) + a (M + 2)) (hstep : ∀ (n : ), M + 2 na (n + 2) a n + a (n + 1)) :
                                                                                                                    IndexedPartialBudgetSeed a H M (a (M + 2) - 1) (M + 2)
                                                                                                                    theorem Erdos346.indexedPartialBudgetSeed_of_next_next_cover_and_numeric_conditions {a : } {H M : } (hpos : ∀ (n : ), 0 < a n) (hcover : CoversInterval a Set.univ M H (a (M + 2) - 1)) (hHT : H a (M + 2) - 1) (hnum : H + a (M + 1) a (M + 2) a (M + 2) + a (M + 3) fullPrefixSum a (M + 2) H + a (M + 3) a (M + 1) + a (M + 2) ∀ (n : ), M + 2 na (n + 2) a n + a (n + 1)) :
                                                                                                                    IndexedPartialBudgetSeed a H M (a (M + 2) - 1) (M + 2)
                                                                                                                    theorem Erdos346.indexedInitialTailSeed_of_next_next_cover {a : } {F : Set } {H M : } (hF : F Set.Iic M) (hcover : CoversInterval a F M H (a (M + 2) - 1)) (hHT : H a (M + 2) - 1) (hkeep : H + a (M + 1) a (M + 2)) (hsurplus_from : ∀ (n : ), M + 2 nbudgetBase a H M (a (M + 2) - 1) + a n + a (n + 1) fullPrefixSum a n) :
                                                                                                                    IndexedInitialTailSeed a F H M (a (M + 2) - 1) (M + 2)
                                                                                                                    theorem Erdos346.indexedInitialTailSeed_of_next_next_cover_and_two_step_tail {a : } {F : Set } {H M : } (hF : F Set.Iic M) (hcover : CoversInterval a F M H (a (M + 2) - 1)) (hHT : H a (M + 2) - 1) (hkeep : H + a (M + 1) a (M + 2)) (hinit : budgetBase a H M (a (M + 2) - 1) + a (M + 2) + a (M + 3) fullPrefixSum a (M + 2)) (hstep : ∀ (n : ), M + 2 na (n + 2) a n + a (n + 1)) :
                                                                                                                    IndexedInitialTailSeed a F H M (a (M + 2) - 1) (M + 2)
                                                                                                                    theorem Erdos346.indexedInitialTailSeed_of_next_next_cover_and_margin_tail {a : } {F : Set } {H M : } (hpos : ∀ (n : ), 0 < a n) (hF : F Set.Iic M) (hcover : CoversInterval a F M H (a (M + 2) - 1)) (hHT : H a (M + 2) - 1) (hkeep : H + a (M + 1) a (M + 2)) (hpair : a (M + 2) + a (M + 3) fullPrefixSum a (M + 2)) (hmargin : H + a (M + 3) a (M + 1) + a (M + 2)) (hstep : ∀ (n : ), M + 2 na (n + 2) a n + a (n + 1)) :
                                                                                                                    IndexedInitialTailSeed a F H M (a (M + 2) - 1) (M + 2)
                                                                                                                    theorem Erdos346.indexedInitialTailSeed_of_next_next_cover_and_numeric_conditions {a : } {F : Set } {H M : } (hpos : ∀ (n : ), 0 < a n) (hF : F Set.Iic M) (hcover : CoversInterval a F M H (a (M + 2) - 1)) (hHT : H a (M + 2) - 1) (hnum : H + a (M + 1) a (M + 2) a (M + 2) + a (M + 3) fullPrefixSum a (M + 2) H + a (M + 3) a (M + 1) + a (M + 2) ∀ (n : ), M + 2 na (n + 2) a n + a (n + 1)) :
                                                                                                                    IndexedInitialTailSeed a F H M (a (M + 2) - 1) (M + 2)
                                                                                                                    theorem Erdos346.prefix_cover_of_complete_avoiding_finite_singleton_of_lt_next_next {a : } {F : Set } {H M T : } (hmono : StrictMono a) (hcomplete : ∀ (t : ), H tt subsetSums a (F {M + 1})) (hTlt : T < a (M + 2)) :
                                                                                                                    theorem Erdos346.indexedInitialTailSeed_of_finite_singleton_complete_and_numeric_conditions {a : } {F : Set } {H M : } (hmono : StrictMono a) (hpos : ∀ (n : ), 0 < a n) (hF : F Set.Iic M) (hcomplete : ∀ (t : ), H tt subsetSums a (F {M + 1})) (hnum : H + a (M + 1) a (M + 2) a (M + 2) + a (M + 3) fullPrefixSum a (M + 2) H + a (M + 3) a (M + 1) + a (M + 2) ∀ (n : ), M + 2 na (n + 2) a n + a (n + 1)) :
                                                                                                                    IndexedInitialTailSeed a F H M (a (M + 2) - 1) (M + 2)
                                                                                                                    theorem Erdos346.exists_prefix_cover_avoiding_finite_singleton_of_finiteDeletionComplete {a : } {F : Set } (hmono : StrictMono a) (hpos : ∀ (n : ), 0 < a n) (hfinite : FiniteDeletionComplete a) (hFfinite : F.Finite) (M : ) :
                                                                                                                    ∃ (H : ), CoversInterval a F M H (a (M + 2) - 1)
                                                                                                                    theorem Erdos346.eventualFinSingletonSmallPrefixCover_of_uniformFinSingletonPrefixCover {a : } {ρ : } (hmono : StrictMono a) (hpos : ∀ (n : ), 0 < a n) (hratioGap : HasUniformRatioGap a) (hρ1 : 1 < ρ) (hρφ : ρ < Real.goldenRatio) (hupper : ∀ᶠ (n : ) in Filter.atTop, quotient a n < ρ) (hprefix : UniformFinSingletonPrefixCover a) :
                                                                                                                    theorem Erdos346.first_seed_keep_iff_leastPrefixCoverThreshold_le_nextSeedMargin {a : } {I : Set } {M : } (hnext : a (M + 1) a (M + 2)) :
                                                                                                                    leastPrefixCoverThreshold a I M (a (M + 2) - 1) + a (M + 1) a (M + 2) leastPrefixCoverThreshold a I M (a (M + 2) - 1) nextSeedMargin a M
                                                                                                                    theorem Erdos346.first_prefix_cover_of_first_seed_keep {a : } {I : Set } {M : } (hnext : a (M + 1) a (M + 2)) (hkeep : leastPrefixCoverThreshold a I M (a (M + 2) - 1) + a (M + 1) a (M + 2)) :
                                                                                                                    CoversInterval a I M (nextSeedMargin a M) (a (M + 2) - 1)
                                                                                                                    theorem Erdos346.first_seed_keep_of_first_prefix_cover {a : } {I : Set } {M : } (hnext : a (M + 1) a (M + 2)) (hcover : CoversInterval a I M (nextSeedMargin a M) (a (M + 2) - 1)) :
                                                                                                                    leastPrefixCoverThreshold a I M (a (M + 2) - 1) + a (M + 1) a (M + 2)
                                                                                                                    theorem Erdos346.eventual_first_prefix_cover_failure_of_not_arbLarge_fixedBase {a : } {F : Set } (hnot : ¬∀ (N : ), ∃ (M : ), N M F Set.Iic M CoversInterval a F M (nextSeedMargin a M) (a (M + 2) - 1)) :
                                                                                                                    ∃ (N : ), ∀ (M : ), N MF Set.Iic M¬CoversInterval a F M (nextSeedMargin a M) (a (M + 2) - 1)
                                                                                                                    theorem Erdos346.evt_prefix_holes_of_not_arbLargeFirstPrefixCover_fixedBase {a : } {F : Set } (hFfinite : F.Finite) (hnot : ¬∀ (N : ), ∃ (M : ), N M F Set.Iic M CoversInterval a F M (nextSeedMargin a M) (a (M + 2) - 1)) :
                                                                                                                    ∀ᶠ (M : ) in Filter.atTop, ∃ (t : ), nextSeedMargin a M t t a (M + 2) - 1 tprefixSubsetSums a F M
                                                                                                                    theorem Erdos346.evt_finite_singleton_holes_of_not_arbLargeFirstPrefixCover_fixedBase {a : } {F : Set } (hmono : StrictMono a) (hpos : ∀ (n : ), 0 < a n) (hFfinite : F.Finite) (hnot : ¬∀ (N : ), ∃ (M : ), N M F Set.Iic M CoversInterval a F M (nextSeedMargin a M) (a (M + 2) - 1)) :
                                                                                                                    ∀ᶠ (M : ) in Filter.atTop, ta (M + 2) - 1, t < a (M + 2) tsubsetSums a (F {M + 1}) nextSeedMargin a M t
                                                                                                                    theorem Erdos346.evt_pair_seed_margin_of_evtQuotientLtGold {a : } {ρ : } (hpos : ∀ (n : ), 0 < a n) (hρ1 : 1 < ρ) (hρφ : ρ < Real.goldenRatio) (hupper : ∀ᶠ (n : ) in Filter.atTop, quotient a n < ρ) :
                                                                                                                    ∀ᶠ (M : ) in Filter.atTop, a (M + 3) a (M + 1) + a (M + 2)
                                                                                                                    theorem Erdos346.evt_nextSeedMargin_ge_of_uniformRatioGap {a : } (hmono : StrictMono a) (hpos : ∀ (n : ), 0 < a n) (hgap : HasUniformRatioGap a) (C : ) :
                                                                                                                    theorem Erdos346.evt_pairSeedMargin_ge_of_evtQuotientLtGold {a : } {ρ : } (hmono : StrictMono a) (hpos : ∀ (n : ), 0 < a n) (hρ1 : 1 < ρ) (hρφ : ρ < Real.goldenRatio) (hupper : ∀ᶠ (n : ) in Filter.atTop, quotient a n < ρ) (C : ) :
                                                                                                                    theorem Erdos346.evt_prefix_shift_gaps_of_not_arbLargeFirstPrefixCover_fixedBase {a : } {F : Set } (hmono : StrictMono a) (hpos : ∀ (n : ), 0 < a n) (hgap : HasUniformRatioGap a) (hfinite : FiniteDeletionComplete a) (hFfinite : F.Finite) (hnot : ¬∀ (N : ), ∃ (M : ), N M F Set.Iic M CoversInterval a F M (nextSeedMargin a M) (a (M + 2) - 1)) :
                                                                                                                    ∀ᶠ (M : ) in Filter.atTop, sprefixSubsetSums a F M, s < nextSeedMargin a M a (M + 1) + s < a (M + 2) a (M + 1) + sprefixSubsetSums a F M
                                                                                                                    theorem Erdos346.evt_not_firstWindowShiftClosed_of_not_arbLargeFirstPrefixCover_fixedBase {a : } {F : Set } (hmono : StrictMono a) (hpos : ∀ (n : ), 0 < a n) (hgap : HasUniformRatioGap a) (hfinite : FiniteDeletionComplete a) (hFfinite : F.Finite) (hnot : ¬∀ (N : ), ∃ (M : ), N M F Set.Iic M CoversInterval a F M (nextSeedMargin a M) (a (M + 2) - 1)) :
                                                                                                                    theorem Erdos346.evt_not_finSingletonCompleteBelowPrev_of_not_arbLargeFirstPrefixCover_fixedBase {a : } {F : Set } (hmono : StrictMono a) (hpos : ∀ (n : ), 0 < a n) (hgap : HasUniformRatioGap a) (hfinite : FiniteDeletionComplete a) (hFfinite : F.Finite) (hnot : ¬∀ (N : ), ∃ (M : ), N M F Set.Iic M CoversInterval a F M (nextSeedMargin a M) (a (M + 2) - 1)) :
                                                                                                                    theorem Erdos346.evt_prev_lt_finSingletonCompleteThreshold_of_not_arbLargeFirstPrefixCover_fixedBase {a : } {F : Set } (hmono : StrictMono a) (hpos : ∀ (n : ), 0 < a n) (hgap : HasUniformRatioGap a) (hfinite : FiniteDeletionComplete a) (hFfinite : F.Finite) (hnot : ¬∀ (N : ), ∃ (M : ), N M F Set.Iic M CoversInterval a F M (nextSeedMargin a M) (a (M + 2) - 1)) :
                                                                                                                    ∀ᶠ (M : ) in Filter.atTop, a (M + 1) < finSingletonCompleteThreshold a hfinite hFfinite M
                                                                                                                    theorem Erdos346.evt_finSingletonCompleteThreshold_holes_of_not_arbLargeFirstPrefixCover_fixedBase {a : } {F : Set } (hmono : StrictMono a) (hpos : ∀ (n : ), 0 < a n) (hgap : HasUniformRatioGap a) (hfinite : FiniteDeletionComplete a) (hFfinite : F.Finite) (hnot : ¬∀ (N : ), ∃ (M : ), N M F Set.Iic M CoversInterval a F M (nextSeedMargin a M) (a (M + 2) - 1)) :
                                                                                                                    ∀ᶠ (M : ) in Filter.atTop, ∃ (t : ), a (M + 1) t tsubsetSums a (F {M + 1})
                                                                                                                    theorem Erdos346.evt_pred_finSingletonCompleteThreshold_holes_of_not_arbLargeFirstPrefixCover_fixedBase {a : } {F : Set } (hmono : StrictMono a) (hpos : ∀ (n : ), 0 < a n) (hgap : HasUniformRatioGap a) (hfinite : FiniteDeletionComplete a) (hFfinite : F.Finite) (hnot : ¬∀ (N : ), ∃ (M : ), N M F Set.Iic M CoversInterval a F M (nextSeedMargin a M) (a (M + 2) - 1)) :
                                                                                                                    ∀ᶠ (M : ) in Filter.atTop, ∃ (t : ), t = finSingletonCompleteThreshold a hfinite hFfinite M - 1 a (M + 1) t tsubsetSums a (F {M + 1})
                                                                                                                    theorem Erdos346.evt_predThreshold_small_forces_prefix_shift_gap_of_not_arbLargeFirstPrefixCover_fixedBase {a : } {F : Set } (hmono : StrictMono a) (hpos : ∀ (n : ), 0 < a n) (hgap : HasUniformRatioGap a) (hfinite : FiniteDeletionComplete a) (hFfinite : F.Finite) (hnot : ¬∀ (N : ), ∃ (M : ), N M F Set.Iic M CoversInterval a F M (nextSeedMargin a M) (a (M + 2) - 1)) :
                                                                                                                    ∀ᶠ (M : ) in Filter.atTop, finSingletonCompleteThreshold a hfinite hFfinite M a (M + 2)sprefixSubsetSums a F M, s < nextSeedMargin a M a (M + 1) + s < a (M + 2) a (M + 1) + sprefixSubsetSums a F M
                                                                                                                    theorem Erdos346.evt_threshold_large_or_prefix_shift_gap_of_not_arbLargeFirstPrefixCover_fixedBase {a : } {F : Set } (hmono : StrictMono a) (hpos : ∀ (n : ), 0 < a n) (hgap : HasUniformRatioGap a) (hfinite : FiniteDeletionComplete a) (hFfinite : F.Finite) (hnot : ¬∀ (N : ), ∃ (M : ), N M F Set.Iic M CoversInterval a F M (nextSeedMargin a M) (a (M + 2) - 1)) :
                                                                                                                    ∀ᶠ (M : ) in Filter.atTop, a (M + 2) < finSingletonCompleteThreshold a hfinite hFfinite M sprefixSubsetSums a F M, s < nextSeedMargin a M a (M + 1) + s < a (M + 2) a (M + 1) + sprefixSubsetSums a F M
                                                                                                                    theorem Erdos346.evt_offset_threshold_or_shifted_prefix_of_threshold_escape {a : } {F : Set } (hmono : StrictMono a) (hpos : ∀ (n : ), 0 < a n) (hfinite : FiniteDeletionComplete a) (hFfinite : F.Finite) (k : ) (hk : 2 k) (hescape : ∀ᶠ (M : ) in Filter.atTop, a (M + k) < finSingletonCompleteThreshold a hfinite hFfinite M) :
                                                                                                                    ∀ᶠ (M : ) in Filter.atTop, a (M + k + 1) < finSingletonCompleteThreshold a hfinite hFfinite M ∃ (t : ) (s : ), t = finSingletonCompleteThreshold a hfinite hFfinite M - 1 a (M + k) t t < a (M + k + 1) tsubsetSums a (F {M + 1}) s = t - a (M + 1) s prefixSubsetSums a (F {M + 1}) (M + k)
                                                                                                                    theorem Erdos346.evt_next3_threshold_or_shifted_prefix_of_threshold_escape {a : } {F : Set } (hmono : StrictMono a) (hpos : ∀ (n : ), 0 < a n) (hfinite : FiniteDeletionComplete a) (hFfinite : F.Finite) (hescape : ∀ᶠ (M : ) in Filter.atTop, a (M + 2) < finSingletonCompleteThreshold a hfinite hFfinite M) :
                                                                                                                    ∀ᶠ (M : ) in Filter.atTop, a (M + 3) < finSingletonCompleteThreshold a hfinite hFfinite M ∃ (t : ) (s : ), t = finSingletonCompleteThreshold a hfinite hFfinite M - 1 a (M + 2) t t < a (M + 3) tsubsetSums a (F {M + 1}) s = t - a (M + 1) s prefixSubsetSums a (F {M + 1}) (M + 2)
                                                                                                                    theorem Erdos346.not_arbLargeFinSingletonCompleteBelowPrev_fixedBase_of_not_arbLargeFirstPrefixCover_fixedBase {a : } {F : Set } (hmono : StrictMono a) (hpos : ∀ (n : ), 0 < a n) (hgap : HasUniformRatioGap a) (hfinite : FiniteDeletionComplete a) (hFfinite : F.Finite) (hnot : ¬∀ (N : ), ∃ (M : ), N M F Set.Iic M CoversInterval a F M (nextSeedMargin a M) (a (M + 2) - 1)) :
                                                                                                                    ¬∀ (N : ), ∃ (M : ), N M F Set.Iic M FinSingletonCompleteBelowPrev a F M
                                                                                                                    theorem Erdos346.nextSeedMargin_le_prev_of_two_step_le {a : } {M : } (hmono : StrictMono a) (htwo : a (M + 2) a M + a (M + 1)) :
                                                                                                                    nextSeedMargin a M a (M + 1)
                                                                                                                    theorem Erdos346.evt_nextSeedMargin_le_prev_of_evtQuotientLtGold {a : } {ρ : } (hmono : StrictMono a) (hpos : ∀ (n : ), 0 < a n) (hρ1 : 1 < ρ) (hρφ : ρ < Real.goldenRatio) (hupper : ∀ᶠ (n : ) in Filter.atTop, quotient a n < ρ) :
                                                                                                                    theorem Erdos346.not_seed_keep_of_nextSeedMargin_lt_least {a : } {F : Set } {M : } (hnext : a (M + 1) a (M + 2)) (hlt : nextSeedMargin a M < leastPrefixCoverThreshold a F M (a (M + 2) - 1)) :
                                                                                                                    ¬leastPrefixCoverThreshold a F M (a (M + 2) - 1) + a (M + 1) a (M + 2)
                                                                                                                    theorem Erdos346.evt_finite_singleton_holes_of_eventual_seed_margin_failure {a : } {F : Set } (hmono : StrictMono a) (hpos : ∀ (n : ), 0 < a n) (hFfinite : F.Finite) (hbad : ∃ (N : ), ∀ (M : ), N MF Set.Iic M¬(leastPrefixCoverThreshold a F M (a (M + 2) - 1) + a (M + 1) a (M + 2) leastPrefixCoverThreshold a F M (a (M + 2) - 1) + a (M + 3) a (M + 1) + a (M + 2))) (hnext : ∀ᶠ (M : ) in Filter.atTop, a (M + 1) a (M + 2)) (hpair : ∀ᶠ (M : ) in Filter.atTop, a (M + 3) a (M + 1) + a (M + 2)) :
                                                                                                                    ∀ᶠ (M : ) in Filter.atTop, ta (M + 2) - 1, t < a (M + 2) tsubsetSums a (F {M + 1}) (nextSeedMargin a M t pairSeedMargin a M t)
                                                                                                                    theorem Erdos346.evt_finite_singleton_holes_of_eventual_seed_margin_failure_of_evtQuotientLtGold {a : } {F : Set } {ρ : } (hmono : StrictMono a) (hpos : ∀ (n : ), 0 < a n) (hFfinite : F.Finite) (hρ1 : 1 < ρ) (hρφ : ρ < Real.goldenRatio) (hupper : ∀ᶠ (n : ) in Filter.atTop, quotient a n < ρ) (hbad : ∃ (N : ), ∀ (M : ), N MF Set.Iic M¬(leastPrefixCoverThreshold a F M (a (M + 2) - 1) + a (M + 1) a (M + 2) leastPrefixCoverThreshold a F M (a (M + 2) - 1) + a (M + 3) a (M + 1) + a (M + 2))) :
                                                                                                                    ∀ᶠ (M : ) in Filter.atTop, ta (M + 2) - 1, t < a (M + 2) tsubsetSums a (F {M + 1}) (nextSeedMargin a M t pairSeedMargin a M t)
                                                                                                                    theorem Erdos346.eventual_seed_margin_failure_of_not_arbLargeLeastSmall_fixedBase {a : } {F : Set } (hnot : ¬∀ (N : ), ∃ (M : ), N M F Set.Iic M leastPrefixCoverThreshold a F M (a (M + 2) - 1) + a (M + 1) a (M + 2) leastPrefixCoverThreshold a F M (a (M + 2) - 1) + a (M + 3) a (M + 1) + a (M + 2)) :
                                                                                                                    ∃ (N : ), ∀ (M : ), N MF Set.Iic M¬(leastPrefixCoverThreshold a F M (a (M + 2) - 1) + a (M + 1) a (M + 2) leastPrefixCoverThreshold a F M (a (M + 2) - 1) + a (M + 3) a (M + 1) + a (M + 2))
                                                                                                                    theorem Erdos346.evt_finite_singleton_holes_of_not_arbLargeLeastSmall_fixedBase_of_evtQuotientLtGold {a : } {F : Set } {ρ : } (hmono : StrictMono a) (hpos : ∀ (n : ), 0 < a n) (hFfinite : F.Finite) (hρ1 : 1 < ρ) (hρφ : ρ < Real.goldenRatio) (hupper : ∀ᶠ (n : ) in Filter.atTop, quotient a n < ρ) (hnot : ¬∀ (N : ), ∃ (M : ), N M F Set.Iic M leastPrefixCoverThreshold a F M (a (M + 2) - 1) + a (M + 1) a (M + 2) leastPrefixCoverThreshold a F M (a (M + 2) - 1) + a (M + 3) a (M + 1) + a (M + 2)) :
                                                                                                                    ∀ᶠ (M : ) in Filter.atTop, ta (M + 2) - 1, t < a (M + 2) tsubsetSums a (F {M + 1}) (nextSeedMargin a M t pairSeedMargin a M t)
                                                                                                                    theorem Erdos346.evt_shifted_prefix_holes_of_not_arbLargeLeastSmall_fixedBase {a : } {F : Set } {ρ : } (hmono : StrictMono a) (hpos : ∀ (n : ), 0 < a n) (hgap : HasUniformRatioGap a) (hfinite : FiniteDeletionComplete a) (hFfinite : F.Finite) (hρ1 : 1 < ρ) (hρφ : ρ < Real.goldenRatio) (hupper : ∀ᶠ (n : ) in Filter.atTop, quotient a n < ρ) (hnot : ¬∀ (N : ), ∃ (M : ), N M F Set.Iic M leastPrefixCoverThreshold a F M (a (M + 2) - 1) + a (M + 1) a (M + 2) leastPrefixCoverThreshold a F M (a (M + 2) - 1) + a (M + 3) a (M + 1) + a (M + 2)) :
                                                                                                                    ∀ᶠ (M : ) in Filter.atTop, ta (M + 2) - 1, t < a (M + 2) tsubsetSums a (F {M + 1}) a (M + 1) t t - a (M + 1) prefixSubsetSums a F M (nextSeedMargin a M t pairSeedMargin a M t)
                                                                                                                    theorem Erdos346.evt_prefix_shift_gaps_of_not_arbLargeLeastSmall_fixedBase {a : } {F : Set } {ρ : } (hmono : StrictMono a) (hpos : ∀ (n : ), 0 < a n) (hgap : HasUniformRatioGap a) (hfinite : FiniteDeletionComplete a) (hFfinite : F.Finite) (hρ1 : 1 < ρ) (hρφ : ρ < Real.goldenRatio) (hupper : ∀ᶠ (n : ) in Filter.atTop, quotient a n < ρ) (hnot : ¬∀ (N : ), ∃ (M : ), N M F Set.Iic M leastPrefixCoverThreshold a F M (a (M + 2) - 1) + a (M + 1) a (M + 2) leastPrefixCoverThreshold a F M (a (M + 2) - 1) + a (M + 3) a (M + 1) + a (M + 2)) :
                                                                                                                    ∀ᶠ (M : ) in Filter.atTop, sprefixSubsetSums a F M, s < nextSeedMargin a M a (M + 1) + s < a (M + 2) a (M + 1) + sprefixSubsetSums a F M
                                                                                                                    theorem Erdos346.evt_nextSeedMargin_lt_least_of_not_arbLargeLeastSmall_fixedBase {a : } {F : Set } {ρ : } (hmono : StrictMono a) (hpos : ∀ (n : ), 0 < a n) (hgap : HasUniformRatioGap a) (hfinite : FiniteDeletionComplete a) (hFfinite : F.Finite) (hρ1 : 1 < ρ) (hρφ : ρ < Real.goldenRatio) (hupper : ∀ᶠ (n : ) in Filter.atTop, quotient a n < ρ) (hnot : ¬∀ (N : ), ∃ (M : ), N M F Set.Iic M leastPrefixCoverThreshold a F M (a (M + 2) - 1) + a (M + 1) a (M + 2) leastPrefixCoverThreshold a F M (a (M + 2) - 1) + a (M + 3) a (M + 1) + a (M + 2)) :
                                                                                                                    theorem Erdos346.evt_not_seed_keep_of_not_arbLargeLeastSmall_fixedBase {a : } {F : Set } {ρ : } (hmono : StrictMono a) (hpos : ∀ (n : ), 0 < a n) (hgap : HasUniformRatioGap a) (hfinite : FiniteDeletionComplete a) (hFfinite : F.Finite) (hρ1 : 1 < ρ) (hρφ : ρ < Real.goldenRatio) (hupper : ∀ᶠ (n : ) in Filter.atTop, quotient a n < ρ) (hnot : ¬∀ (N : ), ∃ (M : ), N M F Set.Iic M leastPrefixCoverThreshold a F M (a (M + 2) - 1) + a (M + 1) a (M + 2) leastPrefixCoverThreshold a F M (a (M + 2) - 1) + a (M + 3) a (M + 1) + a (M + 2)) :
                                                                                                                    ∀ᶠ (M : ) in Filter.atTop, ¬leastPrefixCoverThreshold a F M (a (M + 2) - 1) + a (M + 1) a (M + 2)
                                                                                                                    theorem Erdos346.indexedPartialBudgetSeed_of_singleton_complete_and_numeric_conditions {a : } {H M : } (hmono : StrictMono a) (hpos : ∀ (n : ), 0 < a n) (hcomplete : ∀ (t : ), H tt subsetSums a {M + 1}) (hnum : H + a (M + 1) a (M + 2) a (M + 2) + a (M + 3) fullPrefixSum a (M + 2) H + a (M + 3) a (M + 1) + a (M + 2) ∀ (n : ), M + 2 na (n + 2) a n + a (n + 1)) :
                                                                                                                    IndexedPartialBudgetSeed a H M (a (M + 2) - 1) (M + 2)
                                                                                                                    theorem Erdos346.exists_indexedPartialBudgetSeed_of_eventual_singleton_complete {a : } {ρ : } (hmono : StrictMono a) (hpos : ∀ (n : ), 0 < a n) (hratioGap : HasUniformRatioGap a) (hρ1 : 1 < ρ) (hρφ : ρ < Real.goldenRatio) (hupper : ∀ᶠ (n : ) in Filter.atTop, quotient a n < ρ) (hsingleton : ∃ (H : ), ∀ᶠ (M : ) in Filter.atTop, ∀ (t : ), H tt subsetSums a {M + 1}) :
                                                                                                                    ∃ (H : ) (M : ) (T : ) (start : ), IndexedPartialBudgetSeed a H M T start
                                                                                                                    theorem Erdos346.exists_indexedInitialTailSeed_of_eventual_finite_singleton_complete {a : } {ρ : } {F : Set } (hmono : StrictMono a) (hpos : ∀ (n : ), 0 < a n) (hratioGap : HasUniformRatioGap a) (hρ1 : 1 < ρ) (hρφ : ρ < Real.goldenRatio) (hupper : ∀ᶠ (n : ) in Filter.atTop, quotient a n < ρ) (hFfinite : F.Finite) (hfiniteSingleton : ∃ (H : ), ∀ᶠ (M : ) in Filter.atTop, ∀ (t : ), H tt subsetSums a (F {M + 1})) :
                                                                                                                    ∃ (H : ) (M : ) (T : ) (start : ), IndexedInitialTailSeed a F H M T start
                                                                                                                    theorem Erdos346.exists_indexedInitialTailSeed_of_uniformFinSingletonPrefixCover {a : } {ρ : } (hmono : StrictMono a) (hpos : ∀ (n : ), 0 < a n) (hratioGap : HasUniformRatioGap a) (hρ1 : 1 < ρ) (hρφ : ρ < Real.goldenRatio) (hupper : ∀ᶠ (n : ) in Filter.atTop, quotient a n < ρ) (hprefix : UniformFinSingletonPrefixCover a) :
                                                                                                                    ∃ (F : Set ) (H : ) (M : ) (T : ) (start : ), IndexedInitialTailSeed a F H M T start
                                                                                                                    theorem Erdos346.exists_indexedInitialTailSeed_of_arbLargeFinSingletonSmallPrefixCover {a : } {ρ : } (hpos : ∀ (n : ), 0 < a n) (hρ1 : 1 < ρ) (hρφ : ρ < Real.goldenRatio) (hupper : ∀ᶠ (n : ) in Filter.atTop, quotient a n < ρ) (hsmall : ArbitrarilyLargeFinSingletonSmallPrefixCover a) :
                                                                                                                    ∃ (F : Set ) (H : ) (M : ) (T : ) (start : ), IndexedInitialTailSeed a F H M T start
                                                                                                                    theorem Erdos346.exists_indexedInitialTailSeed_of_eventualFinSingletonSmallPrefixCover {a : } {ρ : } (hpos : ∀ (n : ), 0 < a n) (hρ1 : 1 < ρ) (hρφ : ρ < Real.goldenRatio) (hupper : ∀ᶠ (n : ) in Filter.atTop, quotient a n < ρ) (hsmall : EventualFinSingletonSmallPrefixCover a) :
                                                                                                                    ∃ (F : Set ) (H : ) (M : ) (T : ) (start : ), IndexedInitialTailSeed a F H M T start
                                                                                                                    theorem Erdos346.budgetBase_next_next_eq_zero_of_le {a : } {H M : } (hpos : 0 < a (M + 2)) (hbase : fullPrefixSum a M + H a (M + 2)) :
                                                                                                                    budgetBase a H M (a (M + 2) - 1) = 0
                                                                                                                    theorem Erdos346.indexedPartialBudgetSeed_of_next_next_cover_and_zero_base_tail {a : } {H M : } (hpos : ∀ (n : ), 0 < a n) (hcover : CoversInterval a Set.univ M H (a (M + 2) - 1)) (hHT : H a (M + 2) - 1) (hkeep : H + a (M + 1) a (M + 2)) (hbase : fullPrefixSum a M + H a (M + 2)) (hpair : a (M + 2) + a (M + 3) fullPrefixSum a (M + 2)) (hstep : ∀ (n : ), M + 2 na (n + 2) a n + a (n + 1)) :
                                                                                                                    IndexedPartialBudgetSeed a H M (a (M + 2) - 1) (M + 2)
                                                                                                                    structure Erdos346.IndexedPartialBudgetSeedParameters (a : ) (H M T start : ) :

                                                                                                                    The explicit finite/tail conditions that are sufficient to produce an IndexedPartialBudgetSeed. This packages the remaining fixed-point choice: find a prefix cover whose upper endpoint is large enough for the finite before-budget, and whose budgetBase surplus starts before start.

                                                                                                                    Instances For
                                                                                                                      theorem Erdos346.indexedPartialBudgetSeed_of_parameters {a : } {H M T start : } (hparams : IndexedPartialBudgetSeedParameters a H M T start) :
                                                                                                                      theorem Erdos346.exists_indexedPartialBudgetData_of_seed {a : } {H M T start : } (hmono : StrictMono a) (hsurplus : ∀ (R : ), ∀ᶠ (n : ) in Filter.atTop, R + a n + a (n + 1) fullPrefixSum a n) (hseed : IndexedPartialBudgetSeed a H M T start) :
                                                                                                                      ∃ (b : ), CoversInterval a Set.univ M H T IndexedPartialBudgetData a b H M T
                                                                                                                      theorem Erdos346.exists_indexedPartialBudgetInitialTailData_of_seed {a : } {F : Set } {H M T start : } (hmono : StrictMono a) (hsurplus : ∀ (R : ), ∀ᶠ (n : ) in Filter.atTop, R + a n + a (n + 1) fullPrefixSum a n) (hseed : IndexedInitialTailSeed a F H M T start) :
                                                                                                                      ∃ (b : ), IndexedPartialBudgetInitialTailData a F b H M T
                                                                                                                      theorem Erdos346.brownBudgetData_of_indexedBudgetData {a b : } {H M T : } (hdata : IndexedBudgetData a b H M T) :
                                                                                                                      structure Erdos346.IndexedBlockControlData (a b e : ) (H M T C : ) :

                                                                                                                      Block version of the remaining deletion-control data. Blocks allow the construction to delete a term and wait until the current term is large enough before the next kept-extension step.

                                                                                                                      Instances For
                                                                                                                        theorem Erdos346.deletedPrefixSum_ge_add_of_two_mem {a : } {D : Set } {n i j : } (hi_le : i n) (hj_le : j n) (hij : i j) (hiD : i D) (hjD : j D) :
                                                                                                                        a i + a j deletedPrefixSum a D n
                                                                                                                        theorem Erdos346.not_indexedBlockControlData_of_pos {a b e : } {H M T C : } (hpos : ∀ (n : ), 0 < a n) :

                                                                                                                        The earlier block-control condition is too strong: at the end of the second deleted block the deleted prefix already contains a positive earlier deleted term plus the current block endpoint.

                                                                                                                        theorem Erdos346.brownTailData_of_brownBudgetData {a : } {D : Set } {H M T : } (hdata : BrownBudgetData a D H M T) :
                                                                                                                        BrownTailData a D H M T
                                                                                                                        theorem Erdos346.brownDeletionData_of_brownStepData {a : } {D : Set } {H M : } (hpos : ∀ (n : ), 0 < a n) (hdata : BrownStepData a D H M) :
                                                                                                                        theorem Erdos346.coversInterval_keptPrefixSum_of_brown {a : } {D : Set } {H M n : } (hdata : BrownDeletionData a D H M) (hn : M n) :
                                                                                                                        theorem Erdos346.coversInterval_seedBound_of_brownSeed {a : } {D : Set } {H M C n : } (hdata : BrownSeedData a D H M C) (hn : M n) :
                                                                                                                        CoversInterval a D n H (C + keptPrefixSum a D n) H C + keptPrefixSum a D n
                                                                                                                        theorem Erdos346.complete_of_brownSeedData {a : } {D : Set } {H M C : } (hpos : ∀ (n : ), 0 < a n) (hdata : BrownSeedData a D H M C) :
                                                                                                                        theorem Erdos346.coversInterval_tailBound_of_brownTail {a : } {D : Set } {H M T n : } (hcover0 : CoversInterval a Set.univ M H T) (hdata : BrownTailData a D H M T) (hn : M n) :
                                                                                                                        CoversInterval a D n H (T + (keptPrefixSum a D n - keptPrefixSum a D M)) H T + (keptPrefixSum a D n - keptPrefixSum a D M)
                                                                                                                        theorem Erdos346.complete_of_brownTailData {a : } {D : Set } {H M T : } (hpos : ∀ (n : ), 0 < a n) (hcover0 : CoversInterval a Set.univ M H T) (hdata : BrownTailData a D H M T) :
                                                                                                                        theorem Erdos346.coversInterval_tailBound_of_brownTailCover {a : } {D : Set } {H M T n : } (hdata : BrownTailCoverData a D H M T) (hn : M n) :
                                                                                                                        CoversInterval a D n H (T + (keptPrefixSum a D n - keptPrefixSum a D M)) H T + (keptPrefixSum a D n - keptPrefixSum a D M)
                                                                                                                        theorem Erdos346.complete_of_brownTailCoverData {a : } {D : Set } {H M T : } (hpos : ∀ (n : ), 0 < a n) (hdata : BrownTailCoverData a D H M T) :
                                                                                                                        theorem Erdos346.complete_of_brownBudgetCoverData {a : } {D : Set } {H M T : } (hpos : ∀ (n : ), 0 < a n) (hdata : BrownBudgetCoverData a D H M T) :
                                                                                                                        theorem Erdos346.complete_of_periodicDeletion_budget {a : } {H M T start period : } (hpos : ∀ (n : ), 0 < a n) (hperiod : 2 period) (hMstart : M < start) (hnonempty : H T) (hcover : CoversInterval a Set.univ M H T) (hbudget : ∀ (n : ), M nn + 1periodicDeletionSet start perioddeletedPrefixSum a (periodicDeletionSet start period) n + a (n + 1) T + (fullPrefixSum a n - fullPrefixSum a M) - H + 1) :
                                                                                                                        theorem Erdos346.complete_of_periodicDeletion_step {a : } {H M T start period : } (hpos : ∀ (n : ), 0 < a n) (hperiod : 2 period) (hMstart : M < start) (hnonempty : H T) (hcover : CoversInterval a Set.univ M H T) (hstep : ∀ (n : ), M nn + 1periodicDeletionSet start perioda (n + 1) T + (keptPrefixSum a (periodicDeletionSet start period) n - keptPrefixSum a (periodicDeletionSet start period) M) - H + 1) :
                                                                                                                        theorem Erdos346.complete_of_periodicDeletion_fixedBlockSurplus {a : } {H M T m : } (hpos : ∀ (n : ), 0 < a n) (hmpos : 0 < m) (hnonempty : H T) (hcover : CoversInterval a Set.univ M H T) (hbase : a (M + 1) T - H + 1) (htwo : ∀ (n : ), M na (n + 2) 2 * a (n + 1)) (hsurplus : FixedLengthBlockSurplusFrom a m (M + m + 1)) :
                                                                                                                        theorem Erdos346.infCompleteDeletion_of_evtRatioLtGold_of_geometricBlockSurplus {a : } {ρ : } {m : } (hmono : StrictMono a) (hpos : ∀ (n : ), 0 < a n) (hratioGap : HasUniformRatioGap a) (hcomplete : IsCompleteOn a Set.univ) (hmpos : 0 < m) (hρ1 : 1 < ρ) (hρφ : ρ < Real.goldenRatio) (hgeom : GeometricBlockSurplus ρ m) (hupper : ∀ᶠ (n : ) in Filter.atTop, quotient a n < ρ) :
                                                                                                                        theorem Erdos346.complete_of_indexedInitialTailSeed {a : } {F : Set } {H M T start : } (hmono : StrictMono a) (hpos : ∀ (n : ), 0 < a n) (hsurplus : ∀ (R : ), ∀ᶠ (n : ) in Filter.atTop, R + a n + a (n + 1) fullPrefixSum a n) (hseed : IndexedInitialTailSeed a F H M T start) :
                                                                                                                        theorem Erdos346.propagated_hole_step {a : } {N m y : } (hmono : StrictMono a) (hgap : a m + a (m + 1) < a (m + 2)) (hnot : ysubsetSums a (Set.Ici N)) (hylt : y < a m) (hsumlt : iFinset.Icc N m, a i < y + a (m + 1)) :
                                                                                                                        y + a (m + 1)subsetSums a (Set.Ici N)
                                                                                                                        theorem Erdos346.propagatedGap_invariants {a : } {N : } (hmono : StrictMono a) (hgap : ∀ (n : ), N na n + a (n + 1) < a (n + 2)) (hNgt : 1 < a N) (k : ) :
                                                                                                                        propagatedGap a N ksubsetSums a (Set.Ici N) propagatedGap a N k < a (N + 2 * k) iFinset.Icc N (N + 2 * k), a i < propagatedGap a N k + a (N + 2 * k + 1)

                                                                                                                        Proved analytic steps #

                                                                                                                        The first theorem below turns L > φ into the eventual two-step gap. The gap-propagation theorem after it is also proved in Lean. The lower-bound L < φ side is handled later by the axiom-free global-budget periodic deletion construction.

                                                                                                                        theorem Erdos346.evt_two_step_gap_of_goldenRatio_lt_limit {a : } {L : } (hpos : ∀ (n : ), 0 < a n) (hlim : Filter.Tendsto (quotient a) Filter.atTop (nhds L)) (hgt : Real.goldenRatio < L) :
                                                                                                                        ∀ᶠ (n : ) in Filter.atTop, a n + a (n + 1) < a (n + 2)

                                                                                                                        If the ratio limit is larger than the golden ratio, then eventually there is a two-step gap.

                                                                                                                        theorem Erdos346.noncomplete_tail_of_evt_two_step_gap {a : } (hmono : StrictMono a) (hpos : ∀ (n : ), 0 < a n) (hgap : ∀ᶠ (n : ) in Filter.atTop, a n + a (n + 1) < a (n + 2)) :
                                                                                                                        ∃ (N : ), ¬IsCompleteOn a (Set.Ici N)

                                                                                                                        A tail satisfying the eventual two-step gap cannot be complete.

                                                                                                                        theorem Erdos346.exists_indexedBudgetData_of_eventual_singleton_complete {a : } {ρ : } (hmono : StrictMono a) (hpos : ∀ (n : ), 0 < a n) (hratioGap : HasUniformRatioGap a) (hρ1 : 1 < ρ) (hρφ : ρ < Real.goldenRatio) (hupper : ∀ᶠ (n : ) in Filter.atTop, quotient a n < ρ) (hsingleton : ∃ (H : ), ∀ᶠ (M : ) in Filter.atTop, ∀ (t : ), H tt subsetSums a {M + 1}) :
                                                                                                                        ∃ (b : ) (H : ) (M : ) (T : ), CoversInterval a Set.univ M H T IndexedBudgetData a b H M T
                                                                                                                        theorem Erdos346.exists_brownBudgetData_of_evtRatioLtGold_of_eventual_singleton_complete {a : } {ρ : } (hmono : StrictMono a) (hpos : ∀ (n : ), 0 < a n) (hratioGap : HasUniformRatioGap a) (hρ1 : 1 < ρ) (hρφ : ρ < Real.goldenRatio) (hupper : ∀ᶠ (n : ) in Filter.atTop, quotient a n < ρ) (hsingleton : ∃ (H : ), ∀ᶠ (M : ) in Filter.atTop, ∀ (t : ), H tt subsetSums a {M + 1}) :
                                                                                                                        ∃ (D : Set ) (H : ) (M : ) (T : ), CoversInterval a Set.univ M H T BrownBudgetData a D H M T
                                                                                                                        theorem Erdos346.infCompleteDeletion_of_evtRatioLtGold {a : } {ρ : } (hmono : StrictMono a) (hpos : ∀ (n : ), 0 < a n) (hgap : HasUniformRatioGap a) (hcomplete : IsCompleteOn a Set.univ) (hρ1 : 1 < ρ) (hρφ : ρ < Real.goldenRatio) (hupper : ∀ᶠ (n : ) in Filter.atTop, quotient a n < ρ) :

                                                                                                                        The Brown-style sparse deletion data gives the lower-bound deletion counterexample needed in the main proof.

                                                                                                                        theorem Erdos346.infCompleteDeletion_of_evtRatioLtGold_of_eventual_singleton_complete {a : } {ρ : } (hmono : StrictMono a) (hpos : ∀ (n : ), 0 < a n) (hratioGap : HasUniformRatioGap a) (hρ1 : 1 < ρ) (hρφ : ρ < Real.goldenRatio) (hupper : ∀ᶠ (n : ) in Filter.atTop, quotient a n < ρ) (hsingleton : ∃ (H : ), ∀ᶠ (M : ) in Filter.atTop, ∀ (t : ), H tt subsetSums a {M + 1}) :
                                                                                                                        theorem Erdos346.infCompleteDeletion_of_evtRatioLtGold_of_eventual_finite_singleton_complete {a : } {ρ : } {F : Set } (hmono : StrictMono a) (hpos : ∀ (n : ), 0 < a n) (hratioGap : HasUniformRatioGap a) (hρ1 : 1 < ρ) (hρφ : ρ < Real.goldenRatio) (hupper : ∀ᶠ (n : ) in Filter.atTop, quotient a n < ρ) (hFfinite : F.Finite) (hfiniteSingleton : ∃ (H : ), ∀ᶠ (M : ) in Filter.atTop, ∀ (t : ), H tt subsetSums a (F {M + 1})) :
                                                                                                                        theorem Erdos346.infCompleteDeletion_of_evtRatioLtGold_of_uniformFinSingletonPrefixCover {a : } {ρ : } (hmono : StrictMono a) (hpos : ∀ (n : ), 0 < a n) (hratioGap : HasUniformRatioGap a) (hρ1 : 1 < ρ) (hρφ : ρ < Real.goldenRatio) (hupper : ∀ᶠ (n : ) in Filter.atTop, quotient a n < ρ) (hprefix : UniformFinSingletonPrefixCover a) :
                                                                                                                        theorem Erdos346.infCompleteDeletion_of_evtRatioLtGold_of_eventualFinSingletonSmallPrefixCover {a : } {ρ : } (hmono : StrictMono a) (hpos : ∀ (n : ), 0 < a n) (hρ1 : 1 < ρ) (hρφ : ρ < Real.goldenRatio) (hupper : ∀ᶠ (n : ) in Filter.atTop, quotient a n < ρ) (hsmall : EventualFinSingletonSmallPrefixCover a) :
                                                                                                                        theorem Erdos346.infCompleteDeletion_of_evtRatioLtGold_of_arbLargeFinSingletonSmallPrefixCover {a : } {ρ : } (hmono : StrictMono a) (hpos : ∀ (n : ), 0 < a n) (hρ1 : 1 < ρ) (hρφ : ρ < Real.goldenRatio) (hupper : ∀ᶠ (n : ) in Filter.atTop, quotient a n < ρ) (hsmall : ArbitrarilyLargeFinSingletonSmallPrefixCover a) :
                                                                                                                        theorem Erdos346.infCompleteDeletion_of_evtRatioLtGold_of_arbLargeFinSingletonFirstPrefixCover {a : } {ρ : } (hmono : StrictMono a) (hpos : ∀ (n : ), 0 < a n) (hgap : HasUniformRatioGap a) (hfinite : FiniteDeletionComplete a) (hρ1 : 1 < ρ) (hρφ : ρ < Real.goldenRatio) (hupper : ∀ᶠ (n : ) in Filter.atTop, quotient a n < ρ) (hcover : ArbitrarilyLargeFinSingletonFirstPrefixCover a) :
                                                                                                                        theorem Erdos346.infCompleteDeletion_of_limit_lt_goldenRatio_of_eventual_finite_singleton_complete {a : } {L : } {F : Set } (hmono : StrictMono a) (hpos : ∀ (n : ), 0 < a n) (hratioGap : HasUniformRatioGap a) (hlim : Filter.Tendsto (quotient a) Filter.atTop (nhds L)) (hL1 : 1 < L) (hlt : L < Real.goldenRatio) (hFfinite : F.Finite) (hfiniteSingleton : ∃ (H : ), ∀ᶠ (M : ) in Filter.atTop, ∀ (t : ), H tt subsetSums a (F {M + 1})) :
                                                                                                                        theorem Erdos346.infCompleteDeletion_of_limit_lt_goldenRatio_of_uniformFinSingletonPrefixCover {a : } {L : } (hmono : StrictMono a) (hpos : ∀ (n : ), 0 < a n) (hratioGap : HasUniformRatioGap a) (hlim : Filter.Tendsto (quotient a) Filter.atTop (nhds L)) (hL1 : 1 < L) (hlt : L < Real.goldenRatio) (hprefix : UniformFinSingletonPrefixCover a) :
                                                                                                                        theorem Erdos346.infCompleteDeletion_of_limit_lt_goldenRatio {a : } {L : } (hmono : StrictMono a) (hpos : ∀ (n : ), 0 < a n) (hgap : HasUniformRatioGap a) (hcomplete : IsCompleteOn a Set.univ) (hlim : Filter.Tendsto (quotient a) Filter.atTop (nhds L)) (hL1 : 1 < L) (hlt : L < Real.goldenRatio) :

                                                                                                                        If the ratio limit lies strictly between 1 and φ, then one can delete an infinite, sufficiently sparse set of indices and still remain complete. The limit-to-eventual-bound part is proved here; the remaining sparse-deletion construction is isolated above.

                                                                                                                        Consequences of the inputs #

                                                                                                                        theorem Erdos346.limit_le_goldenRatio {a : } {L : } (hmono : StrictMono a) (hpos : ∀ (n : ), 0 < a n) (hfinite : FiniteDeletionComplete a) (hlim : Filter.Tendsto (quotient a) Filter.atTop (nhds L)) :
                                                                                                                        theorem Erdos346.goldenRatio_le_limit_of_eventual_finite_singleton_complete {a : } {L : } (hmono : StrictMono a) (hpos : ∀ (n : ), 0 < a n) (hratioGap : HasUniformRatioGap a) (hinfinite : InfiniteDeletionIncomplete a) (hlim : Filter.Tendsto (quotient a) Filter.atTop (nhds L)) (hL1 : 1 < L) (hfiniteSingleton : ∃ (F : Set ), F.Finite ∃ (H : ), ∀ᶠ (M : ) in Filter.atTop, ∀ (t : ), H tt subsetSums a (F {M + 1})) :
                                                                                                                        theorem Erdos346.goldenRatio_le_limit_of_uniformFinSingletonPrefixCover {a : } {L : } (hmono : StrictMono a) (hpos : ∀ (n : ), 0 < a n) (hratioGap : HasUniformRatioGap a) (hinfinite : InfiniteDeletionIncomplete a) (hlim : Filter.Tendsto (quotient a) Filter.atTop (nhds L)) (hL1 : 1 < L) (hprefix : UniformFinSingletonPrefixCover a) :
                                                                                                                        theorem Erdos346.goldenRatio_le_limit_of_uniformFinSingletonComplete {a : } {L : } (hmono : StrictMono a) (hpos : ∀ (n : ), 0 < a n) (hratioGap : HasUniformRatioGap a) (hinfinite : InfiniteDeletionIncomplete a) (hlim : Filter.Tendsto (quotient a) Filter.atTop (nhds L)) (hL1 : 1 < L) (huniform : UniformFinSingletonComplete a) :
                                                                                                                        theorem Erdos346.goldenRatio_le_limit {a : } {L : } (hmono : StrictMono a) (hpos : ∀ (n : ), 0 < a n) (hratioGap : HasUniformRatioGap a) (hfinite : FiniteDeletionComplete a) (hinfinite : InfiniteDeletionIncomplete a) (hlim : Filter.Tendsto (quotient a) Filter.atTop (nhds L)) (hL1 : 1 < L) :
                                                                                                                        theorem Erdos346.ratio_limit_eq_goldenRatio {a : } {L : } (hmono : StrictMono a) (hpos : ∀ (n : ), 0 < a n) (hratioGap : HasUniformRatioGap a) (hfinite : FiniteDeletionComplete a) (hinfinite : InfiniteDeletionIncomplete a) (hlim : Filter.Tendsto (quotient a) Filter.atTop (nhds L)) (hL1 : 1 < L) :

                                                                                                                        Conditional value theorem for the interpretation where the ratio limit is assumed to exist and to be greater than one.

                                                                                                                        theorem Erdos346.ratio_limit_eq_goldenRatio_of_uniformFinSingletonComplete {a : } {L : } (hmono : StrictMono a) (hpos : ∀ (n : ), 0 < a n) (hratioGap : HasUniformRatioGap a) (hfinite : FiniteDeletionComplete a) (hinfinite : InfiniteDeletionIncomplete a) (huniform : UniformFinSingletonComplete a) (hlim : Filter.Tendsto (quotient a) Filter.atTop (nhds L)) (hL1 : 1 < L) :

                                                                                                                        Legacy conditional value theorem under the explicit uniform finite-base singleton completeness condition. The main theorem no longer needs this route, but it remains as a named sufficient condition for the older singleton-threshold approach.

                                                                                                                        theorem Erdos346.ratio_limit_eq_goldenRatio_of_uniformFinSingletonPrefixCover {a : } {L : } (hmono : StrictMono a) (hpos : ∀ (n : ), 0 < a n) (hratioGap : HasUniformRatioGap a) (hfinite : FiniteDeletionComplete a) (hinfinite : InfiniteDeletionIncomplete a) (hprefix : UniformFinSingletonPrefixCover a) (hlim : Filter.Tendsto (quotient a) Filter.atTop (nhds L)) (hL1 : 1 < L) :

                                                                                                                        A fully proved variant of the value theorem under the weaker uniform prefix cover condition used by the finite-initial-tail seed.

                                                                                                                        Value theorem under the small, M-dependent prefix-cover window condition. This is weaker than the uniform prefix-cover condition: the threshold can vary with M, provided it is small enough for that M.

                                                                                                                        Value theorem under the still weaker condition that suitable small finite-singleton windows occur arbitrarily far out.

                                                                                                                        Value theorem under the current weakest finite-window condition: arbitrarily far out, only the first seed inequality is assumed.

                                                                                                                        Value theorem under the equivalent direct-cover form of the current weakest finite-window condition.

                                                                                                                        theorem Erdos346.ratio_tendsto_goldenRatio_of_limit_exists {a : } {L : } (hmono : StrictMono a) (hpos : ∀ (n : ), 0 < a n) (hratioGap : HasUniformRatioGap a) (hfinite : FiniteDeletionComplete a) (hinfinite : InfiniteDeletionIncomplete a) (hlim : Filter.Tendsto (quotient a) Filter.atTop (nhds L)) (hL1 : 1 < L) :

                                                                                                                        Same theorem phrased as convergence to the golden ratio.

                                                                                                                        theorem Erdos346.intended_problem_if_limit_exists {a : } (hmono : StrictMono a) (hpos : ∀ (n : ), 0 < a n) (hratioGap : HasUniformRatioGap a) (hfinite : FiniteDeletionComplete a) (hinfinite : InfiniteDeletionIncomplete a) (hexists : ∃ (L : ), 1 < L Filter.Tendsto (quotient a) Filter.atTop (nhds L)) :

                                                                                                                        Compact formulation: if a ratio limit L > 1 exists, then it is φ.

                                                                                                                        Compact formulation of the axiom-free conditional route using the explicit uniform finite-base singleton completeness hypothesis.

                                                                                                                        Compact formulation of the axiom-free conditional route using only the weaker uniform finite-base prefix-cover hypothesis.

                                                                                                                        Compact formulation of the axiom-free conditional route using the M-dependent small prefix-cover window condition.

                                                                                                                        Compact formulation using only arbitrarily late good finite-singleton prefix-cover windows.

                                                                                                                        Compact formulation using only arbitrarily late first seed inequalities.

                                                                                                                        Compact formulation using the direct finite-prefix cover of the first seed window [nextSeedMargin a M, a (M + 2) - 1].

                                                                                                                        Compact formulation using the local first-window shift-closure condition. Finite-deletion completeness supplies the prefix cover through M + 1; the shift-closure condition is exactly what lowers that cover to the prefix through M.

                                                                                                                        Compact formulation using the moving singleton-deletion threshold condition: arbitrarily far out, after deleting F ∪ {M + 1}, completeness starts no later than a (M + 1).

                                                                                                                        Compact formulation using the least-threshold phrasing of the small finite-window condition.

                                                                                                                        Compact formulation using the least-threshold phrasing of the arbitrarily late small finite-window condition.

                                                                                                                        theorem Erdos346.main {a : } (hmono : StrictMono a) (hpos : ∀ (n : ), 0 < a n) (hratioGap : HasUniformRatioGap a) (hfinite : FiniteDeletionComplete a) (hinfinite : InfiniteDeletionIncomplete a) (hexists : ∃ (L : ), 1 < L Filter.Tendsto (quotient a) Filter.atTop (nhds L)) :

                                                                                                                        Short public-facing name for the main theorem.

                                                                                                                        theorem Erdos346.main_expanded {a : } (hmono : StrictMono a) (hpos : ∀ (n : ), 0 < a n) (hratioGap : ∃ (ε : ), 0 < ε ∀ (n : ), 1 + ε quotient a n) (hfinite : ∀ (D : Set ), D.Finite∃ (H : ), ∀ (n : ), H nn subsetSums a D) (hinfinite : ∀ (D : Set ), D.Infinite¬∃ (H : ), ∀ (n : ), H nn subsetSums a D) (hexists : ∃ (L : ), 1 < L Filter.Tendsto (quotient a) Filter.atTop (nhds L)) :

                                                                                                                        Expanded statement for human inspection.

                                                                                                                        This is definitionally the same theorem as main, but the three compact hypotheses HasUniformRatioGap, FiniteDeletionComplete, and InfiniteDeletionIncomplete are expanded in the theorem statement.

                                                                                                                        theorem Erdos346.main_valueDeletion {a : } (hmono : StrictMono a) (hpos : ∀ (n : ), 0 < a n) (hratioGap : HasUniformRatioGap a) (hfinite : ValueFiniteDeletionComplete a) (hinfinite : ValueInfiniteDeletionIncomplete a) (hexists : ∃ (L : ), 1 < L Filter.Tendsto (quotient a) Filter.atTop (nhds L)) :

                                                                                                                        Public-facing theorem using value deletion rather than index deletion. Finite and infinite deletion hypotheses are stated for sets B : Set of sequence values.

                                                                                                                        theorem Erdos346.main_valueDeletion_expanded {a : } (hmono : StrictMono a) (hpos : ∀ (n : ), 0 < a n) (hratioGap : ∃ (ε : ), 0 < ε ∀ (n : ), 1 + ε quotient a n) (hfinite : ∀ (B : Set ), B.Finite∃ (H : ), ∀ (n : ), H nn subsetSums a {i : | a iB}) (hinfinite : ∀ (B : Set ), B.InfiniteB Set.range a¬∃ (H : ), ∀ (n : ), H nn subsetSums a {i : | a iB}) (hexists : ∃ (L : ), 1 < L Filter.Tendsto (quotient a) Filter.atTop (nhds L)) :

                                                                                                                        Expanded value-deletion statement for human inspection.