Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Proof of Proposition 3.1: #I∗=N/4\#I_*=N/4#I∗​=N/4 and #J∗=34N\#J_*=\tfrac34N#J∗​=43​N

Proved
ScenarioReduction.BinaryTree.IStar_card

by mikedeng1 · Sep 27, 2026 · Mathlib 0df444a (Lean v4.33.1)

combinatoricsp2o-batch-p100bp2o-gran-per-chapterp2o-plan-paperp2o-v1scenario-reduction

Let K∈NK\in\mathbb NK∈N and k0≥1k_0\ge1k0​≥1 with k0+2≤Kk_0+2\le Kk0​+2≤K, and let N=2KN=2^KN=2K. The set I∗I_*I∗​ of scenarios of the regular binary tree whose branch at level k0k_0k0​ differs from the branch at level k0+1k_0+1k0​+1 and whose branches at levels k0+1k_0+1k0​+1 and k0+2k_0+2k0​+2 agree, and its complement J∗={1,…,N}∖I∗J_*=\{1,\dots,N\}\setminus I_*J∗​={1,…,N}∖I∗​, have

#I∗=2k0−1⋅2⋅2K−k0−2=14 2K=N4,#J∗=N−#I∗=34N.\#I_*=2^{k_0-1}\cdot2\cdot2^{K-k_0-2}=\tfrac14\,2^K=\tfrac N4,\qquad \#J_*=N-\#I_*=\tfrac34N.#I∗​=2k0​−1⋅2⋅2K−k0​−2=41​2K=4N​,#J∗​=N−#I∗​=43​N.

The set J∗J_*J∗​ is the deleted set that attains the minimal reduction cost when n=N/4n=N/4n=N/4 scenarios are kept.

Formalization Note N/4N/4N/4 and 34N\frac34N43​N are written as 2K−22^{K-2}2K−2 and 3⋅2K−23\cdot2^{K-2}3⋅2K−2, exact since K≥3K\ge3K≥3. I∗I_*I∗​ is defined by branch indices rather than by the signs of δikk\delta^k_{i_k}δik​k​ (see the definition IStar); the two agree when δk0,δk0+1,δk0+2>0\delta^{k_0},\delta^{k_0+1},\delta^{k_0+2}>0δk0​,δk0​+1,δk0​+2>0, and the count is a statement about indices only.

Preamble
import Mathlib
import Definitions.Def_ScenarioReduction_BinaryTree_IStar
Formal statement
namespace ScenarioReduction.BinaryTree

theorem IStar_card (K k0 : ℕ) (hk0 : 1 ≤ k0) (hk0K : k0 + 2 ≤ K) :
    (IStar K k0).card = 2 ^ (K - 2) ∧ (IStar K k0)ᶜ.card = 3 * 2 ^ (K - 2) := by sorry

end ScenarioReduction.BinaryTree
Source
Heitsch, Römisch, Scenario Reduction Algorithms in Stochastic Programming, Comput. Optim. Appl. 24 (2003), p. 197, proof of Proposition 3.1, display for #I_* and #J_*
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

Let K,k0∈NK, k_0 \in \mathbb{N}K,k0​∈N with 1≤k01 \le k_01≤k0​ and k0+2≤Kk_0 + 2 \le Kk0​+2≤K. Consider the set I∗(K,k0)I_*(K, k_0)I∗​(K,k0​) of maps σ:{0,…,K−1}→{0,1}\sigma : \{0,\dots,K-1\} \to \{0,1\}σ:{0,…,K−1}→{0,1} such that:

  • σ(k0−1)≠σ(k0)\sigma(k_0-1) \ne \sigma(k_0)σ(k0​−1)=σ(k0​), and
  • σ(k0)=σ(k0+1)\sigma(k_0) = \sigma(k_0+1)σ(k0​)=σ(k0​+1).

In level terms: the entries at levels k0+1k_0+1k0​+1 and k0+2k_0+2k0​+2 agree, and the entry at level k0k_0k0​ is the opposite value. The statement asserts

∣I∗(K,k0)∣=2K−2and∣I∗(K,k0)c∣=3⋅2K−2,|I_*(K,k_0)| = 2^{K-2} \quad\text{and}\quad |I_*(K,k_0)^c| = 3\cdot 2^{K-2},∣I∗​(K,k0​)∣=2K−2and∣I∗​(K,k0​)c∣=3⋅2K−2,

where the complement is taken within the set of all 2K2^K2K maps.

Degenerate cases. The hypotheses force K≥3K \ge 3K≥3. So the natural-number subtraction K−2K - 2K−2 does not truncate, and all three levels k0,k0+1,k0+2k_0, k_0+1, k_0+2k0​,k0​+1,k0​+2 lie in {1,…,K}\{1, \dots, K\}{1,…,K}. No default level values arise.

Human review
  • Endorsed by Shuze Chen · Sep 27, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Sep 27, 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