Theorem 1 — error bound for least-squares approximate policy iteration with lookahead
ProvedLookaheadAPI.LeastSquares.theorem_1Let be a finite discounted MDP with rewards in and . Run Algorithm 2 with lookahead , rollout length , lookahead accuracy , feature matrix and evaluation sets , and suppose Assumption 1 holds: for every , and for all , for some . Let
If
then for every and every deterministic policy ,
The condition says that the combined lookahead and rollout depth must be large enough to offset the amplification of the least-squares fit; under it the policies of approximate policy iteration with linear value-function approximation converge geometrically to within the asymptotic component of optimal.
Formalization Note Algorithm 2 never defines , which appears in the bound; the run's is unconstrained, so the bound holds for every deterministic . is the supremum over all and all deterministic policies (the literal reading of ). The condition on is kept as printed, with Lean's real logarithm; when (possible only if ) it reads . At the middle term is .
import Mathlib import Definitions.Def_LookaheadAPI_LeastSquares_MDP import Definitions.Def_LookaheadAPI_LeastSquares_LSOperator import Definitions.Def_LookaheadAPI_LeastSquares_Algorithms
namespace LookaheadAPI.LeastSquares
/-- Theorem 1 (arXiv:2109.13419v7, p. 14, (10)): if `m + H − 1 > log(δ_FV)/log(1/α)`, then under
Assumption 1 every run of Algorithm 2 satisfies, for every `k` (and `μ_0` any deterministic
policy),
`‖J^{μ_k} − J^*‖_∞ ≤ α^{kH}/(1−α) + (2α^H ‖J^{μ_0} − J_0‖_∞/(1−α)) k max(α^H, β)^{k−1}
+ (2α^H τ/(1−β) + ε_LA)/((1−α^H)(1−α))`, with `β = α^{m+H−1}δ_FV` and
`τ = (α^m + α^{m+H−1})/(1−α) δ_FV + δ_app + δ_FV ε_PE`. -/
theorem theorem_1 {S A : Type*} [Fintype S] [DecidableEq S] [Nonempty S] [Fintype A]
[DecidableEq A] [Nonempty A] (M : MDP S A) {d : ℕ} (Φ : Matrix S (Fin d) ℝ)
(D : ℕ → Finset S) (m H : ℕ) (hH : 1 ≤ H) (εLA εPE : ℝ)
(hmH : ((m + H - 1 : ℕ) : ℝ) > Real.log (deltaFV Φ D) / Real.log (1 / M.α))
(J : ℕ → S → ℝ) (μ : ℕ → S → A) (w : ℕ → S → ℝ) (θ : ℕ → Fin d → ℝ)
(hA1 : Assumption1 Φ D w εPE)
(hrun : IsRunAlg2 M Φ D m H εLA J μ w θ) (k : ℕ) :
‖valueOf M (μ k) - optValue M‖ ≤
M.α ^ (k * H) / (1 - M.α) +
2 * M.α ^ H * ‖valueOf M (μ 0) - J 0‖ / (1 - M.α) * k *
max (M.α ^ H) (betaLS M Φ D m H) ^ (k - 1) +
(2 * M.α ^ H * (tauLS M Φ D m H εPE / (1 - betaLS M Φ D m H)) + εLA) /
((1 - M.α ^ H) * (1 - M.α)) := by sorry
end LookaheadAPI.LeastSquares
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.