Theorem 3 — coordinate descent (Algorithm 2) from halts within iterations and solves (OP)
ProvedTamingMonster.CoordDescent.coordinateDescent_halts_solves_OPLet actions, a finite nonempty policy class , a history with records, and a minimum probability with be given. Run Algorithm 2 on with , choosing in each Step 8 any policy with .
- Iteration bound. Every run executes Step 8 at most
times. Since a state that does not halt always admits a further Step 8, every run halts after at most this many updates. 2. Correctness. When a run halts at Step 10, the weight vector it outputs is a solution of (OP): it lies in and satisfies Eqs. (2) and (3).
This is the paper's computational guarantee: (OP) is feasible, and a solution is found with a number of oracle calls that depends only on , not on or .
Formalization Note (i) "Iterations" counts executions of Step 8 (the paper's proof on p. 10 bounds "the number of times Step 8 is executed"); the final pass that halts at Step 10 is not counted. (ii) The bound is compared in and not rounded. (iii) The printed statement uses of Algorithm 1; here is any value in , the range of . (iv) The paper's history allows ; here . (v) Algorithm 2 is encoded relationally: the bound holds for every run, whatever policy each Step 8 chooses.
import Mathlib import Definitions.Def_TamingMonster_CoordDescent_Setting import Definitions.Def_TamingMonster_CoordDescent_Algorithm
namespace TamingMonster.CoordDescent
/-- Theorem 3 (p. 6): Algorithm 2 with `Q_init := 0` halts in at most `4 ln(1/(Kμ))/μ`
iterations and outputs a solution `Q` to (OP).
(i) Every run from `Q_init = 0`, whatever policy each Step 8 picks among those with
`D_π > 0`, executes Step 8 at most `4 ln(1/(Kμ))/μ` times; since a state that does not halt
always admits a further Step 8, every run halts within that many updates.
(ii) When a run halts, its output `rescale Q⁽ⁿ⁾` solves (OP). -/
theorem coordinateDescent_halts_solves_OP {X : Type*} {K t : ℕ} (hK : 0 < K) (ht : 0 < t)
(Pi : Finset (X → Fin K)) (hPi : Pi.Nonempty) (H : History X K t)
(μ : ℝ) (hμ : 0 < μ) (hμK : μ ≤ 1 / (2 * (K : ℝ))) :
(∀ (n : ℕ) (Qs : ℕ → Pi → ℝ), IsRun Pi H μ (fun _ => 0) n Qs →
(n : ℝ) ≤ 4 * Real.log (1 / ((K : ℝ) * μ)) / μ) ∧
(∀ (n : ℕ) (Qs : ℕ → Pi → ℝ), IsRun Pi H μ (fun _ => 0) n Qs →
HaltsAt Pi H μ (Qs n) → SolvesOP Pi H μ (rescale Pi H μ (Qs n))) := by sorry
end TamingMonster.CoordDescent
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.