Lemma 3: optimal success probabilities of and
ProvedGeneralAgentsPO.lemma3_optimal_threshold_goalsLet be a finite communicating cMDP, let , , , and . With and (eq. (3)),
the sums running over . In other words, if then the best achievable probabilities of and are and .
Formalization Note is an integer because the proof of Theorem 2 uses . Each with (respectively ) appears once as a disjunct, which is up to the order of the disjuncts.
import Mathlib import Definitions.Def_GeneralAgentsPO_Basic open GeneralAgentsWorldModels
namespace GeneralAgentsPO
theorem lemma3_optimal_threshold_goals {S A : Type*} [Fintype S] [DecidableEq S] [Fintype A]
(M : CMP S A) (hM : M.IsCommunicating) (s₀ s s' : S) (a b : A) (n : ℕ) (k : ℤ) :
optValue M (binGoal b s a s' n (fun r => (r : ℤ) ≤ k)) s₀ =
∑ r ∈ (Finset.range (n + 1)).filter (fun r : ℕ => (r : ℤ) ≤ k), binPmf n (M.P s a s') r ∧
optValue M (binGoal b s a s' n (fun r => k < (r : ℤ))) s₀ =
∑ r ∈ (Finset.range (n + 1)).filter (fun r : ℕ => k < (r : ℤ)), binPmf n (M.P s a s') r := by sorry
end GeneralAgentsPORead-back
What the Lean code literally says, in plain math · claude-opus-5-5
The statement concerns a controlled Markov process (a "cMDP") with a finite state set (equipped with decidable equality) and a finite action set , with transition probabilities . In the code these are written ; the probability-of-histories definitions use this as the chance of moving from state to state under action . It assumes one hypothesis, that is communicating. That notion comes from an imported definitions file whose code is not shown here. It also fixes:
- three arbitrary states , which need not be distinct;
- two arbitrary actions , which need not be distinct;
- a natural number ;
- an integer , which may be negative or larger than .
Write . The theorem asserts both of the following equalities, as a conjunction:
The goal and the binomial term. Here is the goal binGoal b s a s' n R with the predicate , where is a natural number compared with as integers. Likewise uses . The term is binPmf n p r.
Neither binGoal nor binPmf is defined in the code provided; both come from the imported file. The accompanying documentation only says that binGoal is the goal " of eq. (1)" and that binPmf is "the binomial mass function". Related visible code describes the sequential goal for a bit string . That suggests the goal is a disjunction over such bit strings whose number of ones satisfies , but this is not verifiable from the given code.
The optimal value. The quantity (optValue) is the real supremum, over all stochastic history-dependent policies , of :
- Policies. A policy assigns to every finite history (a list of past state–action pairs plus a current state) a probability vector on : nonnegative entries summing to .
- Goal probability. (
goalProb) is the supremum over of
Here is a finite-prefix test from the imported file. Per its documentation, it holds when every infinite history extending satisfies .
Degenerate cases. Real suprema follow the convention that an empty or unbounded family has supremum . In particular, if were empty, no policy exists. is nonempty because exists.
Edge cases of the right-hand side.
- If , the first sum is empty and equals , while the second sum runs over all .
- If , the first sum runs over all , while the second is empty and equals .
- For , only is available.
What the right-hand sides do not depend on. They depend only on , and , not on , , or any other transition probabilities. The equalities are claimed for every choice of , under the single hypothesis that is communicating.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.