Theorem 3 (proof, eq. (5)): the uniformly random observation-based policy achieves with probability
ProvedGeneralAgentsPO.theorem3_uniform_policy_visit_probabilityLet be a finite partially observable cMDP whose cMDP is communicating, and let be the observation-based policy that always picks an action uniformly at random: for every finite observation history and every . Let , , , and for let . Then for every start state
This is the step of the proof of Theorem 3 (built on eq. (5)) showing that, for goals phrased in states, the observation kernel plays no role for a policy that ignores its observations. In a finite communicating cMDP the uniformly random policy visits infinitely often.
import Mathlib import Definitions.Def_GeneralAgentsPO_Basic open GeneralAgentsWorldModels
namespace GeneralAgentsPO
theorem theorem3_uniform_policy_visit_probability {S A O : Type*} [Fintype S] [DecidableEq S]
[Fintype A] [DecidableEq A] [Fintype O] (M : POCMP S A O) (hM : M.toCMP.IsCommunicating)
(π : StochPolicy O A) (hπ : ∀ h o c, π.act h o c = 1 / Fintype.card A)
(s s' : S) (a : A) (n : ℕ) (w : Fin n → Bool) (s₀ : S) :
obsGoalProb M π [visitSeq s a s' (List.ofFn w)] s₀ =
M.P s a s' ^ onesCount w * (1 - M.P s a s') ^ (n - onesCount w) := by sorry
end GeneralAgentsPORead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. Let , , be types (states, actions, observations). All three are finite, and and have decidable equality. Let be a partially observable controlled Markov process on , consisting of:
- an underlying controlled Markov process with transition function . Its structure and the axioms on come from an imported definitions file that is not shown here.
- an observation kernel with and for every .
Since a state is supplied below, is nonempty. A nonempty forces to be nonempty, because otherwise the normalisation is impossible.
Hypotheses.
- Communicating. The underlying controlled Markov process is assumed to be communicating. This notion is defined in the imported file, which is not shown.
- Uniform policy. is an observation-based stochastic policy. For every finite history of observation–action pairs, every current observation and every action , it assigns probability , with these probabilities summing to over . The hypothesis requires
so is the uniform policy, ignoring both history and observation.
- Empty action set. If is empty, then is the junk value . In that case no policy can exist at all, because the empty sum cannot equal , and the statement is vacuously true.
- Remaining data. The remaining data are arbitrary:
- states ;
- an action ;
- a natural number (possibly );
- a word ;
- an arbitrary initial state , with no relation to assumed.
The goal. The goal is a disjunction with exactly one disjunct, namely the sequential goal
of length . Here:
- ;
- , where if and if .
The meanings of evVisit, nextIn, of satisfying a sequential/composite goal, and of the finite-prefix test "decides" are in the imported file, which is not shown. According to the comments, reads "eventually the state is and the action is ", and reads "at the next step the state lies in ". For the sequential goal is the empty sequence.
The probability being computed. Let and , so . The left-hand side is the observation-based goal probability
Here " decides " is the imported finite-prefix test, described in comments as "every history with this prefix satisfies ". The prefix probability is
The supremum is taken in the real numbers. If the family were unbounded above, the supremum would take the junk value .
Conclusion. Under these hypotheses, the theorem asserts the exact equality
In particular:
- The value is independent of , of , and of which positions of carry the ones.
- For the right-hand side is .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.