Lemma 1: a deterministic Markov policy reaches any state with probability 1
ProvedGeneralAgentsWorldModels.lemma1_markov_policy_reaches_stateLet the environment satisfy Assumption 1 (a finite, stationary, communicating controlled Markov process with at least two actions) and let . Then there is a deterministic Markov policy (taking action at time ) that, started from any state , eventually reaches with probability one:
This is the navigation primitive used to return to a fixed state between the repeated trials of Lemma 6.
import Mathlib import Definitions.Def_GeneralAgentsWorldModels_Basic open Finset
namespace GeneralAgentsWorldModels
theorem lemma1_markov_policy_reaches_state {S A : Type*} [Fintype S] [DecidableEq S] [Fintype A]
(M : CMP S A) (hM : SatisfiesAssumption1 M) (s' : S) :
∃ μ : S → A, ∀ s : S, s ≠ s' →
succProb M [[evState s']] (fun _ x => μ x) s = 1 := 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 , given by a transition function satisfying, for every and ,
The function does not depend on time.
Hypothesis. satisfies "Assumption 1", which consists of two conditions:
- Communicating. For every pair of distinct states , there is a finite chain with . Each step must have for some action , and that action may depend on the step.
- At least two actions. .
Fix a target state .
Conclusion. There exists a function with the following property. Let be the policy that, given any history and current state , plays . This is a stationary deterministic policy that ignores the history. Then for every starting state with ,
where is the composite goal consisting of a single disjunct. That disjunct is a sequential goal with a single sub-goal, "eventually ". Unfolded, the success probability is
with the following conventions:
- , and the supremum is the real-number supremum.
- The prefix is .
- "Decides " means that every infinite sequence of state–action pairs extending this prefix satisfies . The extensions are arbitrary and need not be consistent with or .
- An infinite sequence satisfies iff there is a time at which the state equals , with the state differing from at all earlier times. This is equivalent to the state equaling at some time.
Because makes have at least two elements, an extension can avoid forever. So the prefix decides exactly when some with equals . The -th term is therefore the probability that the chain with kernel , started at , visits within the first steps. The conclusion says the supremum of these finite-horizon probabilities equals .
Edge cases.
- The statement makes no claim about the starting state .
- If , the conclusion holds vacuously for any . Such a exists because makes nonempty.
- A single must work simultaneously for all starting states .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.