Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Proposition 3.2, proof — #I∗∗=29N\#I_{**} = \frac29 N#I∗∗​=92​N and #J∗∗=79N\#J_{**} = \frac79 N#J∗∗​=97​N

Proved
ScenarioReduction.TernaryTree.card_IStarStar

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

combinatoricsp2o-batch-p100bp2o-gran-per-chapterp2o-plan-paperp2o-v1scenario-reductionscenario-tree

Let K≥3K \ge 3K≥3, N=3KN = 3^KN=3K, and 1≤k0≤K−21 \le k_0 \le K - 21≤k0​≤K−2. Let I∗∗I_{**}I∗∗​ be the set of scenarios of a regular ternary tree that take the middle branch at level k0k_0k0​ and outer branches at levels k0+1,k0+2k_0+1, k_0+2k0​+1,k0​+2, or an outer branch at level k0k_0k0​ and middle branches at levels k0+1,k0+2k_0+1, k_0+2k0​+1,k0​+2, and let J∗∗={1,…,N}∖I∗∗J_{**} = \{1, \dots, N\} \setminus I_{**}J∗∗​={1,…,N}∖I∗∗​. Then

#I∗∗=3k0−1⋅6⋅3K−k0−2=29 3K=29N,#J∗∗=N−#I∗∗=79N.\#I_{**} = 3^{k_0-1} \cdot 6 \cdot 3^{K-k_0-2} = \tfrac29\,3^K = \tfrac29 N, \qquad \#J_{**} = N - \#I_{**} = \tfrac79 N.#I∗∗​=3k0​−1⋅6⋅3K−k0​−2=92​3K=92​N,#J∗∗​=N−#I∗∗​=97​N.

The count shows that the reduction kept at I∗∗I_{**}I∗∗​ has exactly 29N\tfrac29 N92​N scenarios, the threshold of Proposition 3.2.

Formalization Note 29N\tfrac29 N92​N and 79N\tfrac79 N97​N are written as 2⋅3K−22 \cdot 3^{K-2}2⋅3K−2 and 7⋅3K−27 \cdot 3^{K-2}7⋅3K−2 (natural-number exponents, K≥3K \ge 3K≥3). I∗∗I_{**}I∗∗​ is defined by branch indices, not by the values of the increments; see the definition IStarStar.

Preamble
import Mathlib
import Definitions.Def_ScenarioReduction_TernaryTree_IStarStar
Formal statement
namespace ScenarioReduction.TernaryTree

theorem card_IStarStar (K k0 : ℕ) (hk0 : 1 ≤ k0) (hk0K : k0 ≤ K - 2) (hK : 3 ≤ K) :
    (IStarStar K k0).card = 2 * 3 ^ (K - 2) ∧ (IStarStar K k0)ᶜ.card = 7 * 3 ^ (K - 2) := by sorry

end ScenarioReduction.TernaryTree
Source
Heitsch, Römisch, Scenario Reduction Algorithms in Stochastic Programming, Comput. Optim. Appl. 24 (2003), pp. 198–199, proof of Proposition 3.2, definition of I_** and the display on p. 199
Read-back

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

Setting. Consider the 3K3^K3K branch assignments σ:{0,…,K−1}→{0,1,2}\sigma : \{0, \dots, K-1\} \to \{0,1,2\}σ:{0,…,K−1}→{0,1,2}. Say that σ\sigmaσ is:

  • middle at level lll if 1≤l≤K1 \le l \le K1≤l≤K and σ(l−1)=1\sigma(l-1) = 1σ(l−1)=1;
  • outer at level lll if 1≤l≤K1 \le l \le K1≤l≤K and σ(l−1)∈{0,2}\sigma(l-1) \in \{0,2\}σ(l−1)∈{0,2}.

I∗∗(K,k0)I_{**}(K, k_0)I∗∗​(K,k0​) is the set of assignments that satisfy at least one of these patterns:

  1. middle at k0k_0k0​, outer at k0+1k_0+1k0​+1 and outer at k0+2k_0+2k0​+2;
  2. outer at k0k_0k0​, middle at k0+1k_0+1k0​+1 and middle at k0+2k_0+2k0​+2.

Hypotheses.

  • K≥3K \ge 3K≥3.
  • 1≤k01 \le k_01≤k0​.
  • k0≤K−2k_0 \le K - 2k0​≤K−2. Since K≥3K \ge 3K≥3, this is genuine subtraction and means k0+2≤Kk_0 + 2 \le Kk0​+2≤K.

Claim. Both of the following hold:

∣I∗∗(K,k0)∣=2⋅3K−2and∣complement of I∗∗(K,k0)∣=7⋅3K−2.|I_{**}(K,k_0)| = 2 \cdot 3^{K-2} \qquad\text{and}\qquad \bigl|\text{complement of } I_{**}(K,k_0)\bigr| = 7 \cdot 3^{K-2}.∣I∗∗​(K,k0​)∣=2⋅3K−2and​complement of I∗∗​(K,k0​)​=7⋅3K−2.

Here the complement is taken within the set of all 3K3^K3K assignments.

Degenerate cases. The hypotheses rule out every K≤2K \le 2K≤2 and k0=0k_0 = 0k0​=0. The exponent K−2K-2K−2 is therefore at least 111, so no truncated subtraction occurs. The smallest admissible case is K=3K = 3K=3, k0=1k_0 = 1k0​=1, where the claim reads 666 and 212121.

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