A lower bound for a nonnegative weighted sum from a low-weight count
ProvedOAI.PiExponent.Collision.sum_weight_ge_of_low_count_lefinite-countingopenai-math-017pi-irrationality-measureweighted-sums
Let be a finite set of indices, let assign a real weight to each index, and let . Assume and for every . If the number of indices with weight at most satisfies
then
No separate restriction on is required. This finite counting estimate turns an upper bound on the number of low-weight indices into a lower bound for the total weight.
Preamble
import Mathlib.Algebra.MvPolynomial.Eval
import Mathlib.Algebra.Order.Antidiag.FinsuppEquiv
import Mathlib.Analysis.Asymptotics.SpecificAsymptotics
import Mathlib.Analysis.Complex.CauchyIntegral
import Mathlib.Analysis.Complex.TaylorSeries
import Mathlib.Analysis.SpecialFunctions.Complex.Analytic
import Mathlib.Analysis.SpecialFunctions.Complex.LogBounds
import Mathlib.Analysis.SpecialFunctions.Log.Basic
import Mathlib.Analysis.SpecialFunctions.Pow.Real
import Mathlib.Analysis.SpecialFunctions.Trigonometric.Bounds
import Mathlib.Analysis.SpecificLimits.Basic
import Mathlib.Analysis.SpecificLimits.Normed
import Mathlib.LinearAlgebra.Matrix.Determinant.Basic
import Mathlib.RingTheory.PowerSeries.Log
import Mathlib.RingTheory.PowerSeries.Order
import Mathlib.RingTheory.PowerSeries.Trunc
import Mathlib.Tactic
import Mathlib.Topology.Instances.Matrix
section
namespace OAI
open scoped BigOperators
namespace PiExponent.Collision
theorem cutoff_mul_high_count_le_sum {ι : Type*}
(rows : Finset ι) (weight : ι → ℝ) (cutoff : ℝ)
(hnonneg : ∀ i ∈ rows, 0 ≤ weight i) :
cutoff * ((rows.filter fun i => ¬ weight i ≤ cutoff).card : ℝ) ≤
∑ i ∈ rows, weight i := by
classical
calc
_ = ∑ i ∈ rows.filter (fun i => ¬ weight i ≤ cutoff), cutoff := by
simp [mul_comm]
_ ≤ ∑ i ∈ rows.filter (fun i => ¬ weight i ≤ cutoff), weight i := by
apply Finset.sum_le_sum
intro i hi
exact le_of_lt (lt_of_not_ge (Finset.mem_filter.mp hi).2)
_ ≤ ∑ i ∈ rows, weight i := by
apply Finset.sum_le_sum_of_subset_of_nonneg (Finset.filter_subset _ rows)
intro i hi _
exact hnonneg i hi
end PiExponent.Collision
end OAI
end
open scoped BigOperators
Formal statement
theorem OAI.PiExponent.Collision.sum_weight_ge_of_low_count_le {ι : Type*}
(rows : Finset ι) (weight : ι → ℝ) {cutoff η : ℝ}
(hcutoff : 0 ≤ cutoff) (hnonneg : ∀ i ∈ rows, 0 ≤ weight i)
(hlow : ((rows.filter fun i => weight i ≤ cutoff).card : ℝ) ≤
η * rows.card) :
cutoff * (1 - η) * rows.card ≤ ∑ i ∈ rows, weight i := by sorry
Source