Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 2: extending the action space cannot lower the optimal success probability

Proved
GeneralAgentsWorldModels.lemma2_extended_action_space

by Xeroth · Nov 23, 2026 · Mathlib 0df444a (Lean v4.33.1)

controlled-markov-processesgoal-conditioned-agentslinear-temporal-logicregret-boundsworld-models

Let the environment PPP satisfy Assumption 1, and extend its action set by one action aˉ\bar aaˉ, A′=A∪{aˉ}A'=A\cup\{\bar a\}A′=A∪{aˉ}, with a transition function P′P'P′ satisfying Pss′′(a)=Pss′(a)P'_{ss'}(a)=P_{ss'}(a)Pss′′​(a)=Pss′​(a) for all a∈Aa\in Aa∈A and with Ps⋅′(aˉ)P'_{s\cdot}(\bar a)Ps⋅′​(aˉ) an arbitrary probability distribution. Then for every composite goal ψ\psiψ (over AAA, read over A′A'A′) and every initial state s0s_0s0​,

max⁡πP′(τ⊨ψ∣π,s0) ≥ max⁡πP(τ⊨ψ∣π,s0).\max_\pi P'(\tau\models\psi\mid\pi,s_0)\ \ge\ \max_\pi P(\tau\models\psi\mid\pi,s_0).πmax​P′(τ⊨ψ∣π,s0​) ≥ πmax​P(τ⊨ψ∣π,s0​).

In Lemma 6 this lets an upper bound be computed in an environment with an extra "teleport" action.

Formalization Note A′A'A′ is the type of optional actions, with aˉ\bar aaˉ the empty option; maxima over policies are suprema over deterministic history-dependent policies.

Preamble
import Mathlib
import Definitions.Def_GeneralAgentsWorldModels_Basic

open Finset
Formal statement
namespace GeneralAgentsWorldModels

theorem lemma2_extended_action_space {S A : Type*} [Fintype S] [DecidableEq S] [Fintype A]
    (M : CMP S A) (hM : SatisfiesAssumption1 M) (M' : CMP S (Option A))
    (hM' : ∀ s a s', M'.P s (some a) s' = M.P s a s') (ψ : CompGoal S A) (s₀ : S) :
    optProb M ψ s₀ ≤ optProb M' (liftGoal ψ) s₀ := by sorry

end GeneralAgentsWorldModels
Source
Richens, Abel, Bellot and Everitt, General agents contain world models, arXiv:2506.01622v5 (ICML 2025), Appendix A.6, Lemma 2, eq. (7), p. 14
Read-back

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

Let SSS be a finite nonempty-or-empty type of states with decidable equality, and AAA a finite type of actions. Let MMM be a controlled Markov process on (S,A)(S, A)(S,A): a transition function Ps,aM(s′)≥0P^M_{s,a}(s') \ge 0Ps,aM​(s′)≥0 with ∑s′Ps,aM(s′)=1\sum_{s'} P^M_{s,a}(s') = 1∑s′​Ps,aM​(s′)=1 for every s∈Ss \in Ss∈S, a∈Aa \in Aa∈A. It is time-independent by construction. Let M′M'M′ be a second controlled Markov process on the same state set, with extended action set A′=A∪{aˉ}A' = A \cup \{\bar a\}A′=A∪{aˉ}. Here aˉ\bar aaˉ is one new action.

Hypotheses.

  1. MMM satisfies Assumption 1. This means two things:
    • MMM is communicating: for every pair of distinct states s≠s′s \neq s's=s′ there is a finite chain s=x0,x1,…,xk=s′s = x_0, x_1, \dots, x_k = s's=x0​,x1​,…,xk​=s′ with k≥1k \ge 1k≥1 such that each step has Pxi,aM(xi+1)>0P^M_{x_i,a}(x_{i+1}) > 0Pxi​,aM​(xi+1​)>0 for some action aaa (possibly different at each step).
    • AAA has at least two elements.
  2. For all s,s′∈Ss, s' \in Ss,s′∈S and a∈Aa \in Aa∈A:
Ps,aM′(s′)=Ps,aM(s′).P^{M'}_{s,a}(s') = P^{M}_{s,a}(s').Ps,aM′​(s′)=Ps,aM​(s′).

Nothing is assumed about the distributions Ps,aˉM′(⋅)P^{M'}_{s,\bar a}(\cdot)Ps,aˉM′​(⋅) beyond their being probability distributions on SSS. No communicating or other assumption is imposed on M′M'M′ directly.

Goals. Let ψ\psiψ be an arbitrary composite goal over (S,A)(S, A)(S,A). There is no depth restriction; ψ\psiψ may be the empty disjunction or contain empty sequential goals. Let s0∈Ss_0 \in Ss0​∈S be arbitrary.

A composite goal is a finite list ψ=ψ1∨⋯∨ψm\psi = \psi_1 \vee \dots \vee \psi_mψ=ψ1​∨⋯∨ψm​ of sequential goals. Each sequential goal is a finite list ⟨φ1,…,φL⟩\langle \varphi_1, \dots, \varphi_L \rangle⟨φ1​,…,φL​⟩ of sub-goals. Each sub-goal φ=O(g)\varphi = O(g)φ=O(g) consists of an operator O∈{⊤ (Now),◯ (Next),◊ (Eventually)}O \in \{\top \text{ (Now)}, \bigcirc \text{ (Next)}, \Diamond \text{ (Eventually)}\}O∈{⊤ (Now),◯ (Next),◊ (Eventually)} and a set g⊆S×Ag \subseteq S \times Ag⊆S×A.

For an infinite trajectory τ=((s0,a0),(s1,a1),… )\tau = ((s_0,a_0),(s_1,a_1),\dots)τ=((s0​,a0​),(s1​,a1​),…), satisfaction of ⟨φ1,…,φL⟩\langle \varphi_1, \dots, \varphi_L \rangle⟨φ1​,…,φL​⟩ from time ttt is defined recursively:

  • The empty sequence is always satisfied.
  • If φ1=⊤(g)\varphi_1 = \top(g)φ1​=⊤(g): (st,at)∈g(s_t,a_t) \in g(st​,at​)∈g and the rest is satisfied from ttt.
  • If φ1=◯(g)\varphi_1 = \bigcirc(g)φ1​=◯(g): (st+1,at+1)∈g(s_{t+1},a_{t+1}) \in g(st+1​,at+1​)∈g and the rest is satisfied from t+1t+1t+1.
  • If φ1=◊(g)\varphi_1 = \Diamond(g)φ1​=◊(g): there is u≥tu \ge tu≥t such that (sv,av)∉g(s_v,a_v) \notin g(sv​,av​)∈/g for all t≤v<ut \le v < ut≤v<u, (su,au)∈g(s_u,a_u) \in g(su​,au​)∈g, and the rest is satisfied from uuu.

Then τ⊨ψ\tau \models \psiτ⊨ψ means that some disjunct ψj\psi_jψj​ is satisfied from time 000. In particular, an empty ψ\psiψ is never satisfied, and a ψ\psiψ containing an empty sequential goal is always satisfied.

The lifted goal. The lifted goal lift(ψ)\mathrm{lift}(\psi)lift(ψ) over (S,A′)(S, A')(S,A′) has the same list structure and the same operators. Each set ggg is replaced by its image {(s,a):(s,a)∈g}⊆S×A′\{(s, a) : (s,a) \in g\} \subseteq S \times A'{(s,a):(s,a)∈g}⊆S×A′, viewing a∈Aa \in Aa∈A as an element of A′A'A′. Hence no lifted goal set contains a pair whose action is aˉ\bar aaˉ.

Optimal success probability. For a process NNN with action set BBB, a policy is a deterministic, history-dependent map π\piπ. It sends a finite list of past state–action pairs and the current state to an action in BBB.

  • Wπ(s1′,…,sT′)W_\pi(s_1', \dots, s_T')Wπ​(s1′​,…,sT′​) is the probability of producing next states s1′,…,sT′s_1', \dots, s_T's1′​,…,sT′​ from s0s_0s0​: the product of the transition probabilities Psi,π(hi,si)N(si+1)P^N_{s_i, \pi(h_i, s_i)}(s_{i+1})Psi​,π(hi​,si​)N​(si+1​).
  • The prefix of T+1T+1T+1 pairs that π\piπ produces along these states decides ψ\psiψ if every infinite trajectory in (S×B)N(S \times B)^{\mathbb N}(S×B)N beginning with that prefix satisfies ψ\psiψ. This includes trajectories whose continuation is arbitrary, not necessarily generated by π\piπ or by NNN.

Define

pT(π)=∑(s1′,…,sT′)∈STWπ(s1′,…,sT′)⋅1[the prefix decides ψ],p_T(\pi) = \sum_{(s_1',\dots,s_T') \in S^T} W_\pi(s_1',\dots,s_T') \cdot \mathbf 1[\text{the prefix decides } \psi],pT​(π)=(s1′​,…,sT′​)∈ST∑​Wπ​(s1′​,…,sT′​)⋅1[the prefix decides ψ], Pr⁡(τ⊨ψ∣π,s0)=sup⁡T∈NpT(π),\Pr(\tau \models \psi \mid \pi, s_0) = \sup_{T \in \mathbb N} p_T(\pi),Pr(τ⊨ψ∣π,s0​)=T∈Nsup​pT​(π), optN(ψ,s0)=sup⁡πPr⁡(τ⊨ψ∣π,s0).\mathrm{opt}_N(\psi, s_0) = \sup_{\pi} \Pr(\tau \models \psi \mid \pi, s_0).optN​(ψ,s0​)=πsup​Pr(τ⊨ψ∣π,s0​).

All of these quantities lie in [0,1][0,1][0,1]. The outer supremum ranges over all deterministic history-dependent policies with actions in BBB.

Conclusion. The theorem asserts

optM(ψ,s0)  ≤  optM′(lift(ψ),s0).\mathrm{opt}_M(\psi, s_0) \;\le\; \mathrm{opt}_{M'}\big(\mathrm{lift}(\psi), s_0\big).optM​(ψ,s0​)≤optM′​(lift(ψ),s0​).

In words: the supremal probability of achieving ψ\psiψ from s0s_0s0​ in MMM, over deterministic history-dependent policies using actions in AAA, is at most the supremal probability of achieving the lifted goal from s0s_0s0​ in M′M'M′, over deterministic history-dependent policies that may also use aˉ\bar aaˉ.

Human review
  • Endorsed by Shuze Chen · Nov 23, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Xeroth · Nov 23, 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