Zulip Chat Archive
Stream: new members
Topic: Finite average bounds and extraction of multiple witnesses
Bob Jefferson (Jan 06 2026 at 20:33):
I'm looking for a new, finite, self-contained project. I’m considering a small Lean 4 project formalising a very common finite combinatorial pattern:
from a lower bound on the average (or sum) of a finite
{0,1}-valued predicate, extract explicit structural consequences (multiple “hits”, bounded gaps, witnesses, etc.).
Before starting, I wanted to check whether the following are already in mathlib (or close variants exist):
-
Finite average → ≥ k hits: for a finite nonempty set
Aand{0,1}-valuedf,
(∑ f) / |A| ≥ k / |A|⇒f = 1at ≥kdistinct elements. -
Sum → hits:
∑ f ≥ k⇒ existence ofkdistinct indices withf = 1. -
Two hits in
[0,B]⇒ bounded gap: ifh₁,h₂ ∈ [0,B], then|h₁ − h₂| ≤ B(and predicate-parametric versions).
Based on recent experience, my impression is that pieces exist (pigeonhole/cardinality lemmas), but not as a small reusable toolkit for “finite density → structure” arguments.
Any pointers to existing lemmas, preferred formulations, or advice on whether packaging this would be useful would be much appreciated.
Last updated: Feb 28 2026 at 14:05 UTC