                                              Safety-Polarized and Prioritized Reinforcement Learning



(A1) (Non-expansiveness of F ). ∀X, Y ∈ Rd , ∥F (X) − F (Y )∥∞ ≤ ∥X − Y ∥∞ .

(A2) (Boundedness). ∥ supt≥0 Xt ∥∞ < +∞ almost surely.

                                                                                                                               2

                                                                                                    P                 P

(A3) (Diminishing step sizes). The sequence {βt }t≥0 satisfies 0 < βt ≤ 1 and                          t≥0 βt = +∞,       t≥0 βt < +∞.



(A4) (Martingale difference noise). Let Ft be the σ-algebra generated by (X0 , M0 , . . . , Xt , Mt ). There exists K > 0 such

     that ∀t, E[Mt+1 |Ft ] = 0 and E[∥Mt+1 ∥2∞ |Ft ] ≤ K(1 + ∥Xt ∥2∞ ).



Under the above assumptions, if H := {X ∈ Rd | F (X) = X} is non-empty, then Xt → X ∗ a single point in H

(depending on X0 ).



Claim. The ψ backup operator F in Equation (25) is non-expansive.



   • Proof of Claim. This is due to, for any ψ, ϕ ∈ R|S||A| , and for any s ∈ S, a ∈ A,



                   F (ψ; s, a) − F (ϕ; s, a)



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

                                                    ′

                                                        ψ(s′ , a′ )} − max{I[s ∈ Su ], Es′ ∼P (·|s,a) min

                                                                                                      ′

                                                                                                          ϕ(s′ , a′ )}

                                                                            a ∈A                                  a ∈A

                                                         ′    ′                             ′   ′

                   ≤ Es′ ∼P (·|s,a) min

                                    ′

                                        ψ(s , a ) − Es′ ∼P (·|s,a) min

                                                                   ′

                                                                       ϕ(s , a )

                                            a ∈A                                    a ∈A

                                              ′    ′              ′     ′

                   ≤ ′ max′               ψ(s , a ) − ϕ(s , a )

                      s ∈S,a ∈A



                   = ∥ψ − ϕ∥∞ .



Claim. ψt is bounded: ∀t ≥ 0, ∥ψt ∥∞ ≤ 1.



   • Proof of Claim. We prove this by induction. First ψ0 = 0 and the claim holds at t = 0. Assume now the claim holds

     at t. For t + 1, if (s, a) ̸= (st , at ) then |ψt+1 (s, a)| = |ψt (s, a)| ≤ 1; if (s, a) = (st , at ), then, since 0 < βt ≤ 1 we

     have,

                          |ψt+1 (st , at )| ≤ (1 − βt )|ψt (st , at )| + βt | max{I[st ∈ Su ], min

                                                                                               ′

                                                                                                   ψt (st+1 , a′ )}|

                                                                                                           a ∈A

                                                       ≤ (1 − βt ) + βt = 1.

      Therefore ∥ψt+1 ∥∞ ≤ 1 and then the claim holds for all t ≥ 0.



Claim. The noise term Mt+1 in Equation (26) satisfies: ∀t, E[Mt+1 |Ft ] = 0 and E[∥Mt+1 ∥2∞ |Ft ] ≤ 4.



   • Proof of Claim. First, using |ψt (s, a)| ≤ 1 and considering whether st ∈ Su or not, one can easily see that

                                                                 h                                          i

                                                                                                         ′

                              E[Mt+1 |Ft ] = Est+1 ∼P (·|st ,at ) max{I[st ∈ Su ], min     ψ   (s

                                                                                              t t+1   , a  )

                                                                                     a′ ∈A

                                                   n                             h                   io

                                                                                               ′ ′

                                            − max I[st ∈ Su ], Es′ ∼P (·|st ,at ) min

                                                                                   ′

                                                                                         ψ t (s , a )

                                                                                                    a ∈A

                                                             = 0.

      Second, again by ∥ψt ∥∞ ≤ 1,

       E[∥Mt+1 ∥2∞ |Ft ]

                                 h                                                  n                              h                 io 2 i

                                                                          ′                                                   ′ ′

        = Est+1 ∼P (·|st ,at )           max{I[st ∈ Su ], min

                                                          ′

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

                                                                                                             t t

                                                                                                                     min

                                                                                                                     ′

                                                                                                                         ψt (s , a )

                                                                      a ∈A                                            a ∈A

                                     h                                                  2

       ≤ 2Est+1 ∼P (·|st ,at ) max{I[st ∈ Su ], min     ψt (st+1 , a′ )

                                                a′ ∈A

              n                             h                  io 2 i

                                                         ′ ′

       + max I[st ∈ Su ], Es′ ∼P (·|st ,at ) min

                                              ′

                                                   ψ t (s , a )

                                                              a ∈A

        ≤ 4.

      This proves the claim.



                                                                                   15

