Theorem 1 (proof, eqs. (39)-(40)): the first action of a bounded agent witnesses a binomial inequality
ProvedGeneralAgentsWorldModels.theorem1_agent_choice_inequalitiesLet the environment satisfy Assumption 1 and let be a bounded goal-conditioned agent with failure rate for all goals in . Let satisfy , let be states, actions, , a state, and . Let , where asks the agent to take and then to achieve the transition at most times in attempts, and asks it to take and then to achieve it more than times. Write . Then the agent's first action is or , and
Formalization Note has depth , which is why is assumed. No condition is imposed, as in the statement of Theorem 1; the binomial formula of Lemma 6 also holds for (the successive visits to are i.i.d. trials by the strong Markov property).
import Mathlib import Definitions.Def_GeneralAgentsWorldModels_Basic open Finset
namespace GeneralAgentsWorldModels
theorem theorem1_agent_choice_inequalities {S A : Type*} [Fintype S] [DecidableEq S] [Fintype A]
(M : CMP S A) (hM : SatisfiesAssumption1 M) (π : GCPolicy S A) (δ : ℝ) (hδ : δ < 1)
(n m : ℕ) (hm : 2 * m + 1 ≤ n) (hπ : IsBoundedAgent M π δ n)
(s s' : S) (a b : A) (hab : a ≠ b) (k : ℕ) (s₀ : S) :
(π (abGoal a b s s' m k) [] s₀ = a ∨ π (abGoal a b s s' m k) [] s₀ = b) ∧
(π (abGoal a b s s' m k) [] s₀ = a →
binGE m (M.P s a s') (k + 1) * (1 - δ) ≤ binLE m (M.P s a s') k) ∧
(π (abGoal a b s s' m k) [] s₀ = b →
binLE m (M.P s a s') k * (1 - δ) ≤ binGE m (M.P s a s') (k + 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, a purely technical requirement) and 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 the following two conditions:
- Communicating. For any two distinct states , there is a finite chain with . Each step must have for some action , and that action may differ from step to step.
- Enough actions. .
Policies and the agent. A deterministic policy maps each history to an action. A history is a finite list of past state–action pairs together with the current state . A goal-conditioned policy assigns such a policy to every composite goal , where composite goals are defined below. Let be a real number with . Let satisfy .
Assume is a bounded agent with failure rate and depth . This assumption includes , so together with the first hypothesis . It also requires that for every composite goal of depth at most and every initial state ,
"Depth at most " means that is a non-empty list of sequential goals, and each of them has between and sub-goals.
The success probability of a deterministic policy is defined as follows:
- Start at state with empty history.
- chooses each action, and the next state is drawn according to .
- For each , compute the probability that the first state–action pairs already guarantee . "Guarantee" means that every infinite sequence of state–action pairs beginning with this prefix satisfies . These continuations are arbitrary and need not be generated by or .
- The success probability is the supremum of these probabilities over .
is the supremum of this success probability over all deterministic history-dependent policies .
Goal semantics. A composite goal is a list of sequential goals. It is satisfied by an infinite trajectory if some sequential goal in the list is satisfied starting at time . A sequential goal is a list of sub-goals, each consisting of a set and an operator. The empty list is satisfied. A list is evaluated at time according to the operator of :
-
Now: , and the rest of the list is satisfied at .
-
Next: , and the rest is satisfied at .
-
Eventually: there is a such that
- for all ,
- , and
- the rest is satisfied at .
In other words, is the first time at or after at which the trajectory is in .
The specific goal. Fix states (possibly equal) and actions . Fix and an initial state .
For an action and a pattern , let be the sequential goal
Here:
- means "Eventually, the state is and the action is ".
- is "Next, the state equals " if is true, and "Next, the state is not " if is false.
- has sub-goals.
Let be the composite goal formed by these disjuncts:
- for every with at most entries true, and
- for every with more than entries true.
When (in particular when ), the second family is empty. Let
be the agent's first action from under goal .
Binomial quantities. Let . Define
with these conventions:
- .
- In , terms with vanish because . Their exponent is truncated to , which does not matter.
- is the empty sum when .
Conclusion. All three of the following hold:
- or .
- If , then .
- If , then .
Degenerate case. When , we have and . Then statement 3 would require , which is impossible since . So in that case the conclusion forces .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.