Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

§II — OPTiOPT_iOPTi​ agrees with Xi,YiX_i, Y_iXi​,Yi​ on u1..uiu_1..u_iu1​..ui​ and with OPTOPTOPT after; OPT0=OPTOPT_0 = OPTOPT0​=OPT, OPTn=Xn=YnOPT_n = X_n = Y_nOPTn​=Xn​=Yn​

Proved
DoubleGreedyUSM.Deterministic.opt_endpoints

by mikedeng1 · Oct 4, 2026 · Mathlib 0df444a (Lean v4.33.1)

approximation-algorithmsgreedy-algorithmsp2o-batch-pfp1ap2o-gran-per-chapterp2o-plan-paperp2o-v1submodular-functions

Let N\mathcal NN be a finite ground set, f:2N→Rf : 2^{\mathcal N} \to \mathbb Rf:2N→R a set function, OPT⊆NOPT \subseteq \mathcal NOPT⊆N an optimal solution (a set maximizing fff), and u1,…,unu_1, \dots, u_nu1​,…,un​ an enumeration of N\mathcal NN. Run Algorithm 1 in this order, producing the states (Xi,Yi)(X_i, Y_i)(Xi​,Yi​), and define

OPTi=(OPT∪Xi)∩Yi,0≤i≤n.OPT_i = (OPT \cup X_i) \cap Y_i, \qquad 0 \le i \le n.OPTi​=(OPT∪Xi​)∩Yi​,0≤i≤n.

Then:

  1. for every 0≤i≤n0 \le i \le n0≤i≤n, the set OPTiOPT_iOPTi​ coincides with XiX_iXi​ and with YiY_iYi​ on the elements u1,…,uiu_1, \dots, u_iu1​,…,ui​, and coincides with OPTOPTOPT on the elements ui+1,…,unu_{i+1}, \dots, u_nui+1​,…,un​;
  2. OPT0=OPTOPT_0 = OPTOPT0​=OPT;
  3. the output of the algorithm is OPTn=Xn=YnOPT_n = X_n = Y_nOPTn​=Xn​=Yn​.

The sequence OPT0,…,OPTnOPT_0, \dots, OPT_nOPT0​,…,OPTn​ thus starts at the optimum and ends at the algorithm's output; the proof of Theorem I.1 bounds the loss of value along it.

Formalization Note "Coincides on uju_juj​" is stated as: uj∈OPTiu_j \in OPT_iuj​∈OPTi​ if and only if uj∈Xiu_j \in X_iuj​∈Xi​ (respectively YiY_iYi​, respectively OPTOPTOPT), for uju_juj​ = l[j] with 0-based index j. Optimality of OPTOPTOPT is kept as a hypothesis because the page introduces OPTOPTOPT as an optimal solution, although the statement holds for every set. No property of fff is needed.

Preamble
import Mathlib
import Definitions.Def_NonmonotoneSubmod_Shared_Submodular
import Definitions.Def_NonmonotoneSubmod_Shared_OPT
import Definitions.Def_DoubleGreedyUSM_Deterministic_Algorithm1
Formal statement
namespace DoubleGreedyUSM.Deterministic

theorem opt_endpoints {X : Type} [Fintype X] [DecidableEq X] (f : Finset X → ℝ)
    (O : Finset X) (hO : ∀ S, f S ≤ f O) (l : List X) (hl : l.Nodup) (hcov : ∀ x, x ∈ l) :
    (∀ i (hi : i ≤ l.length),
      (∀ j (hj : j < i),
        (l[j]'(by omega) ∈ optI O (state f l i) ↔ l[j]'(by omega) ∈ (state f l i).1) ∧
        (l[j]'(by omega) ∈ optI O (state f l i) ↔ l[j]'(by omega) ∈ (state f l i).2)) ∧
      (∀ j (hj : j < l.length), i ≤ j →
        (l[j] ∈ optI O (state f l i) ↔ l[j] ∈ O))) ∧
    optI O (state f l 0) = O ∧
    optI O (state f l l.length) = (state f l l.length).1 ∧
    (state f l l.length).1 = (state f l l.length).2 := by sorry

end DoubleGreedyUSM.Deterministic
Source
Buchbinder, Feldman, Naor, Schwartz, A Tight Linear Time (1/2)-Approximation for Unconstrained Submodular Maximization, FOCS 2012 version, §II, paragraph after Lemma II.1 (PDF p. 3)
Human review
  • Endorsed by Shuze Chen · Oct 5, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 5, 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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me