一句话:定义单子式 SDP 的正确性,给出三个条件证明单子逆向归纳正确,并在 Idris 中形式化。
有限视野序列决策问题常用 Bellman 逆向归纳求解。Botta 等人提出的单子式 SDP 框架用 monad 抽象不确定性、用通用 measure 聚合奖励,但其逆向归纳的正确性尚未明确。本文为单子式 SDP 定义正确性,并给出三个条件,证明单子逆向归纳具有与教科书证明相当的正确性。这些条件可用 Eilenberg–Moore 代数以范畴论表述,在确定性和随机 SDP 等常见情形成立,也存在反例。结果表明逆向归纳可安全用于比教科书更广的 SDP 类,但排除了该框架中曾被视为可接受的一些实例。全部结果在 Idris 中形式化。
Abstract In control theory, to solve a finite-horizon sequential decision problem (SDP) commonly means to find a list of decision rules that result in an optimal expected total reward (or cost) when taking a given number of decision steps. SDPs are routinely solved using Bellman’s backward induction. Textbook authors (e.g. Bertsekas or Puterman) typically give more or less formal proofs to show that the backward induction algorithm is correct as solution method for deterministic and stochastic SDPs. Botta, Jansson and Ionescu propose a generic framework for finite horizon, monadic SDPs together with a monadic version of backward induction for solving such SDPs. In monadic SDPs, the monad captures a generic notion of uncertainty, while a generic measure function aggregates rewards. In the present paper, we define a notion of correctness for monadic SDPs and identify three conditions that allow us to prove a correctness result for monadic backward induction that is comparable to textbook correctness proofs for ordinary backward induction. The conditions that we impose are fairly general and can be cast in category-theoretical terms using the notion of Eilenberg–Moore algebra. They hold in familiar settings like those of deterministic or stochastic SDPs, but we also give examples in which they fail. Our results show that backward induction can safely be employed for a broader class of SDPs than usually treated in textbooks. However, they also rule out certain instances that were considered admissible in the context of Botta et al. ’s generic framework. Our development is formalised in Idris as an extension of the Botta et al. framework and the sources are available as supplementary material.