Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 3(b): an even balanced cyclic window

Proved
ProcFlex.DMGI.lemma_3b

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

combinatoricscyclic-windowlong-chainp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1

In a cyclic ordering of 2k2k2k products with exactly kkk high-margin products, take any integer ℓ\ellℓ satisfying 1≤ℓ≤k1\le\ell\le k1≤ℓ≤k. Some consecutive cyclic window of length 2ℓ2\ell2ℓ contains exactly ℓ\ellℓ high-margin and ℓ\ellℓ low-margin products:

∃s,#{q∈{0,…,2ℓ−1}:c(s+q mod 2k)=H}=ℓ.\exists s,\quad \#\{q\in\{0,\ldots,2\ell-1\}:c(s+q\bmod 2k)=H\}=\ell.∃s,#{q∈{0,…,2ℓ−1}:c(s+qmod2k)=H}=ℓ.

This is the even-window companion to Lemma 3(a).

Formalization Note A Boolean colouring abstracts the high/low product categories; the window runs cyclically and may wrap.

Preamble
import Mathlib
Formal statement
namespace ProcFlex.DMGI

open Finset

/-- Lemma 3(b), p. 46: an even cyclic window in a balanced high-low sequence. -/
theorem lemma_3b (k : ℕ) (hk : 1 ≤ k)
    (c : Fin (2 * k) → Bool)
    (hc : (univ.filter (fun i => c i = true)).card = k)
    (l : ℕ) (hl : 1 ≤ l) (hlu : l ≤ k) :
    ∃ s : Fin (2 * k),
      ((range (2 * l)).filter
        (fun q : ℕ => c ⟨(s.val + q) % (2 * k), Nat.mod_lt _ (by omega)⟩ = true)).card = l := by sorry

end ProcFlex.DMGI
Source
Wang, Wang & Zhang, Robust Optimization Approach to Process Flexibility Designs with Contribution Margin Differentials, SSRN 3233721 (version of 22 May 2020), p. 46, Lemma 3(b)
Human review
  • Endorsed by Shuze Chen · Oct 19, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 19, 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