Lemma 5: factoring a Now sub-goal
ProvedGeneralAgentsWorldModels.lemma5_factor_nowLet the environment satisfy Assumption 1, let with , and let be a deterministic policy with , i.e. it takes action at time from . Then
Formalization Note As in eq. (4), the remaining sub-goals after a Now sub-goal are evaluated from the same time step; may depend on the whole history.
import Mathlib import Definitions.Def_GeneralAgentsWorldModels_Basic open Finset
namespace GeneralAgentsWorldModels
theorem lemma5_factor_now {S A : Type*} [Fintype S] [DecidableEq S] [Fintype A]
(M : CMP S A) (hM : SatisfiesAssumption1 M) (π : Policy S A) (a : A)
(rest : SeqGoal S A) (s₀ : S) (h₀ : π [] s₀ = a) :
succProb M [nowAct a :: rest] π s₀ = succProb M [rest] π s₀ := by sorry
end GeneralAgentsWorldModelsRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Let be a finite set of states with decidable equality, and let be a finite set of actions. Let be a controlled Markov process on and . It is given by transition numbers for and , with for every and . These numbers do not depend on time.
Assume satisfies Assumption 1:
- Communicating: for any two distinct states there is a finite chain with . Each step must satisfy for some action .
- Enough actions: .
Policy and goals. Let be an arbitrary deterministic, history-dependent policy. It maps a finite history (a list of past state–action pairs) together with the current state to an action. Further, let:
- be an action;
- be an arbitrary sequential goal, i.e. a finite list of sub-goals; (the empty list) is allowed;
- be a state.
Assume that , given the empty history and current state , chooses action :
Conclusion. The theorem then asserts the equality
Both sides are composite goals with exactly one disjunct.
- The left disjunct is with the sub-goal prepended.
- is the "Now" sub-goal whose goal set is .
Sub-goals. Each sub-goal has a temporal operator (Now, Next, Eventually) and a set .
Satisfaction of a sequential goal. Let be any infinite sequence of state–action pairs. Satisfaction of a sequential goal from time is defined recursively:
- The empty sequential goal is satisfied at every .
- holds at iff and rest holds at . Time does not advance.
- holds at iff and rest holds at .
- holds at iff there is some such that:
- for all ,
- , and
- rest holds at .
A composite goal (a list of sequential goals) is satisfied by iff at least one of its sequential goals holds at time .
Success probability. The quantity is defined as
The supremum is taken in ; by the real-number convention it would be if the set were unbounded above. The terms are:
- Actions: .
- Path weight: , with the empty product equal to when .
- Decides: a finite prefix of length decides iff every infinite sequence of state–action pairs agreeing with that prefix in its first entries satisfies . These sequences range over all of , not only those consistent with or .
Edge cases.
- When is empty, the right-hand side is the success probability of the composite goal consisting of the single empty sequential goal. That goal is satisfied by every trajectory.
- The left-hand side is then the success probability of the single sub-goal .
- Neither goal is required to lie in any depth class .
Scope. The statement is about one fixed policy , not about optimal or supremal probabilities. Its only link between and is the first action condition .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.