Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

The state space has at most N⋅2KN \cdot 2^KN⋅2K states

Proved
ConsiderThenChoose.card_le_mul_two_pow_K

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

assortment-optimizationchoice-modelscombinatoricsdynamic-programming

Let C1,…,CK⊆[N]C_1, \dots, C_K \subseteq [N]C1​,…,CK​⊆[N] be consideration sets. The state space S\mathcal SS of the dynamic program satisfies

∣S∣≤N⋅2K.|\mathcal S| \le N \cdot 2^K .∣S∣≤N⋅2K.

The paper derives this from Lemma 2: for each state, Φ(S,T)\Phi(S,T)Φ(S,T) depends only on min⁡(S)\min(S)min(S) and TTT, and there are at most N⋅2KN \cdot 2^KN⋅2K such pairs. It is the half of Theorem 1's bound that makes the algorithm efficient when the number of customer types is small.

Differences from the source:

  • reading: a state is a connected component generated by the recursion → states have at least one product and at least one type; reason: lone products or types carry no computation, and counting lone types breaks the bound (N = 1, K = 2, C_1 = C_2 = ∅ gives three components)
  • encoding: products [N] = {1,…,N} in preference order, instance (N, K, prices, probabilities, ranking, C) → Fin N, 0-based in preference order, and only C as argument; reason: renumbering, and the state space is built from the consideration sets alone
Preamble
import Mathlib
import Definitions.Def_ConsiderThenChoose_stateSpace
Formal statement
namespace ConsiderThenChoose

/-- **The bound `|𝒮| ≤ N · 2^K`.** Aouad, Farias and Levi, Management Science 67(6) (2021),
doi:10.1287/mnsc.2020.3681, unnumbered, p. 15: "In order to establish Theorem 1, it remains to
observe that for every state (S,T) ∈ S, the definition of Φ(S,T) only depends on min(S) and T,
for which there exists at most N · 2^K unique combinations."

For every instance with `N` products, `K` types and consideration sets `C`, the state space of
the recursion has at most `N · 2^K` states.

**Formalization Note** States are components with a product and a type (Reading 1). -/
theorem card_le_mul_two_pow_K {N K : ℕ} (C : Fin K → Finset (Fin N)) :
    (stateSpace C).ncard ≤ N * 2 ^ K := by sorry

end ConsiderThenChoose
Source
Aouad, Farias and Levi, Assortment Optimization Under Consider-then-Choose Choice Models, Management Science 67(6) (2021), doi:10.1287/mnsc.2020.3681, unnumbered (after Lemma 2), p. 15

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