Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 15: Algorithm 1 with τ^\hat\tauτ^ has empty sets until τ^\hat\tauτ^ enters TTT

Proved
StreamSubmod.lemma_15

by iris · Oct 31, 2026 · Mathlib 0df444a (Lean v4.33.1)

p2o-gran-per-chapterp2o-plan-paperp2o-strengthenedp2o-v1streaming-algorithmssubmodular-maximization

Let fff be non-negative and submodular, and let τ^\hat\tauτ^ belong to the final set T^\hat TT^ of Algorithm 2. Let eje_jej​ be the element whose arrival made Algorithm 2 add τ^\hat\tauτ^ to TTT. Then all the sets S^1,…,S^p\hat S_1,\dots,\hat S_pS^1​,…,S^p​ maintained by Algorithm 1 with the estimate τ^\hat\tauτ^ are empty immediately prior to the arrival of eje_jej​.

Hence Algorithm 2 loses nothing by starting the sets of τ^\hat\tauτ^ late: their final contents equal those of Algorithm 1.

Formalization Note The statement is that for every prefix LLL of the stream after which τ^∉T\hat\tau\notin Tτ^∈/T, the sets of Algorithm 1 with estimate τ^\hat\tauτ^ are empty after LLL. The prefix e1,…,ej−1e_1,\dots,e_{j-1}e1​,…,ej−1​ of the paper is the longest such prefix. If τ^\hat\tauτ^ belongs to TTT from the beginning, then j=1j=1j=1, the prefix is empty and the sets are empty by construction.

Differences from the source:

  • generalization: τ̂ is the value given by Lemma 14 → every τ̂ in the final set T̂; reason: the proof uses only τ̂ ∈ T̂
  • generalization: immediately prior to the arrival of e_j → after every prefix of the stream after which τ̂ is not in T; reason: the prefix e_1, …, e_{j−1} is the longest such prefix, and for j = 1 it is empty
  • encoding: the elements of V arrive one at a time, in an arbitrary order → a duplicate-free list σ containing every element of E, for every such list; reason: this is a single pass over V; no arrival order is excluded
  • encoding: "if there are multiple options for i, pick an arbitrary one" → the smallest admissible index i, the same rule in Algorithms 1 and 2; reason: the paper leaves the rule free, and Corollary 16 needs both algorithms to choose alike
  • encoding: k is a cardinality bound, never stated to be positive → the hypothesis 1 ≤ k; reason: this excludes only k = 0, where the threshold cτ/k is undefined
  • encoding: guesses τ ∈ T of the form (1+ε′)^h → the exponents h : ℤ of the guesses; reason: h ↦ (1+ε′)^h is injective for ε′ > 0
Preamble
import Mathlib
import Definitions.Def_NonmonotoneSubmod_Shared_Submodular
import Definitions.Def_StreamSubmod_optVal
import Definitions.Def_StreamSubmod_IsStream
import Definitions.Def_StreamSubmod_IsApproxOffline
import Definitions.Def_StreamSubmod_Algorithm1
import Definitions.Def_StreamSubmod_Algorithm2
Formal statement
namespace StreamSubmod

open NonmonotoneSubmod.Shared in
/-- Lemma 15 (Alaluf, Ene, Feldman, Nguyen & Suh, arXiv:1911.12959v3, p.14): let `τ̂` belong to the
final set `T̂` of Algorithm 2, and let `e_j` be the element whose arrival made Algorithm 2 add `τ̂` to
`T`. Then all the sets `Ŝ_1, …, Ŝ_p` maintained by Algorithm 1 with the estimate `τ̂` are empty
immediately prior to the arrival of `e_j`.

**Formalization Note.** The prefix `e_1, …, e_{j-1}` is any prefix `L` of the stream after which `τ̂`
is not in `T`; the last such prefix is the one of the paper, and when `τ̂` belongs to `T` from the
beginning (`j = 1`) the prefix is empty, so the sets are empty by construction. -/
theorem lemma_15 {E : Type} [Fintype E] [DecidableEq E] (f : Finset E → ℝ) (hf0 : ∀ S, 0 ≤ f S)
    (hf : Submodular f) (k : ℕ) (hk : 1 ≤ k) (α : ℝ) (hα0 : 0 < α) (hα1 : α ≤ 1) (ε' : ℝ)
    (hε0 : 0 < ε') (hε1 : ε' < 1) (p : ℕ) (hp : 1 ≤ p) (σ : List E) (hσ : IsStream σ) (h : ℤ)
    (hT : h ∈ alg2Guesses k α ε' (alg2Run p f k α ε' σ)) (L : List E) (hL : L <+: σ)
    (hnot : h ∉ alg2Guesses k α ε' (alg2Run p f k α ε' L)) (i : Fin p) :
    alg1Sets p f k α ((1 + ε') ^ h) L i = ∅ := by sorry

end StreamSubmod
Source
Alaluf, Ene, Feldman, Nguyen & Suh, An Optimal Streaming Algorithm for Submodular Maximization with a Cardinality Constraint, arXiv:1911.12959v3, Lemma 15, p.14
Human review
  • Endorsed by Shuze Chen · Oct 31, 2026

    Confirmed by the moderator at approval.

  • Endorsed by iris · Oct 31, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me