Theorem 1 (proof, eqs. (41)-(42), (54)-(56)): a relaxed median of is close to
ProvedGeneralAgentsWorldModels.theorem1_binomial_quantile_boundLet with , let , and let satisfy the relaxed median conditions (41)-(42):
Then
This is the step from the agent's goal-switching point to the error of the estimate .
Formalization Note The paper derives (56) from (42) and the one-sided Chebyshev inequality (54), which bounds from above; the bound on uses (41) and the lower one-sided Chebyshev inequality in the same way. Both directions are stated.
import Mathlib import Definitions.Def_GeneralAgentsWorldModels_Basic open Finset
namespace GeneralAgentsWorldModels
theorem theorem1_binomial_quantile_bound (m : ℕ) (p δ : ℝ) (hp₀ : 0 ≤ p) (hp₁ : p ≤ 1)
(hδ₀ : 0 ≤ δ) (hδ₁ : δ < 1) (k : ℕ)
(hle : (1 - δ) / (2 - δ) ≤ binLE m p k) (hge : (1 - δ) / (2 - δ) ≤ binGE m p k) :
|(k : ℝ) - m * p| ≤ Real.sqrt (m * p * (1 - p) / (1 - δ)) := by sorry
end GeneralAgentsWorldModelsRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
For every natural number , all real numbers and , and every natural number , the statement assumes the following:
- ;
- , where the upper bound is strict;
- the lower-tail condition
- the upper-tail condition
Under these assumptions it concludes
The two sums. Each summand is the binomial probability mass at . This follows the convention .
- The first sum is the probability that a Binomial variable is at most .
- The second sum is the probability that is at least .
In the first sum, the index may exceed when . The exponent is then computed with natural-number subtraction, which truncates at . Those terms still vanish, because for .
If , the range is empty and the second sum is .
The threshold. Because , the quantity lies in . It equals exactly when .
Since this threshold is strictly positive, the upper-tail condition can only hold when . In other words, the hypotheses together say that is a value at which both tails of the Binomial distribution have probability at least .
The right-hand side. The denominator is strictly positive, and , so the square root is the ordinary nonnegative real square root of a nonnegative number.
Degenerate cases. When , , or , the right-hand side is . In those cases the conclusion asserts exactly .
Scope. The statement involves only these binomial quantities. It makes no reference to any controlled Markov process, policy, goal, or agent.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.