Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 3(a): an odd balanced cyclic window

Proved
ProcFlex.DMGI.lemma_3a

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≤ℓ≤k−11\le\ell\le k-11≤ℓ≤k−1. Some consecutive cyclic window of length 2ℓ+12\ell+12ℓ+1 has exactly ℓ\ellℓ high-margin and ℓ+1\ell+1ℓ+1 low-margin products:

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

This is the odd-window statement used in the comparison of long-chain arrangements.

Formalization Note A Boolean colouring abstracts the high/low product categories; true denotes high margin. The source's window is cyclic and may wrap past the last product.

Preamble
import Mathlib
Formal statement
namespace ProcFlex.DMGI

open Finset

/-- Lemma 3(a), p. 46: an odd cyclic window in a balanced high-low sequence. -/
theorem lemma_3a (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 - 1) :
    ∃ s : Fin (2 * k),
      ((range (2 * l + 1)).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(a)
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