                                    Safety-Polarized and Prioritized Reinforcement Learning



B.3. Proof of Theorem 4.3

Proof : We convert the update of ψt to an equivalent undiscounted Q-function update as follows. Consider the following

undiscounted infinite horizon MDP Mu := (S, A, ru , P, ρ) where

                                                         (

                                                          −1, s ∈ Su ,

                                             ru (s, a) =

                                                            0, otherwise.



Let Qπu (s, a) := limN →∞ QπN (s, a), where

                                                             −1

                                                          h NX                                  i

                                      QπN (s, a) := Eπ            ru (si , ai ) | s0 = s, a0 = a .

                                                            i=0



Since Su consists of absorbing states, Qπu (s) > −∞, ∀π, s. Clearly, Prτ ∼(π,P ) [∃st ∈ τ : st ∈ Su |s0 = s, a0 = a] =

−Qπu (s, a). Then ψ π (s, a) = −Qπu (s, a) and ψ ∗ (s, a) = −Q∗u (s, a), where Q∗u (s, a) is the optimal undiscounted Q-value

in Mu . Furthermore,



                     ψt+1 (s, a) = max{I[s ∈ Su ], Es′ ∼P (·|s,a) min

                                                                  ′

                                                                      ψt (s′ , a′ )}

                                                                        a ∈A

                      ⇔      Qu,t+1 (s, a) = ru (s, a) + Es′ ∼P (·|s,a) max

                                                                         ′

                                                                            [Qu,t (s′ , a′ )] =: LQu,t (s, a).

                                                                            a ∈A





According to Theorem 7.3.10. of Puterman (1994), starting from Qu,0 = 0, the iterative update Qu,t+1 = LQu,t converges

monotonically to Q∗u , which is equivalent to the convergence of ψt to ψ ∗ starting from ψ0 = 0. In this way we complete the

proof.







B.4. Proof of Theorem 4.4

Proof. First consider the ψ update,



                        ψt+1 (st , at ) = (1 − βt )ψt (st , at ) + βt max{I[st ∈ Su ], min         ψt (st+1 , a′ )}

                                                                                             a′ ∈A

                                                                                                                      (24)

                                        = ψt (st , at ) + βt F (ψt ; st , at ) − ψt (st , at ) + Mt+1 .



where F : R|S||A| → R|S||A| is the ψ backup operator defined by



                                  F (ψ; s, a) := max{I[s ∈ Su ], Es′ ∼P (·|s,a) min

                                                                                ′

                                                                                    ψ(s′ , a′ )}                        (25)

                                                                                      a ∈A



and the noise term



             Mt+1 := max{I[st ∈ Su ], min

                                      ′

                                          ψt (st+1 , a′ )} − max{I[st ∈ Su ], Es′ ∼P (·|st ,at ) min

                                                                                                 ′

                                                                                                     ψt (s′ , a′ )}.    (26)

                                            a ∈A                                                           a ∈A





The associated ordinary differential equation (ODE), with initial condition ψ(0) = ψ0 = 0, is



                                                           ψ̇ = F (ψ) − ψ.                                              (27)



The following lemma is borrowed from Borkar (2008), Page 127, Theorem 4.

Lemma B.1. (Borkar, 2008). Consider a stochastic approximation algorithm



                                       Xt+1 = Xt + βt [F (Xt ) − Xt + Mt+1 ],                t ≥ 0,



where Xt ∈ Rd , F : Rd → Rd . Let the associated ODE be ẋ(t) = F (x(t)) − x(t) starting from x(0) = X0 . Define the

L∞ -norm ∥X∥∞ := maxi∈[d] |Xi |. Assume:



                                                                   14

