Lemma 3: factoring an Eventually sub-goal
ProvedGeneralAgentsWorldModels.lemma3_factor_eventuallyLet the environment satisfy Assumption 1, let with , and let be a deterministic stationary Markov policy that, from , eventually reaches and takes there with probability one. Then
For the right-hand side is the probability of the empty sequential goal, which is .
import Mathlib import Definitions.Def_GeneralAgentsWorldModels_Basic open Finset
namespace GeneralAgentsWorldModels
theorem lemma3_factor_eventually {S A : Type*} [Fintype S] [DecidableEq S] [Fintype A]
(M : CMP S A) (hM : SatisfiesAssumption1 M) (μ : S → A) (sg : S) (ag : A)
(rest : SeqGoal S A) (s₀ : S)
(hreach : succProb M [[evVisit sg ag]] (fun _ x => μ x) s₀ = 1) :
succProb M [evVisit sg ag :: rest] (fun _ x => μ x) s₀ =
succProb M [rest] (fun _ x => μ x) sg := 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 a finite set of actions. Let be a controlled Markov process on and , with transition probabilities and for every and . These probabilities do not depend on time.
Hypotheses. Assume satisfies the following:
- Communicating: for every pair of distinct states there is a finite chain with . Each step must have for some action .
- Two actions: .
Fix also:
- a function , used as a deterministic memoryless policy: at every time the action is of the current state, regardless of history;
- a target state and a target action ;
- an arbitrary finite list of sub-goals , where is allowed;
- an initial state .
Sub-goals and their satisfaction. Each sub-goal consists of an operator and an arbitrary set .
For an infinite sequence of state–action pairs and a time , satisfaction of a list of sub-goals is defined recursively:
-
The empty list is always satisfied.
-
If the first operator is : require , and the remaining list is satisfied from time .
-
If the first operator is : require , and the remaining list is satisfied from time .
-
If the first operator is : there is some such that
- for all ,
- , and
- the remaining list is satisfied from time .
So is the first time at or after that lies in , and the rest of the list is evaluated starting at that same time .
A one-disjunct composite goal is satisfied by iff the list is satisfied from time .
Success probability. For a goal and a start state , let denote the following quantity:
where and the prefix is
"The prefix decides " means that every infinite sequence in that begins with this prefix satisfies . This includes continuations that are not consistent with or with .
Assumption on reaching the target. Assume:
i.e. the probability (in the above sense) of eventually being in state while taking action equals . Since the action taken in is always , this hypothesis can only hold if . Otherwise the left side is .
Conclusion. Under these hypotheses:
- On the left, the list is evaluated starting at the first time the trajectory from is at .
- On the right, it is evaluated from time of a fresh trajectory started at under the same policy .
- When , the right side is the probability of the always-true goal, which is for every . The claim then reduces to the hypothesis.
- No restriction is placed on the number or form of the , and no bound is placed on the goal depth.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.