Theorem 3.4 — Algorithm LS is a -approximation, for symmetric , with steps
ProvedNonmonotoneSubmod.LocalSearch.ls_approximationLet be a nonnegative submodular function on a nonempty finite ground set with elements, let , and let . Run Algorithm LS with acceptance factor : start at a singleton of maximum value, repeatedly add an element with , and only when no such addition exists remove an element with . Then:
- Approximation. Whenever the algorithm terminates at a set (no step applies), whatever choices it made along the way, the returned value satisfies
- Symmetric functions. If moreover for all , then at termination
- Number of iterations. If , every run of steps of the algorithm satisfies
so and the algorithm terminates.
This is the deterministic -approximation for unconstrained maximization of nonnegative submodular functions, and for symmetric ones, from the value-oracle model.
Formalization Note The printed theorem ends "The algorithm uses at most oracle calls"; this has an unquantified constant, so part 3 states instead the explicit step bound that the proof establishes (each step makes at most oracle queries). Part 3 needs : for , , lets LS take one step, and fails. Nonnegativity of is the standing assumption of §3; is implicit in the paper; makes the start singleton exist. For symmetric the returned value equals . The runs are quantified over every choice of maximizing singleton and of improving element.
import Mathlib import Definitions.Def_NonmonotoneSubmod_Shared_Submodular import Definitions.Def_NonmonotoneSubmod_Shared_OPT import Definitions.Def_NonmonotoneSubmod_Shared_SymmetricSetFun import Definitions.Def_NonmonotoneSubmod_LocalSearch_LSAlgorithm
namespace NonmonotoneSubmod.LocalSearch
/-- Theorem 3.4 (Feige–Mirrokni–Vondrák 2011, p. 1141), in the explicit form of its proof.
Let `f ≥ 0` be submodular on a nonempty finite ground set `X` with `n = |X|`, and `ε > 0`.
(a) every terminated run of Algorithm LS returns `max(f(S), f(X \ S)) ≥ (1/3 − ε/n) OPT`;
(b) if `f` is symmetric, every terminated run ends at `S` with `f(S) ≥ (1/2 − ε/n) OPT`;
(c) if `n ≥ 2`, every run of `k` LS steps has `(1 + ε/n²)^k ≤ n`. -/
theorem ls_approximation {X : Type} [Fintype X] [DecidableEq X] [Nonempty X]
(f : Finset X → ℝ) (hf0 : ∀ S : Finset X, 0 ≤ f S) (hf : NonmonotoneSubmod.Shared.Submodular f)
(ε : ℝ) (hε : 0 < ε) :
(∀ (S : ℕ → Finset X) (k : ℕ), IsLSRun ε f S k → IsLSTerminal ε f (S k) →
(1 / 3 - ε / (Fintype.card X : ℝ)) * NonmonotoneSubmod.Shared.OPT f ≤ lsOutput f (S k)) ∧
(NonmonotoneSubmod.Shared.SymmetricSetFun f → ∀ (S : ℕ → Finset X) (k : ℕ), IsLSRun ε f S k →
IsLSTerminal ε f (S k) →
(1 / 2 - ε / (Fintype.card X : ℝ)) * NonmonotoneSubmod.Shared.OPT f ≤ f (S k)) ∧
(2 ≤ Fintype.card X → ∀ (S : ℕ → Finset X) (k : ℕ), IsLSRun ε f S k →
(1 + ε / (Fintype.card X : ℝ) ^ 2) ^ k ≤ (Fintype.card X : ℝ)) := by sorry
end NonmonotoneSubmod.LocalSearch
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Let be a finite type with decidable equality that is nonempty. Write for its number of elements, used as a real number throughout. Let be a function on the finite subsets of , and let be a real number. The statement assumes:
- Non-negativity: for every subset .
- Submodularity: satisfies the predicate
Submodularfrom an imported file. That definition's code is not shown here, so its exact content cannot be stated. By its name it is a submodularity condition. - Positive parameter: .
The statement also uses six notions whose code is not included in what was given to me. Their exact meaning cannot be checked from this declaration:
- : a real number attached to .
- : a condition on a sequence of subsets (one subset of for each natural number) together with a step count .
- : a condition on a single subset .
- : a real number attached to a subset .
SymmetricSetFun: a property of .Submodular: the hypothesis listed above.
The comment above the theorem says that is , that is an optimum value, and that "symmetric" and "LS run" refer to a local-search algorithm. A comment is not checked by Lean, so these descriptions are not part of what the code asserts. Under the hypotheses above, the theorem states that all three of the following hold together:
(a) For every sequence of subsets and every : if holds and satisfies , then
(b) If satisfies SymmetricSetFun, then for every sequence and every : if holds and satisfies , then
(c) If , then for every sequence and every with ,
Part (c) does not require the run to be terminal. In all three parts the same is used in the hypotheses on the run and in the bound. Only , and whatever says about the other terms, enters the conclusion.
Degenerate cases.
- Division: because is nonempty, . So and never divide by zero, and the statement uses no subtraction of natural numbers.
- : the hypothesis of (c) fails, so (c) asserts nothing. The coefficients in (a) and (b) become and .
- Large : when in (a), or in (b), the coefficient is zero or negative. The left-hand side is then times , or a negative multiple of it. Whether that makes the inequality automatic depends on the sign of and of , which the unseen definitions determine. For (b), by hypothesis, so it holds automatically if .
- : the conclusion of (c) reads , which is true whenever . For (a) and (b) with , the conclusions concern and apply whenever the unseen and conditions are met by .
- Vacuity: if no sequence satisfies , or no subset satisfies , parts (a) and (b) hold vacuously. If does not satisfy
SymmetricSetFun, (b) holds vacuously. Whether any of this happens cannot be decided from the code shown. - Values of : and may be any non-negative reals, as far as the non-negativity hypothesis goes. The unseen submodularity predicate may restrict them further.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.