Theorem 4, first claim (as proved): optimal deterministic agents on width-2 goals recover transitions with error
ProvedGeneralAgentsPO.theorem4_width_two_optimalLet be finite sets with , and fix and . Then there are constants and with the following property. For every there is an estimator , a function of the goal-conditioned policy alone, such that for every communicating cMDP and every deterministic goal-conditioned policy that is optimal on (the goals of depth and width ),
So optimality on a set of goals far smaller than already determines the world model, at a faster rate than Theorem 1.
Formalization Note "Error scaling as " is written with explicit constants that may depend on but not on , or . "Optimal" is -optimal. The hypothesis is added: with a single action every policy is optimal and carries no information. contains only goals of depth exactly . Some goals queried in the paper's proof, such as , have smaller depth. The fix is routine: prepending to a sequential goal raises its depth without changing its meaning or width, and can replace in the test .
import Mathlib import Definitions.Def_GeneralAgentsPO_Basic open GeneralAgentsWorldModels
namespace GeneralAgentsPO
theorem theorem4_width_two_optimal {S A : Type*} [Fintype S] [DecidableEq S] [Fintype A]
[DecidableEq A] (hA : 2 ≤ Fintype.card A) (s s' : S) (a : A) :
∃ C : ℝ, ∃ N : ℕ, ∀ n ≥ N, ∃ est : GCStochPolicy S S A → ℝ, ∀ M : CMP S A, M.IsCommunicating →
∀ π : GCStochPolicy S S A, (∀ ψ, (π ψ).IsDeterministic) →
IsDeltaOptimal M 0 (PsiDepthWidth (2 * n + 1) 2) π →
|est π - M.P s a s'| ≤ C * Real.log n / n := by sorry
end GeneralAgentsPORead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Fix finite, nonempty types (states) and (actions), both with decidable equality, and assume . Fix two states and an action . The theorem asserts the following.
There exist a real constant and a natural number such that for every natural number there exists a function with the property below. The function assigns a real number to every goal-conditioned stochastic policy.
For every controlled Markov process that is communicating, and every goal-conditioned policy satisfying the two hypotheses listed next, we have
The two hypotheses on are:
- For every goal , the policy is deterministic.
- is exactly optimal () on the class .
The order of quantifiers matters:
- and may depend only on .
- may depend on (and on ), but not on .
- The same must work simultaneously for all communicating and all qualifying .
- receives the entire goal-conditioned policy as input, i.e. its behaviour on every goal and every history, not only on goals in .
- Nothing requires to be computable or to use only finitely many queries to .
- The notions "communicating", the transition probability , goals and their satisfaction come from an imported file not shown here.
Goals. A goal is a finite list (a disjunction) of sequential goals, each of which is a finite list of basic sub-goals.
- The depth of is the maximum length of its sequential goals, and is for the empty list.
- The width of is the number of sequential goals in the list.
- is the set of goals with exactly two sequential goals (counted as list entries, so repeats are allowed) whose longer member has length exactly .
Policies. A stochastic policy assigns to every finite history a probability distribution on . It is deterministic if for every history some action has probability exactly . A goal-conditioned policy is a map from goals to stochastic policies on state histories.
Goal probabilities. For a policy , start state and a sequence , the prefix probability is
Next, is the sum of these prefix probabilities over all length- sequences that "decide" . Here "decide" is a predicate from the imported file, described there as: every infinite history extending satisfies .
The probability that achieves from is
The optimal value is
with the supremum taken over all stochastic, history-dependent policies. Both suprema are taken in , where the convention for a set that is not bounded above is the value .
Exact optimality. " is -optimal on " means that for every and every state ,
Edge cases.
- In the bound, is the real logarithm with the convention , and division by yields . So for the right-hand side is , and for it is also , since . Either case would demand exact recovery of ; however, may be chosen large enough to exclude these .
- is not required to be nonnegative.
- If, for a given , no communicating admits a policy that is both deterministic on every goal and exactly optimal on , the conclusion for that holds vacuously.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.