Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§4, proof of Theorem 6 (p. 449) — the cost splits over the clause chosen at time 1

Proved
MDPComplexity.PartiallyObserved.cost_splits_over_clause

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

markov-decision-processp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1partially-observedqsatreduction

Let φ\varphiφ be a QSAT formula of the paper's alternating, three-literal form with nnn variables and m≥1m \ge 1m≥1 clauses, let MφM_\varphiMφ​ be the partially observed process built from it in the proof of Theorem 6, with horizon T=2n+2T = 2n+2T=2n+2, and let π\piπ be any observation-history policy. For each clause iii let

Ei(π)=∑x: x1=Ai1′Pπ(x) costπ(x)E_i(\pi) = \sum_{x:\ x_1 = A'_{i1}} P_\pi(x)\, \mathrm{cost}_\pi(x)Ei​(π)=x: x1​=Ai1′​∑​Pπ​(x)costπ​(x)

be the part of the expected cost carried by the trajectories that move to Ai1′A'_{i1}Ai1′​ at time 111 (the process "chooses" clause CiC_iCi​). Then

  1. the probability of choosing clause iii is ∑x: x1=Ai1′Pπ(x)=1/m\sum_{x:\ x_1 = A'_{i1}} P_\pi(x) = 1/m∑x: x1​=Ai1′​​Pπ​(x)=1/m;
  2. Jπ(T)=∑i=1mEi(π)J_\pi(T) = \sum_{i=1}^m E_i(\pi)Jπ​(T)=∑i=1m​Ei​(π);
  3. Jπ(T)=0J_\pi(T) = 0Jπ​(T)=0 if and only if Ei(π)=0E_i(\pi) = 0Ei​(π)=0 for every clause iii.

In the paper's words, a policy of zero expected cost "has zero expected cost for all such initial choices" of the clause; this is the first step of the "only if" direction of the reduction.

Formalization Note. Ei(π)E_i(\pi)Ei​(π) is the partial expectation; the conditional expected cost given the choice of clause iii is m Ei(π)m\,E_i(\pi)mEi​(π) by item 1. Clause iii is Lean index i−1i-1i−1, and Ai1′A'_{i1}Ai1′​ is lvlA' i 0 (which is Ai,n+1′A'_{i,n+1}Ai,n+1′​ when n=0n = 0n=0). The horizon is 2n+22n+22n+2, corrected from the printed 2m+22m+22m+2.

Preamble
import Mathlib
import Definitions.Def_MDPComplexity_PartiallyObserved_Construction
Formal statement
namespace MDPComplexity.PartiallyObserved

/-- §4, proof of Theorem 6 (p. 449): the transition from `s₀` "chooses" clause `C_i` by moving to
`A′_{i1}` with probability `1/m`; the expected cost is the sum over clauses of the partial
expectations over trajectories through `A′_{i1}` at time 1, each nonnegative, so it is zero iff
the cost is zero for every choice of clause. -/
theorem cost_splits_over_clause {n m : ℕ} (φ : QBF n m) (hm : 0 < m)
    (hqsat : φ.IsPaperQSAT)
    (π : (φ.toPOMDP hm).Policy) :
    (∀ i : Fin m,
      ∑ x ∈ Finset.univ.filter (fun x : Fin (horizon n + 1) → St n m =>
          x ⟨1, by unfold horizon; omega⟩ = lvlA' i 0),
        (φ.toPOMDP hm).trajProb .s0 π (horizon n) x = 1 / (m : ℝ)) ∧
    (φ.toPOMDP hm).expCost .s0 π (horizon n) =
      ∑ i : Fin m, ∑ x ∈ Finset.univ.filter (fun x : Fin (horizon n + 1) → St n m =>
          x ⟨1, by unfold horizon; omega⟩ = lvlA' i 0),
        (φ.toPOMDP hm).trajProb .s0 π (horizon n) x * (φ.toPOMDP hm).trajCost π (horizon n) x ∧
    ((φ.toPOMDP hm).expCost .s0 π (horizon n) = 0 ↔
      ∀ i : Fin m, ∑ x ∈ Finset.univ.filter (fun x : Fin (horizon n + 1) → St n m =>
          x ⟨1, by unfold horizon; omega⟩ = lvlA' i 0),
        (φ.toPOMDP hm).trajProb .s0 π (horizon n) x * (φ.toPOMDP hm).trajCost π (horizon n) x = 0) := by sorry

end MDPComplexity.PartiallyObserved
Source
Papadimitriou and Tsitsiklis, The Complexity of Markov Decision Processes, Math. Oper. Res. 12(3) (1987), p. 449, proof of Theorem 6
Human review
  • Endorsed by Shuze Chen · Oct 6, 2026

    Confirmed by the moderator at approval.

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