Repository · Full text

Anytime Posterior Sampling
under Nested CVaR Constraints

Read PDF

HTML version 1 Added

Papers are listed without authors and are not intended for submission or formal publication.

Contents

Anytime Posterior Sampling
under Nested CVaR Constraints

Abstract

We develop an anytime posterior-sampling algorithm for finite episodic Markov decision processes with unknown transitions and a separate nested upper-tail CVaR constraint. The method extends the bounded-violation posterior-sampling framework of Kalagarla et al. [18] beyond additive expected-cost constraints to time-consistent tail risk. This extension faces a structural obstruction: when action randomization lies inside CVaR, generic threshold tightening can cause a constant value loss and a strict scalar duality gap. Our solution is a risk bank that sparsely executes minimum-risk policies and uses their sampled-model slack to support untightened constrained planning. With known rewards and costs, model-wise strict feasibility on the support of an arbitrary prior, and exact posterior-sampling and constrained-planning oracles, the learner needs neither a common feasible baseline, the induced feasibility gap, nor the learning horizon. For fixed problem parameters, we prove a O~⁢(K) upper bound on signed Bayesian reward shortfall after K episodes, a K-independent upper bound on expected signed risk-value debt, and a sublinear number of calibration episodes. The comparator is a randomized physical-state Markov policy, and risk control is a signed aggregate guarantee rather than per-episode safety. A support-size-independent CVaR–Hellinger inequality and distorted-occupancy analysis quantify the dependence on tail mass and horizon. We also establish a fixed-K high-probability certificate, a two-model lower bound attaining the worst-case rare-event risk-debt exponent, and NP-completeness of a one-state planning subclass at every fixed rational tail mass in (0,1).

Note. This paper was generated entirely by AI, including MiMo, using an automated research pipeline developed by Chenghua Liu and Hanyu Li.

1 Introduction

This paper asks whether posterior sampling can learn under a separate, time-consistent tail-risk constraint without being given a common feasible policy, a numerical feasibility gap, or the number of episodes. The challenge is structural: nested CVaR is nonlinear in randomized actions and evaluates model error under a tail-distorted path law rather than the nominal visitation law that produces data.

Posterior sampling is well understood for unconstrained MDPs [26, 27]. For additive expected-cost constraints, Kalagarla et al. [18] obtain near-square-root Bayesian reward regret and bounded signed violation without requiring a supplied safe policy. Their linear mixing, vanishing-tightening, and additive simulation arguments do not transfer to the nested-risk setting. We therefore work in an explicit oracle model: exact draws from the conditional posterior and exact solutions of the known-model constrained problem are available.

The comparator is a randomized Markov policy on the physical state, with its action randomization inside each CVaR operator. This choice is deliberate. A policy that is Markov in an augmented risk-budget state is generally history-dependent relative to the physical state, while drawing one deterministic policy per episode places the randomization outside CVaR. Both alternatives change the feasible set.

Our contributions are:

  • •

    For every α∈(0,1), an interior one-stage construction gives a constant value jump under arbitrarily small positive tightening and a strict scalar duality gap. Thus tightening cannot serve as a generic every-episode device in this policy class.

  • •

    An anytime risk bank uses computed sampled-model slack to decide when to run a polynomial-time minimum-risk calibration policy. Under model-wise strict feasibility, it gives explicit one-sided bounds: signed Bayesian reward shortfall is near K, expected signed risk-value debt has a K-independent upper bound, and NKcal≤(TK+τ)/Δ∗ almost surely. For a fixed problem, TK=O~⁢(Wα,H⁢S⁢A⁢K), so calibration is sparse.

  • •

    We prove a support-size-independent CVaR–Hellinger inequality and combine it with distorted occupancy and posterior symmetry. Within this proof framework, Hellinger confidence saves one half-power of the tail mass relative to total variation and yields product weights with the correct worst-case rare-event exponent.

  • •

    For each fixed rational α∈(0,1), rational one-state planning is NP-complete; the rational general problem lies in ∃R. A two-model rare-chain family matches the risk-debt exponent at a tailored episode count. With a common fallback, it yields a Pareto lower bound rather than simultaneous lower bounds on both coefficients.

Relation to prior work.

Recursive risk Bellman equations and risk-budget augmentation are classical [32, 11, 10, 3]. Online work on iterated CVaR or recursive optimized certainty equivalents optimizes a risk-sensitive objective rather than expected reward under a separate nested-risk constraint [15, 35, 8, 22, 13]. Separate-constraint work instead studies static trajectory CVaR, entropic utility, one-step optimized certainty equivalents, or known-model policy optimization, with different protocols and guarantees [9, 17, 21, 2, 36, 19, 25].

For additive CMDPs, optimistic, primal–dual, model-free, and posterior-sampling methods give sublinear reward and constraint regret under a variety of episodic or average-reward assumptions [16, 14, 5, 24, 33, 6, 1, 28, 18]. Risk-sensitive Bayes-adaptive objectives and risk over model uncertainty form another distinct interface [29, 23]. A recent forecast-driven framework combines posterior sampling with a static return-CVaR objective or chance constraint in a belief-augmented planner, not the nested constraint and signed-debt theorem studied here [20]. To our knowledge, prior work does not simultaneously study a separate nested-CVaR constraint, this physical-state Markov comparator, posterior-sampling interaction, near-K expected-reward shortfall, and a K-independent upper bound on expected signed risk-value debt. This is a scoped distinction, not an absolute priority claim; Table 2 compares the relevant axes explicitly.

2 Problem formulation and performance criteria

We first specify the MDP, the physical-state Markov comparator, and the nested CVaR functional. We then state the model-wise feasibility assumption and the two signed performance criteria controlled by the algorithm.

Let S and A be finite sets of cardinalities S and A. An episode has stages h=1,…,H and starts at a fixed state s1. The reward rh⁢(s,a) and cost ch⁢(s,a) are known and belong to [0,1]. We allow 0<τ≤H. Because 0≤ρ1π,p⁢(s1)≤H, the endpoint τ=H makes the original constraint vacuous; strict feasibility below already forces τ>0. The time-homogeneous transition kernel p(⋅∣s,a) is drawn once from a prior μ on the finite-dimensional kernel space and is then fixed. Write Q:=supp⁡(μ). The prior may be arbitrary: it need not be conjugate, product-form, or row-factorized.

The policy class is

ΠM:=∏h=1H∏s∈SΔ⁡(A),

the randomized Markov policies on the physical state. For π∈ΠM, let Vhπ,p⁢(s) be its expected reward-to-go, with

VH+1π,p=0,Vhπ,p⁢(s)=∑aπh⁢(a∣s)⁢[rh⁢(s,a)+∑s′p⁡(s′∣s,a)⁢Vh+1π,p⁢(s′)].(2.1)

We use upper-tail CVaR for losses, with α∈(0,1] denoting tail mass. For a probability law P on a finite outcome space Ω,

CVaRα,Pup(X)=infz∈R{z+1αEP[(X−z)+]}=maxξ:Ω→[0,1/α]EP⁢ξ=1EP[ξX].(2.2)

The first identity is the Rockafellar–Uryasev representation and the second is its finite-dimensional risk-envelope dual [30, 31]; the second equality also follows directly from finite-dimensional linear-programming duality. Define nested risk by

ρH+1π,p=0,ρhπ,p⁢(s)=CVaRαup⁡(ch⁢(s,Ah)+ρh+1π,p⁢(Sh+1)),(2.3)

where, inside every CVaR operator, Ah∼πh(⋅∣s) and Sh+1∼p(⋅∣s,Ah). Thus action randomization is itself part of the tail-risk distribution; it is not applied outside the risk operator.

We assume only model-wise strict feasibility on the prior support. Define g⁡(q):=minπ∈ΠM⁡ρ1π,q⁢(s1) and suppose g⁡(q)<τ for every q∈Q.

Lemma 2.1 (Automatic uniform margin).

Model-wise strict feasibility induces the positive uniform gap

Δ∗:=τ−maxq∈Q⁡g⁡(q)>0.(2.4)

Proof sketch.

Backward induction and the primal CVaR representation make nested risk continuous in (π,q). Berge’s theorem then makes g continuous; it attains its maximum on compact Q, where model-wise strict feasibility makes the gap positive. The complete argument is in Section A.1.

The minimizing policy may depend on q. No single policy is assumed safe for every model, no safe policy is supplied, and the algorithm is not given Δ∗ or any lower bound on it. The quantity Δ∗ appears only in performance bounds.

For any kernel q with a nonempty feasible set (in particular, every q∈Q), write

Vτ(q):=maxπ∈ΠM:ρ1π,q⁢(s1)≤τV1π,q(s1).(2.5)

After K episodes, an algorithm executing policies π1,…,πK is evaluated by the signed Bayesian reward shortfall and signed risk-value debt

BRr⁡(K):=E⁢∑k=1K[Vτ⁢(p)−V1πk,p⁢(s1)],(2.6)
BRρ⁡(K):=E⁢∑k=1K[ρ1πk,p⁢(s1)−τ].(2.7)

The expectation covers the prior draw, transition observations, posterior samples, and policy randomization. Neither quantity is necessarily nonnegative, and all results below control only their upper sides. In particular, the risk criterion is not the sum of positive violations.

Target guarantees.

The goal is a near-K upper bound on (2.6) and a K-independent upper bound on (2.7), without supplying a common feasible policy, a known uniform gap, or a terminal episode count. We also ask for the computational status of the known-model constrained planner.

Remark 2.2 (Meaning of the risk guarantee).

The quantity in (2.7) is a Bayesian expectation of a signed sum. Negative margins in some episodes may cancel positive margins in others. A K-independent upper bound therefore does not imply per-episode feasibility, a bound on ∑k(ρ1πk,p−τ)+, and is not a safety guarantee. We later give a high-probability certificate for the same cumulative risk values; that certificate likewise does not control realized trajectory costs or individual episodes. This distinction is essential to all of the results.

3 An obstruction to generic direct tightening

The additive Safe-PSRL template plans against a slightly tightened threshold. For nested CVaR, constrained value need not be continuous from below in that threshold, even when the original constraint is nonvacuous.

Proposition 3.1 (Value jump and scalar duality gap).

Fix α∈(0,1). There is a one-stage known model satisfying (2.4) with a nonvacuous original budget τ=t∈(0,1), g⁡(q)=0, and Δ∗=t. Every positive tightening has a reward loss that tends to 1−α as the tightened budget approaches t from below. At every budget b∈(0,t), the primal value is α⁢b/t and the scalar Lagrangian dual value is b/t.

Proof.

There are three actions: safe has (c,r)=(0,0), high has (c,r)=(t,1), and bad has (c,r)=(1,0). At the original budget t, high is feasible and optimal, while bad is infeasible, so the constraint is nonvacuous. For any budget b<t, replacing probability on bad by safe preserves reward and weakly decreases risk. It therefore suffices to let x be the probability of high, in which case

ρ⁡(x)=t⁢CVaRαup⁡(Bernoulli⁡(x))=t⁢min⁢{x/α,1}.(3.1)

At budget b∈(0,t), the constrained optimum is x=α⁢b/t. The bad action is dominated in the scalar inner problem as well, and

infλ≥0{λ⁢b+maxx∈[0,1]⁡[x−λ⁢ρ⁢(x)]}=infλ≥0{λ⁢b+max⁡(0,1−λ⁢t)}=bt.

The inner maximizer uses only x=0 or x=1. As b↑t, the tightened optimum tends to α, whereas the original value is one. The construction and conclusion require α<1. ∎

Corollary 3.2 (Linear regret from strict tightening).

In the model of Proposition 3.1, any policy feasible for a strictly tightened budget t−εk, with εk∈(0,t), loses at least 1−α reward relative to the original budget-t optimum. Thus an algorithm that uses a positive tightening in every episode has reward regret at least (1−α)⁢K, even though the model is known.

Proof.

Feasibility gives xk≤α⁡(t−εk)/t, whereas the original constrained value is one. Hence 1−xk≥1−α+α⁢εk/t≥1−α; summing proves the claim. ∎

4 Anytime sparse-calibration posterior sampling

This section defines the risk bank and its minimum-risk calibration policy, then states the main performance theorem. The bank turns computed slack in a sparse set of episodes into cancellation of sampled-model debt without using the unknown uniform gap.

Define the rare-event weights

Wα,H2:=∑h=1H−1(H−h+1)2⁢α−h,wα,H:=max1≤h≤H−1⁡(H−h)⁢α−h.(4.1)

Empty sums and maxima are zero. The first weight comes from Hellinger stability and the second pays for transition rows with very few observations. For analysis at an arbitrary horizon K, set

LK:=S⁢log⁡2+log⁡(8⁢S⁢A⁢H⁢K2),(4.2)
ΛK:=S⁢log⁡(K⁢H+1)+log⁡(8⁢S⁢A⁢H⁢K2),
CK:=4⁢2⁢Wα,H⁢S⁢A⁢ΛK⁢log⁡(e⁢K⁢H).(4.3)

Neither confidence quantity is used by the algorithm. Its anytime bank target is defined from

ν:=S+2,λ0:=S⁢log⁡(H+1)+log⁡(8⁢S⁢A⁢H),m0:=log⁡(e⁢H),
A0:=λ0+2⁢ν,M0:=m0+2,c:=4⁢2⁢Wα,H⁢S⁢A,(4.4)

and, for integers k≥1, by

T0:=0,Tk:=c⁢k⁡(A0+ν⁢log⁡k)⁢(M0+log⁡k).(4.5)

For H=1, the convention Wα,H=0 makes Tk=0.

Let Hk be the sigma-field generated by all trajectories, posterior draws, selected policies, bank values, and internal randomization before episode k, but not by the latent kernel p or the current draw p^k. A trajectory includes (S1,A1,…,SH,AH,SH+1), and Nk⁢(s,a) counts before episode k all visits to (s,a) for which this successor is observed. Conditional on Hk, the latent p and the fresh draw p^k are independent copies from the regular conditional posterior μk(⋅):=P(p∈⋅∣Hk); the selected policy is measurable with respect to σ⁡(Hk,p^k).

Continuity, compactness, and the measurable maximum theorem allow us to fix Borel selectors for every optimization below. Standard-Borel history and kernel spaces also provide regular conditional posteriors and conditionally independent draws supported on Q almost surely; details appear in Section A.2.

The online result assumes exact access to both the posterior-sampling oracle and the constrained-planning oracle. The arbitrary-prior claim is statistical: it does not assert that exact inference or planning is tractable for every prior.

Algorithm 1 (Anytime sparse-calibration posterior sampling).

Initialize the sampled-model risk bank at B0=0. For episode k=1,2,…, draw p^k∼μk independently conditional on Hk, and then:

  1. 1.

    If Bk−1<Tk, execute a minimum-risk policy in the sampled model:

    πk∈arg⁢minπ∈ΠM⁡ρ1π,p^k⁢(s1).

    Deposit its exact sampled-model slack

    δk:=τ−g⁡(p^k)>0,Bk:=Bk−1+δk.
  2. 2.

    If Bk−1≥Tk, execute an exact, un-tightened constrained optimum:

    πk∈arg⁢maxπ∈ΠM⁡{V1π,p^k⁢(s1):ρ1π,p^k⁢(s1)≤τ}.

    Set Bk:=Bk−1.

  3. 3.

    Observe (S1,A1,…,SH,AH,SH+1) and update the posterior.

The bank contains only calibration deposits; unused slack from exploitation episodes is deliberately ignored. Every deposit is computed by the same minimum-risk dynamic program that produces the calibration policy. Thus the algorithm knows neither the terminal episode K nor the analysis parameter Δ∗.

Calibration differs sharply from exploitation: the former admits an ordinary backward recursion even though the latter is computationally hard.

Proposition 4.1 (Minimum-risk calibration).

For every kernel q, define gH+1q⁢(s)=0 and

ghq(s)=mina∈ACVaRα,S′∼q(⋅∣s,a)up(ch(s,a)+gh+1q(S′)).(4.6)

Then ghq⁢(s) is the minimum nested risk from (h,s) over randomized physical-state Markov tail policies. A deterministic Markov minimizer exists, and all its actions can be computed in O⁡(H⁡[S⁢log⁡S+A⁢S2])=O⁡(H⁢A⁢S2) arithmetic operations.

Proof.

Proceed backward. The terminal risk is zero. Suppose the assertion holds at h+1, and fix a randomized action row λ∈Δ⁡(A) at (h,s). Every continuation policy has a risk vector Rh+1 satisfying Rh+1⁢(s′)≥gh+1q⁢(s′) pointwise. Monotonicity of CVaR therefore makes its risk at least

CVaRαup(ch(s,A)+gh+1q(S′)),A∼λ,S′∼q(⋅∣s,A).

For fixed gh+1q, the primal formula (2.2) expresses this quantity as a pointwise infimum of functions affine in λ, hence as a concave function ϕ. If λ=∑aλa⁢ea, then ϕ⁡(λ)≥∑aλa⁢ϕ⁢(ea)≥mina⁡ϕ⁡(ea), so a pure action minimizes current risk. Combining the minimizing actions at all successor states into the same deterministic Markov tail policy attains (4.6).

At a fixed stage, ch⁢(s,a) does not change the ordering of the successor values. Sort these S values once in O⁡(S⁢log⁡S) time. Each of the S⁢A rows then needs an O⁡(S) scan to accumulate the upper α-tail probability. Summing over stages gives O⁡(H⁡[S⁢log⁡S+A⁢S2])=O⁡(H⁢A⁢S2) arithmetic operations. ∎

The complexity result in Proposition 6.2 explains why the exact exploitation qualification is substantive; its proof appears in Appendix E, while posterior computation remains a separate sampling-oracle issue.

For a fully explicit K-independent risk bound, define

G0:=A0⁢M0,γ0:=A0+ν⁢M02⁢G0,(4.7)

and

R∗:=c22⁢Δ∗⁢[G0+2⁢γ0⁢log⁡(1+4⁢γ0⁢cΔ∗)]2,(4.8)
G∗:=2⁢S⁢A⁢H⁢wα,H+H2+R∗.(4.9)

Here R∗ is an envelope for the largest trailing-block bank deficit, and G∗ adds the low-count and confidence-failure terms to obtain the total risk-debt envelope.

Theorem 4.2 (Anytime posterior sampling under nested CVaR).

Fix α∈(0,1] and assume model-wise strict feasibility and the two exact oracles stated above. Then Algorithm 1 uses neither K nor Δ∗ and, simultaneously for every evaluation horizon K≥1, satisfies the one-sided bounds

BRr⁡(K)≤8⁢H3/2⁢S⁢A⁢K⁢LK+H2+H⁡(TK+τ)Δ∗,(4.10)
BRρ⁡(K)≤G∗(H≥2).(4.11)

The number NKcal of calibration episodes obeys, almost surely and simultaneously for all K, the pathwise bound

NKcal≤min⁡{K,TK+τΔ∗}.(4.12)

For H=1, no transition is learned, TK=NKcal=0, BRr⁡(K)=0, and BRρ⁡(K)≤0. For every fixed instance with Δ∗>0, (4.12) implies NKcal/K→0 almost surely. This is the precise sense in which calibration is sparse; it is not a parameter-uniform small constant. The right-hand side of (4.10) scales as O~⁢(S⁢A⁢[H3/2+H⁢Wα,H/Δ∗]⁢K), while G∗ scales as O~⁢(S⁢A⁢H⁢wα,H+S2⁢A⁢Wα,H2/Δ∗+H). The logarithms in the latter expression depend only on fixed problem parameters, not on K; neither statement is a two-sided bound on the signed criteria.

Extensions and endpoints.

Pathwise certified exploitation errors add their cumulative feasibility and optimization errors to the two right-hand sides; uncontrolled approximate inference is not covered. The theorem does not require identifiability and remains valid at α=1, although the obstruction and hardness constructions use α<1. Stage-dependent tail masses replace powers of α by the corresponding prefix products. Precise statements and proofs are in Corollaries B.1, B.2 and B.3.

5 Analysis

This section states the central simulation results and proves Theorem 4.2. The concentration, measurable-selection, and local perturbation details are collected in the appendix.

Write ps⁢a:=p(⋅∣s,a) and define the nominal occupancies

dhπ,p⁢(s,a):=Pπ,p⁢(Sh=s,Ah=a),dhπ,p⁢(s):=∑adhπ,p⁢(s,a).

For a policy π, kernel q, continuation f, and stage h, put

Tq,hπf(s):=CVaRαup(ch(s,A)+f(S′)),A∼πh(⋅∣s),S′∼q(⋅∣s,A),

and use

TV⁡(P,Q)=12⁢‖P−Q‖1,dH2⁢(P,Q):=12⁢∑ω(P⁡(ω)−Q⁡(ω))2.

The first result replaces the usual total-variation factor 1/α by a support-size-independent Hellinger factor 1/α.

Lemma 5.1 (CVaR–Hellinger stability).

Let P,Q be finite laws and let X take values in an interval of length R. For every α∈(0,1],

|CVaRα,Pup⁡(X)−CVaRα,Qup⁡(X)|≤2⁢2⁢Rα⁢dH⁢(P,Q).(5.1)
Proof.

Translation reduces to 0≤X≤R. The quantile formula and layer-cake identity give

CVaRα,Pup⁡(X)=1α⁢∫0Rmin⁡{α,P⁡(X>t)}⁢dt.(5.2)

For an event E, put p=P⁡(E) and q=Q⁡(E) and suppose without loss that p≤q. Hellinger distance contracts under the map ω↦1E, so |p−q|≤2⁢dH⁢(P,Q). If q≤α, then q−p≤2⁢2⁢α⁢dH⁢(P,Q). If p≤α≤q, the same bound holds for α−p; if α≤p, the capped probabilities coincide. Applying this event bound to E={X>t} in (5.2) and integrating proves the claim. ∎

The proof uses a hybrid local estimate that applies total variation only to low-count rows and Hellinger distance to the remaining rows.

Lemma 5.2 (Hybrid local perturbation).

Let I⊆A be any set of action rows and 0≤f≤H−h. Then

|Tp,hπ⁢f⁢(s)−Tq,hπ⁢f⁢(s)|≤H−hα⁢∑a∉Iπh⁢(a∣s)⁢TV⁡(ps⁢a,qs⁢a)
+2⁢2⁢(H−h+1)α⁢(∑a∈Iπh⁢(a∣s)⁢dH2⁢(ps⁢a,qs⁢a))1/2.(5.3)

The next lemma propagates these local errors through an adverse path law. Its measure-domination conclusion is what permits learning from nominal visits.

Lemma 5.3 (Distorted simulation).

For every p,q and π, there are probability distributions d~h on states, with d~1⁢(s1)=1, such that, for uh⁢(s,a):=d~h⁢(s)⁢πh⁢(a∣s),

ρ1π,p⁢(s1)−ρ1π,q⁢(s1)≤∑h=1H−1∑sd~h⁢(s)⁢εh⁢(s),(5.4)
εh⁢(s):=|Tp,hπ⁢ρh+1π,q⁢(s)−Tq,hπ⁢ρh+1π,q⁢(s)|.

In particular,

ρ1π,p⁢(s1)−ρ1π,q⁢(s1)≤∑h=1H−1H−hα⁢∑s,auh⁢(s,a)⁢TV⁡(ps⁢a,qs⁢a),(5.5)

and, pointwise,

uh⁢(s,a)≤α−(h−1)⁢dhπ,p⁢(s,a).(5.6)

No ratio is asserted when nominal occupancy is zero.

Corollary 5.4 (Nominal-occupancy simulation).

For every p,q,π,

ρ1π,p⁢(s1)−ρ1π,q⁢(s1)≤∑h=1H−1(H−h)⁢α−h⁢E(Sh,Ah)∼dhπ,p⁢[TV⁡(pSh⁢Ah,qSh⁢Ah)].(5.7)

Reverse-KL row-prefix confidence sets, posterior symmetry, and frozen-count charging now give the expected weighted simulation bound. Full proofs of Lemmas 5.2, 5.3 and 5.4 and the next result appear in Appendix C.

Lemma 5.5 (Weighted posterior simulation).

For every sequence πk measurable with respect to σ⁡(Hk,p^k),

∑k=1KE⁡[ρ1πk,p⁢(s1)−ρ1πk,p^k⁢(s1)]≤CK⁢K+D,D:=2⁢S⁢A⁢H⁢wα,H+H2.(5.8)

This holds for every prior μ.

For a pathwise statement, predictable occupancy sums must also be converted to realized visits. The resulting certificate is pointwise in a fixed evaluation horizon and a fixed admissible policy-selection rule.

Theorem 5.6 (Fixed-K risk-bank certificate).

Fix K≥1 and δ∈(0,1), and define

ΛK,δ:=S⁢log⁡(K⁢H+1)+log⁡4⁢S⁢A⁢H⁢K2δ,ℓδ:=log⁡4δ,(5.9)
EK,δ:=wα,H⁢(4⁢S⁢A⁢H+2⁢H⁢ℓδ)
+4⁢Wα,H⁢ΛK,δ⁢K⁢(4⁢S⁢A⁢log⁡(e⁢K⁢H)+2⁢ℓδ).(5.10)

For each fixed admissible policy-selection rule producing πk measurable with respect to σ⁡(Hk,p^k), with probability at least 1−δ,

∑k=1K[ρ1πk,p⁢(s1)−ρ1πk,p^k⁢(s1)]≤EK,δ.(5.11)

The probability covers the prior draw, posterior samples, and trajectories. Consequently, for anytime sparse-calibration posterior sampling,

∑k=1K[ρ1πk,p⁢(s1)−τ]≤EK,δ−BK(5.12)

with the same probability. The right side is computable from the chosen (K,δ), the problem parameters, and the observed bank.

Remark 5.7 (Scope of the certificate).

The guarantee in (5.12) concerns the signed sum of true-model nested-risk values. It controls neither realized trajectory costs nor per-episode or positive-part violation. It is stated for a fixed pair (K,δ); a simultaneous confidence sequence would require an additional time-uniform construction.

The reward argument uses the ordinary, undistorted analogue.

Lemma 5.8 (Policy-uniform reward simulation).

For every policy sequence measurable with respect to σ⁡(Hk,p^k),

∑k=1KE⁡[V1πk,p^k⁢(s1)−V1πk,p⁢(s1)]≤8⁢H3/2⁢S⁢A⁢K⁢LK+H2.(5.13)

The remaining deterministic fact about the bank target isolates the calculus needed to turn an anytime target into a horizon-independent residual.

Lemma 5.9 (Deterministic target properties).

For H≥2 and all integers k≥1 and j,n≥0,

Ck⁢k≤Tk,Tj+n≤Tj+Tn,supm≥0(Tm−m⁢Δ∗)+≤R∗.(5.14)

The proofs of Lemmas 5.8, 5.9 and 5.6 are in the appendix. We can now give the core argument for the main theorem without hiding the bank cancellation that drives it.

Proof of Theorem 4.2.

If H=1, then Wα,H=Tk=0 and the bank rule always selects an exact constrained optimum. Transitions affect neither reward nor risk, so NKcal=BRr⁡(K)=0 and BRρ⁡(K)≤0. Hence assume H≥2. The measurable selectors fixed in Section A.2 make every executed policy admissible for the simulation lemmas. Every calibration deposit satisfies, almost surely,

Δ∗≤δk=τ−g⁡(p^k)≤τ.(5.15)

In an exploitation episode, sampled-model debt is nonpositive; in a calibration episode it equals −δk. Thus

BRρ⁡(K)≤CK⁢K+D−E⁢BK≤D+E⁡[TK−BK],(5.16)

where the first inequality is Lemma 5.5 and the second is Lemma 5.9.

We bound the deficit pathwise. If episode K is exploitation, the rule gives BK≥TK. Otherwise let r,…,K be the maximal trailing block of calibration episodes and put n=K−r+1. If r=1, then BK≥n⁢Δ∗. If r>1, episode r−1 is exploitation, so Br−1≥Tr−1 and BK≥Tr−1+n⁢Δ∗. Subadditivity therefore gives

TK−BK≤Tn−n⁢Δ∗≤supm≥0(Tm−m⁢Δ∗)+≤R∗.(5.17)

Together with (5.16) and G∗=D+R∗, this proves (4.11).

If no episode calibrates, the count bound is immediate. Immediately before the last calibration, the bank is below its then-current target and hence below TK; the last deposit is at most τ, and the bank does not subsequently change. Since every deposit is at least Δ∗,

NKcal⁢Δ∗≤BK<TK+τ.

Combining this inequality with NKcal≤K proves (4.12).

For reward regret, posterior symmetry and measurability of the constrained value give

E⁡[Vτ⁢(p)−Vτ⁢(p^k)∣Hk]=0.(5.18)

Decompose

Vτ⁢(p)−V1πk,p=[Vτ⁢(p)−Vτ⁢(p^k)]
+[Vτ⁢(p^k)−V1πk,p^k]+[V1πk,p^k−V1πk,p].

The middle term is zero in exploitation episodes and at most H in calibration episodes. Summing, using (5.18), Lemma 5.8, and (4.12) proves (4.10). The scaling statements follow by substituting the definitions of TK and R∗. ∎

6 Computational complexity

Exact calibration is polynomial by Proposition 4.1, but exact exploitation can be hard even for a known model. We make the oracle qualification precise for rationally encoded instances.

Definition 6.1 (Rational dynamic-CVaR Markov planning).

The input is a binary encoding of finite H,S,A, a rational transition kernel, rational rewards and costs, a rational tail mass α∈(0,1], a budget τ, and a reward target vtar. The question is whether some π∈ΠM satisfies ρ1π,p⁢(s1)≤τ and V1π,p⁢(s1)≥vtar.

Proposition 6.2 (Planning complexity).

For every fixed rational α∈(0,1), Definition 6.1 is NP-complete on the subclass with one state, two actions, and a deterministic self-loop, even when a strictly feasible all-skip policy is known. With unrestricted rational input data, the decision problem belongs to ∃R and hence to PSPACE.

The lower bound is a Subset-Sum reduction in which equality between expected reward and nested risk forces every action probability to be binary. For the upper classification, policy, reward-value, risk-epigraph, CVaR-threshold, and positive-part variables form a polynomial-size degree-two semialgebraic system. The full reduction and equivalence proof are in Appendix E. The exact complexity of the unrestricted problem remains open: the result gives an ∃R/PSPACE upper classification, not ∃R-completeness. It also does not implement exact inference or planning for arbitrary real-valued posterior draws.

7 Information-theoretic lower bounds

The exponential tail dependence in Theorem 4.2 is not only an artifact of the upper-bound proof. An admissible learner does not observe the latent model index θ and, in episode k, uses past complete trajectories and independent internal randomness to choose a policy πk∈ΠM. Every expectation below covers the uniform prior on θ, transition randomness, action randomization, and the learner’s internal randomness.

Theorem 7.1 (Risk debt with zero reward regret).

Fix 0<α≤1/2, H≥3, and τ=1/4. There is an MDP with S=2⁢H, A=2, and a uniform prior on two time-homogeneous kernels, with known rewards and costs and with g⁡(q)=0 in each model, such that every admissible learner has BRr⁡(K)=0 for all K. Moreover, its exact finite-horizon Bayes optimum is

infAlgBRρAlg⁡(K)=1−(1−β)K2⁢β−K4,β:=αH−1,(7.1)

where the infimum ranges over all admissible learners. In particular, every learner, at K0=⌊1/(2⁢β)⌋, satisfies

BRρ⁡(K0)≥132⁢β=132⁢α−(H−1).(7.2)

The construction contains two branches that reveal which model is latent only after H−1 consecutive transitions of probability α. Before this geometric revelation, the posterior stays uniform and the two model risks are ρθ=0=x1 and ρθ=1=x0 for initial branch probabilities (x0,x1). Thus every learner incurs expected debt 1/4 until revelation, while all policies have the same reward. Summing the resulting geometric waiting time proves (7.1); the full construction and constant calculation are in Appendix F.

Adding a known common fallback changes the conclusion from a pure risk lower bound to a risk–reward Pareto tradeoff.

Corollary 7.2 (Known common safe fallback).

Modify the construction of Theorem 7.1 by enlarging the common action set to {a0,a1,ℓ}, so A=3. At s1, the known action ℓ has reward zero and moves to the zero-cost absorbing state f; at every other state it duplicates a0. Then ℓ is safe in both models, and every admissible learner satisfies

BRρ⁡(K)+12⁢BRr⁡(K)≥1−(1−β)K2⁢β−K4,β=αH−1.(7.3)

Consequently, if F,G≥0 and BRr⁡(K)≤F⁢K and BRρ⁡(K)≤G for every K, then

G≥164⁢βorF≥232⁢β.(7.4)

The no-fallback theorem is stronger for risk debt alone: its safe policies are model-dependent, exactly as allowed by (2.4), and it forces G=Ω⁡(α−(H−1)) even when reward regret is zero. Under the stronger common-fallback assumption, Corollary 7.2 gives only a Pareto conclusion and does not lower-bound both coefficients simultaneously.

8 Limitations and conclusion

The theorem assumes a correctly specified prior, known bounded rewards and costs, a finite time-homogeneous tabular MDP, and model-wise strict feasibility on the prior support. It also assumes exact posterior sampling and exact constrained planning; Corollary B.1 covers only pathwise certified planning errors. The comparator is randomized Markov on the physical state, with action randomness inside CVaR. Changing to an augmented-state or episode-level-mixture comparator changes the feasible set.

The controlled risk quantity is an expected signed aggregate, useful when surplus and deficit may be balanced across episodes. It is not per-episode feasibility, a sum of positive parts, a guarantee for realized costs, or a safety certificate. It is the nonlinear-risk analogue of the signed constraint debt used in additive constrained learning. Within this oracle model, sparse calibration gives a near-K one-sided upper bound on signed Bayesian reward shortfall and a K-independent upper bound on expected signed risk-value debt without a common feasible baseline or knowledge of the induced uniform gap. The rare-chain construction shows that the worst-case risk-debt exponent is necessary at a tailored episode count.

References

  • [1] M. Agarwal, Q. Bai, and V. Aggarwal. Regret guarantees for model-based reinforcement learning with long-term average constraints. In Proceedings of the 38th Conference on Uncertainty in Artificial Intelligence, volume 180 of Proceedings of Machine Learning Research, pages 22–31, 2022. PMLR 180.
  • [2] M. Ahmadi, U. Rosolia, M. D. Ingham, R. M. Murray, and A. D. Ames. Constrained risk-averse Markov decision processes. In Proceedings of the AAAI Conference on Artificial Intelligence, 35(13):11718–11725, 2021. doi:10.1609/aaai.v35i13.17393.
  • [3] N. Bäuerle and A. Glauner. Markov decision processes with recursive risk measures. European Journal of Operational Research, 296(3):953–966, 2022. doi:10.1016/j.ejor.2021.04.030.
  • [4] S. Basu, R. Pollack, and M.-F. Roy. Algorithms in Real Algebraic Geometry. Springer, second edition, 2006. doi:10.1007/3-540-33099-2.
  • [5] K. Brantley, M. Dudik, T. Lykouris, S. Miryoosefi, M. Simchowitz, A. Slivkins, and W. Sun. Constrained episodic reinforcement learning in concave-convex and knapsack settings. In Advances in Neural Information Processing Systems 33, pages 16315–16326, 2020. Proceedings version; corrected extended version: arXiv:2006.05051.
  • [6] A. Bura, A. HasanzadeZonuzy, D. Kalathil, S. Shakkottai, and J.-F. Chamberland. DOPE: Doubly optimistic and pessimistic exploration for safe reinforcement learning. In Advances in Neural Information Processing Systems 35, pages 1047–1059, 2022. doi:10.52202/068431-0077; arXiv:2112.00885.
  • [7] J. Canny. Some algebraic and geometric computations in PSPACE. In Proceedings of the 20th Annual ACM Symposium on Theory of Computing, pages 460–467, 1988. doi:10.1145/62212.62257.
  • [8] Y. Chen, Y. Du, P. Hu, S. Wang, D. Wu, and L. Huang. Provably efficient iterated CVaR reinforcement learning with function approximation and human feedback. In International Conference on Learning Representations, pages 30478–30515, 2024. Proceedings version.
  • [9] Y. Chow, M. Ghavamzadeh, L. Janson, and M. Pavone. Risk-constrained reinforcement learning with percentile risk criteria. Journal of Machine Learning Research, 18(167):1–51, 2018. JMLR version.
  • [10] Y.-L. Chow and M. Pavone. Stochastic optimal control with dynamic, time-consistent risk constraints. In 2013 American Control Conference, pages 390–395, 2013. doi:10.1109/ACC.2013.6579868.
  • [11] S. Chu and Y. Zhang. Markov decision processes with iterated coherent risk measures. International Journal of Control, 87(11):2286–2293, 2014. doi:10.1080/00207179.2014.909947.
  • [12] T. M. Cover and J. A. Thomas. Elements of Information Theory. John Wiley & Sons, second edition, 2006. doi:10.1002/047174882X.
  • [13] Z. Deng, A. Velasquez, and S. Zou. Minimax optimal sample complexity for iterated CVaR reinforcement learning with a generative model. IEEE Transactions on Information Theory, 72(7):5077–5103, 2026. doi:10.1109/TIT.2026.3692816.
  • [14] D. Ding, X. Wei, Z. Yang, Z. Wang, and M. R. Jovanović. Provably efficient safe exploration via primal-dual policy optimization. In Proceedings of the 24th International Conference on Artificial Intelligence and Statistics, volume 130 of Proceedings of Machine Learning Research, pages 3304–3312, 2021. PMLR 130; extended version: arXiv:2003.00534.
  • [15] Y. Du, S. Wang, and L. Huang. Provably efficient risk-sensitive reinforcement learning: Iterated CVaR and worst path. In International Conference on Learning Representations, 2023. arXiv:2206.02678.
  • [16] Y. Efroni, S. Mannor, and M. Pirotta. Exploration-exploitation in constrained MDPs. arXiv:2003.02189, 2020.
  • [17] A. Ghosh and M. Moharrami. Online learning in risk sensitive constrained MDP. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pages 19406–19425, 2025. PMLR 267.
  • [18] K. C. Kalagarla, R. Jain, and P. Nuzzo. A safe Bayesian learning algorithm for constrained MDPs with bounded constraint violation. In Proceedings of the 28th International Conference on Artificial Intelligence and Statistics, volume 258 of Proceedings of Machine Learning Research, pages 2782–2790, 2025. PMLR 258; extended version: arXiv:2301.11547.
  • [19] D. Kim, T. Cho, S. Han, H. Chung, K. Lee, and S. Oh. Spectral-risk safe reinforcement learning with convergence guarantees. In Advances in Neural Information Processing Systems 37, pages 92465–92498, 2024. Proceedings version. doi:10.52202/079017-2936.
  • [20] M. Koren, O. Peretz, T. Dinh, and P. S. Yu. UAMDP: Uncertainty-aware Markov decision process for risk-constrained reinforcement learning from probabilistic forecasts. arXiv:2510.08226v2, 2025.
  • [21] J. Lee, B. Saglam, S. Pougkakiotis, A. Karbasi, and D. Kalogerias. Risk-averse constrained reinforcement learning with optimized certainty equivalents. In Advances in Neural Information Processing Systems 38, 2025. Proceedings version; doi:10.52202/085713-1250.
  • [22] H. Liang and Z. Luo. Regret bounds for risk-sensitive reinforcement learning with Lipschitz dynamic risk measures. In Proceedings of the 27th International Conference on Artificial Intelligence and Statistics, volume 238 of Proceedings of Machine Learning Research, pages 1774–1782, 2024. PMLR 238.
  • [23] Y. Lin, Y. Ren, and E. Zhou. Bayesian risk Markov decision processes. In Advances in Neural Information Processing Systems 35, pages 17430–17442, 2022. doi:10.52202/068431-1267; Proceedings version.
  • [24] T. Liu, R. Zhou, D. Kalathil, P. R. Kumar, and C. Tian. Learning policies with zero or bounded constraint violation for constrained MDPs. In Advances in Neural Information Processing Systems 34, pages 17183–17193, 2021. Proceedings version; arXiv:2106.02684.
  • [25] Y. Luo and E. Delage. Actor-critic algorithm for dynamic expectile and CVaR. arXiv:2605.07857, 2026.
  • [26] I. Osband, D. Russo, and B. Van Roy. (More) efficient reinforcement learning via posterior sampling. In Advances in Neural Information Processing Systems 26, pages 3003–3011, 2013. Proceedings version; arXiv:1306.0940.
  • [27] Y. Ouyang, M. Gagrani, A. Nayyar, and R. Jain. Learning unknown Markov decision processes: A Thompson sampling approach. In Advances in Neural Information Processing Systems 30, pages 1333–1342, 2017. Proceedings version; arXiv:1709.04570.
  • [28] D. Provodin, M. C. Kaptein, and M. Pechenizkiy. Efficient exploration in average-reward constrained reinforcement learning: Achieving near-optimal regret with posterior sampling. In Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pages 41144–41162, 2024. PMLR 235.
  • [29] M. Rigter, B. Lacerda, and N. Hawes. Risk-averse Bayes-adaptive reinforcement learning. In Advances in Neural Information Processing Systems 34, pages 1142–1154, 2021. Proceedings version; arXiv:2102.05762.
  • [30] R. T. Rockafellar and S. Uryasev. Optimization of conditional value-at-risk. Journal of Risk, 2(3):21–41, 2000. doi:10.21314/JOR.2000.038.
  • [31] R. T. Rockafellar and S. Uryasev. Conditional value-at-risk for general loss distributions. Journal of Banking & Finance, 26(7):1443–1471, 2002. doi:10.1016/S0378-4266(02)00271-6.
  • [32] A. Ruszczyński. Risk-averse dynamic programming for Markov decision processes. Mathematical Programming, 125(2):235–261, 2010. doi:10.1007/s10107-010-0393-3.
  • [33] H. Wei, X. Liu, and L. Ying. Triple-Q: A model-free algorithm for constrained reinforcement learning with sublinear regret and zero constraint violation. In Proceedings of the 25th International Conference on Artificial Intelligence and Statistics, volume 151 of Proceedings of Machine Learning Research, pages 3274–3307, 2022. PMLR 151; arXiv:2106.01577.
  • [34] T. Weissman, E. Ordentlich, G. Seroussi, S. Verdú, and M. J. Weinberger. Inequalities for the L1 deviation of the empirical distribution. Technical Report HPL-2003-97R1, Hewlett-Packard Laboratories, 2003.
  • [35] W. Xu, X. Gao, and X. He. Regret bounds for Markov decision processes with recursive optimized certainty equivalents. In Proceedings of the 40th International Conference on Machine Learning, volume 202 of Proceedings of Machine Learning Research, pages 38400–38427, 2023. PMLR 202.
  • [36] Z. Yang, H. Jin, Y. Tang, and G. Fan. Risk-aware constrained reinforcement learning with non-stationary policies. In Proceedings of the 23rd International Conference on Autonomous Agents and Multiagent Systems, pages 2029–2037, 2024. Proceedings version. doi:10.65109/ZRHO4945.

Appendix A Regularity and measurable selection

This appendix supplies the compactness and measurability details used in the setup and algorithm.

A.1 Proof of the automatic uniform gap

Proof of Lemma 2.1.

The policy space ΠM and the kernel simplex are compact. We verify that (π,q)↦ρhπ,q⁢(s) is continuous by backward induction. At H+1 both sides are zero. If the continuation is continuous and lies in [0,H−h], the primal representation in (2.2) writes the stage-h risk as the minimum over z∈[0,H−h+1] of a function continuous in (π,q,z); the loss range ensures that this restriction loses no minimizer. Berge’s maximum theorem preserves continuity at stage h. Applying it once more to the minimum over compact ΠM shows that g is continuous. Finally, Q is closed in the compact kernel simplex, so g attains its maximum at some q∗∈Q. Model-wise strict feasibility gives g⁡(q∗)<τ, proving (2.4). ∎

A.2 Measurable selectors

The set Q is closed in the compact kernel simplex, and

Γ⁡(q):={π∈ΠM:ρ1π,q⁢(s1)≤τ}

has a Borel graph and nonempty compact sections because reward and nested risk are continuous and (2.4) holds. The measurable maximum theorem therefore gives Borel optimizer correspondences. Repeatedly minimizing policy coordinates over each nonempty compact optimizer set selects its coordinatewise lexicographically least point and gives a Borel selector. The kernel and history spaces are standard Borel, so regular conditional posteriors, and hence the conditional independent draws used below, exist. On realized histories the posterior and its independent draw are supported on Q almost surely.

Appendix B Extensions and endpoint cases

This appendix records approximate-oracle robustness, endpoint behavior, and stage-dependent tail masses.

Corollary B.1 (Certified approximate exploitation).

Suppose the exploitation oracle in episode k returns a policy satisfying

ρ1πk,p^k⁢(s1)≤τ+εk,V1πk,p^k⁢(s1)≥Vτ⁢(p^k)−ζk

for pathwise certified deterministic errors εk,ζk≥0 at every realized call, while calibration remains exact. For H≥2, the right-hand sides of (4.11) and (4.10) increase by at most ∑k≤Kεk and ∑k≤Kζk, respectively. For H=1, BRρ⁡(K)≤∑k≤Kεk and BRr⁡(K)≤∑k≤Kζk.

Proof.

In the risk decomposition, exploitation episode k contributes at most εk sampled-model debt. In the reward decomposition, its sampled suboptimality is at most ζk. All model-error and bank terms are unchanged. At H=1 there is no model error, giving the displayed endpoint bounds directly. ∎

Remark B.2 (Endpoints and identifiability).

The bounds hold for every K≥1 and do not assume posterior concentration or model identifiability. At α=1, upper-tail CVaR is expectation, the risk distortion is one, and Theorem 4.2 remains valid with polynomial weights. The value-jump, duality-gap, and integrality constructions in Propositions 3.1 and 6.2 use α<1.

For H≥2,

4⁢α−(H−1)≤Wα,H2≤H3⁢α−(H−1),wα,H≤H⁢α−(H−1).(B.1)

Thus Wα,H2 has the same α-exponent as α−(H−1) up to polynomial factors in H; no soft-O notation here hides those factors.

Corollary B.3 (Stage-dependent tail masses).

Suppose the stage-h risk operator is upper-tail CVaR with known mass αh∈(0,1]. Put

P0:=1,Ph:=∏j=1hαj,Wα,H2:=∑h=1H−1(H−h+1)2Ph,wα,H:=max1≤h≤H−1⁡H−hPh.

Replace Wα,H and wα,H by these quantities in the bank target and all performance bounds, and use αh in the stage-h calibration recursion. Then Theorems 4.2, B.1 and 5.6 remain valid.

Proof.

At stage h, the local TV and Hellinger coefficients become respectively (H−h)/αh and 2⁢2⁢(H−h+1)/αh. The distorted state occupancy satisfies

d~h⁢(s)≤Ph−1−1⁢dhπ,p⁢(s),

because each preceding envelope density is at most 1/αj. Combining these facts gives (H−h)/Ph for low-count rows and (H−h+1)2/Ph after squaring the high-count coefficient. The remainder of the proof is unchanged. The mass αH does not enter transition-model error because no transition follows stage H. ∎

Appendix C Simulation under nested CVaR

This section proves the model-error and bank results stated in Section 5. It develops the local perturbation, confidence-set, visit-counting, and predictable-to-realized tools used by those proofs, using the notation introduced in the main text.

Lemma C.1 (Local perturbation).

If 0≤f≤H−h pointwise, then

|Tp,hπ⁢f⁢(s)−Tq,hπ⁢f⁢(s)|≤H−hα⁢∑aπh⁢(a∣s)⁢TV⁡(ps⁢a,qs⁢a).(C.1)

Moreover, Tq,hπ is 1-Lipschitz in continuation sup norm.

Proof.

Fix z in the primal representation (2.2). For each action a, the function

s′⟼(ch⁢(s,a)+f⁡(s′)−z)+

has span at most H−h. Because ps⁢a−qs⁢a has total mass zero, the difference of its expectations under the two rows is at most that span times total variation. Average over a, divide by α, and use |infzF⁡(z)−infzG⁡(z)|≤supz|F⁡(z)−G⁡(z)|. The current cost does not enlarge the span because it is constant in s′ after fixing a. Monotonicity and translation equivariance of CVaR give the Lipschitz claim. ∎

Proof of Lemma 5.2.

Introduce an intermediate kernel r whose rows at state s equal qs⁢a for a∉I and ps⁢a for a∈I. The difference between p and r involves only rows outside I, so the row-wise span argument in Lemma C.1 gives the first term. The joint action–successor laws induced by r and q have squared Hellinger distance

∑a∈Iπh⁢(a∣s)⁢dH2⁢(ps⁢a,qs⁢a).

Under either law, ch⁢(s,A)+f⁡(S′) lies in an interval of length at most H−h+1. Apply Lemma 5.1 to obtain the second term and use the triangle inequality. ∎

Corollary C.2 (Uniform fixed-policy perturbation).

For every fixed π, every pair of kernels p,q, and every stage h,

‖ρhπ,p−ρhπ,q‖∞≤(H−h)⁢(H−h+1)2⁢α⁢maxs,a⁢TV⁡(ps⁢a,qs⁢a).(C.2)
Proof.

Split the Bellman difference by inserting Tp,jπ⁢ρj+1π,q. The continuation Lipschitz property and Lemma C.1 give, for j=h,…,H−1,

‖ρjπ,p−ρjπ,q‖∞≤‖ρj+1π,p−ρj+1π,q‖∞+H−jα⁢maxs,a⁢TV⁡(ps⁢a,qs⁢a).

Backward summation and ∑j=hH−1(H−j)=(H−h)⁢(H−h+1)/2 prove the claim. ∎

Thus fixed-policy nested CVaR is uniformly Lipschitz in the transition model. The exponential weights in the upper bound below arise because data are collected under nominal paths while nested CVaR amplifies nominally rare paths. This is also distinct from the discontinuity of the optimized constrained value in the budget in Proposition 3.1.

We next prove the one-sided distorted-simulation result used for signed risk debt.

Proof of Lemma 5.3.

The proof selects an adverse one-step law, unrolls the resulting recursion, and then compares that distorted law with nominal occupancy. Put δh⁢(s)=ρhπ,p⁢(s)−ρhπ,q⁢(s). At each (h,s), the envelope correspondence Ξ⁡(P)={ξ∈[0,1/α]A×S:EP⁢ξ=1} has nonempty compact sections and a measurable closed graph in the finite-dimensional law P. The measurable maximum theorem therefore gives a measurable dual maximizer ξh⁢(a,s′∣s) in (2.2) for the p-model random variable with continuation ρh+1π,p; fix one such selector. The distorted joint transition

Mh⁢(a,s′∣s):=ξh⁢(a,s′∣s)⁢πh⁢(a∣s)⁢p⁢(s′∣s,a)

is a probability kernel and satisfies Mh≤α−1⁢πh⁢p pointwise. More explicitly, split

Tp,hπ⁢ρh+1π,p−Tq,hπ⁢ρh+1π,q=[Tp,hπ⁢ρh+1π,p−Tp,hπ⁢ρh+1π,q]+[Tp,hπ⁢ρh+1π,q−Tq,hπ⁢ρh+1π,q].

For random variables X,Y under the same law, the risk-envelope representation and a maximizer ξX for X imply

CVaRαup⁡(X)−CVaRαup⁡(Y)≤E⁡[ξX⁢(X−Y)].

Apply this inequality to the first bracket and bound the second bracket above by its absolute value. This yields

δh(s)≤E(A,S′)∼Mh(⋅∣s)[δh+1(S′)]+εh(s).(C.3)

Unroll (C.3), taking d~h to be the state marginal reached through M1,…,Mh−1. This gives (5.4); Lemma C.1 then gives (5.5). To verify domination without treating a zero-probability ratio, sum Mh over actions:

∑aMh⁢(a,s′∣s)≤α−1⁢∑aπh⁢(a∣s)⁢p⁢(s′∣s,a).

Induction on h therefore gives d~h⁢(s)≤α−(h−1)⁢dhπ,p⁢(s). Multiplication by the same, undistorted current policy row πh⁢(a∣s) proves (5.6). Notice that Mh may distort the action in the preceding transition; the claim needed here is domination of its state marginal, followed by the nominal current action row. ∎

Proof of Corollary 5.4.

Substitute the measure domination uh≤α−(h−1)⁢dhπ,p into (5.5). ∎

For episode k, abbreviate dk,h:=dhπk,p, and use d~k,h and uk,h for the distorted measures from Lemma 5.3 with q=p^k.

We next prove the weighted posterior simulation bound.

Proof of Lemma 5.5.

The proof couples adaptive data to fixed row tapes, transfers every history-measurable confidence event to the posterior draw, and charges low- and high-count rows separately. The latter charge is controlled by a frozen-count logarithmic potential.

For each row x=(s,a), pre-generate an infinite successor sequence with law px; adaptive visits reveal prefixes of these row tapes. Let p¯x,n be the empirical law of the first n successors. The method-of-types bound [12] gives

P(KL(p¯x,n∥px)>ΛKn)≤(n+1)Se−ΛK≤18⁢S⁢A⁢H⁢K2

for 1≤n≤K⁢H. A union bound over rows and prefixes shows that the true kernel lies in every reverse-KL prefix ball except on an event E0c of probability at most 1/(8⁢K). Formally, put

Cx,n:={v∈Δ(S):KL(p¯x,n∥v)≤ΛKn}(n≥1),Cx,0:=Δ(S),

and let Ck:=∏xCx,Nk⁢(x), which is Hk-measurable.

More generally, conditional independence gives, for every Hk-measurable random Borel set Ck, P⁡(p^k∈Ck∣Hk)=P⁡(p∈Ck∣Hk). Applying this identity to Ck=Ckc gives

P⁡(p^k∉Ck∣Hk)=μk⁢(Ckc)=P⁡(p∉Ck∣Hk).(C.4)

Consequently, P⁡(p^k∉Ck)=P⁡(p∉Ck)≤1/(8⁢K). Since a one-sided risk difference is at most H, the single true-prefix failure contributes at most K⁢H⁢P⁢(E0c)≤H/8, while the episode-wise sampled-kernel failures contribute at most H⁢∑kP⁡(p^k∉Ck)≤H/8. Their total is at most H/4; we retain the convenient allowance H/2 in D. On E0∩{p^k∈Ck} and for Nk⁢(x)≥1,

dH2⁢(px,p^k,x)≤2⁢ΛKNk⁢(x).(C.5)

Indeed, 2dH2(r,v)≤KL(r∥v) and the Hellinger triangle inequality apply with r=p¯x,Nk⁢(x).

Apply the local-error form of Lemma 5.3 with q=p^k, and in Lemma 5.2 take Ik,s:={a:Nk⁢(s,a)≥H}. For a low-count row x=(s,a), measure domination gives

H−hα⁢uk,h⁢(x)≤wα,H⁢dk,h⁢(x).

Counts are frozen within an episode. Before a row’s episode-start count reaches H, fewer than 2⁢H realized visits can be charged to it: the last such episode begins below H and adds at most H visits. Taking expectations, all low-count terms are at most 2⁢S⁢A⁢H⁢wα,H.

For the remaining terms define, with the high-count restriction inside the sum,

YK:=∑k=1K∑h=1H−1∑x:Nk⁢(x)≥Hdk,h⁢(x)Nk⁢(x).(C.6)

For each fixed (k,h), Jensen’s inequality, measure domination, and (C.5) give

∑sd~k,h⁢(s)⁢(∑a∈Ik,sπk,h⁢(a∣s)⁢dH2⁢(ps⁢a,p^k,s⁢a))1/2
≤(∑s∑a:Nk⁢(s,a)≥Huk,h(s,a)dH2(ps⁢a,p^k,s⁢a))1/2
≤α−(h−1)/2(2ΛK∑s∑a:Nk⁢(s,a)≥Hdk,h⁢(s,a)Nk⁢(s,a))1/2.

Multiplying by the Hellinger coefficient in (5.3), summing, and applying Cauchy–Schwarz over (k,h) yields the high-count bound

4⁢Wα,H⁢ΛK⁢K⁢YK.(C.7)

Let nk⁢(x) be the realized visits to row x in episode k, and condition on Fk+:=σ⁡(Hk,p,p^k); the selected πk is then fixed. The definition of nominal occupancy first gives the conditional identity

E⁡[nk⁢(x)∣Fk+]=∑h=1Hdk,h⁢(x).

The tower property therefore gives, for every nonnegative Hk-measurable function f,

E⁡[∑h=1Hdk,h⁢(x)⁢f⁢(Nk⁢(x))]=E⁡[nk⁢(x)⁢f⁢(Nk⁢(x))].(C.8)

Thus the expectation of (C.6) is at most the corresponding sum with the full-episode realized visits nk⁢(x). If Nk⁢(x)≥H≥nk⁢(x), put t=nk⁢(x)/Nk⁢(x)∈[0,1]. Since log⁡(1+t)≥t/2,

nk⁢(x)Nk⁢(x)≤2⁢log⁡Nk+1⁢(x)Nk⁢(x).

Telescoping these logarithms separately for every row, and using NK+1⁢(x)≤K⁢H, yields E⁢YK≤2⁢S⁢A⁢log⁡(e⁢K⁢H). Jensen’s inequality gives E⁢YK≤E⁢YK in (C.7), and hence the high-count contribution is at most

4⁢2⁢Wα,H⁢S⁢A⁢ΛK⁢log⁡(e⁢K⁢H)⁢K=CK⁢K.

Combining high counts, low counts, and failures proves (5.8). The argument used only row-prefix concentration and conditional posterior symmetry, so neither prior factorization nor a policy fixed before p^k is required. ∎

The proof of Theorem 5.6 needs a pathwise conversion from predictable occupancy sums to realized visits.

Lemma C.3 (Predictable-to-realized conversion).

Let (Gk)k=0K be a filtration, let Zk be Gk-measurable, let mk:=E⁡[Zk∣Gk−1], and suppose 0≤Zk≤b almost surely for b≥0. For every ℓ>0, with probability at least 1−e−ℓ,

∑k=1Kmk≤2⁢∑k=1KZk+2⁢b⁢ℓ.(C.9)
Proof.

If b=0, then Zk=mk=0 almost surely and the claim is immediate. Assume b>0. Put c:=1−e−1. Convexity on [0,b] gives e−z/b≤1−cz/b, and hence

E[e−Zk/b∣Gk−1]≤1−cmk/b≤e−cmk/b.

Therefore exp⁡{c⁢∑j≤kmj/b−∑j≤kZj/b} is a nonnegative supermartingale starting from one. Markov’s inequality bounds its terminal value by eℓ except on an event of probability e−ℓ. Rearranging and using c−1<2 proves (C.9). ∎

Proof of Theorem 5.6.

We intersect true- and sampled-kernel prefix confidence events, apply the same hybrid simulation decomposition as in expectation, and then use Lemma C.3 separately for low- and high-count visits. For n≥1, define

Cx,nδ:={v∈Δ(S):KL(p¯x,n∥v)≤ΛK,δn},Cx,0δ:=Δ(S),

and put Ckδ:=∏xCx,Nk⁢(x)δ. The method-of-types failure probability for one row and one prefix is at most δ/(4⁢S⁢A⁢H⁢K2). Union bounding over S⁢A rows and at most K⁢H prefixes shows that some true prefix fails with probability at most δ/(4⁢K). For the current balls, conditional posterior symmetry then gives

P⁡(p^k∉Ckδ)=P⁡(p∉Ckδ)≤δ4⁢K.

A second union bound over episodes shows that all sampled rows also lie in their balls except with probability δ/4.

On this joint confidence event, repeat the hybrid local-error argument leading to (C.7). With x=(s,a), it yields the pathwise inequality

∑k=1K[ρ1πk,p⁢(s1)−ρ1πk,p^k⁢(s1)]≤wα,H⁢Ylo+4⁢Wα,H⁢ΛK,δ⁢K⁢Yhi,(C.10)

where

Ylo:=∑k=1K∑h=1H−1∑xdk,h(x)1{Nk(x)<H},
Yhi:=∑k=1K∑h=1H−1∑x:Nk⁢(x)≥Hdk,h⁢(x)Nk⁢(x).

We control these predictable sums without taking expectations. Let nk⁢(x) be the number of visits to row x in episode k and put

Zklo:=∑xnk(x)1{Nk(x)<H},Zkhi:=∑x:Nk⁢(x)≥Hnk⁢(x)Nk⁢(x).

Let Gk−1:=σ⁡(Hk,p,p^k,πk) be the analytic information immediately before the episode-k trajectory. These sigma-fields are nested because Hk+1 contains the current draw, policy, and trajectory. Conditional nominal occupancy gives

E⁡[Zklo∣Gk−1]=∑h=1H∑xdk,h(x)1{Nk(x)<H},
E⁡[Zkhi∣Gk−1]=∑h=1H∑x:Nk⁢(x)≥Hdk,h⁢(x)Nk⁢(x).

These means dominate the episode contributions to Ylo and Yhi. Moreover, 0≤Zklo≤H, and

0≤Zkhi≤H−1⁢∑xnk⁢(x)≤1.

Frozen-count charging gives ∑kZklo<2⁢S⁢A⁢H: for each row, fewer than H visits occur before the last episode starting below H, and that episode contributes at most H more. Applying Lemma C.3 with b=H and ℓ=ℓδ therefore gives, except with probability δ/4,

Ylo≤4⁢S⁢A⁢H+2⁢H⁢ℓδ.(C.11)

For a high-count row, Nk⁢(x)≥H≥nk⁢(x) and hence

nk⁢(x)Nk⁢(x)≤2⁢log⁡Nk+1⁢(x)Nk⁢(x).

Telescoping over each row gives ∑kZkhi≤2⁢S⁢A⁢log⁡(e⁢K⁢H). A second application of Lemma C.3, now with b=1, gives, except with probability δ/4,

Yhi≤4⁢S⁢A⁢log⁡(e⁢K⁢H)+2⁢ℓδ.(C.12)

The total exceptional probability is at most δ/(4⁢K)+3⁢δ/4≤δ. Substituting (C.11) and (C.12) into (C.10) proves (5.11).

Finally, exploitation has sampled-model debt at most zero, while calibration has sampled-model debt exactly −δk. Hence

∑k=1K[ρ1πk,p^k⁢(s1)−τ]≤−BK.

Adding this inequality to (5.11) proves (5.12). ∎

We next prove the ordinary, undistorted reward analogue.

Proof of Lemma 5.8.

Ordinary Bellman telescoping has the fixed-horizon identity

V1π,q⁢(s1)−V1π,p⁢(s1)=∑h=1H−1∑s,adhπ,p⁢(s,a)⁢∑s′(q−p)⁢(s′∣s,a)⁢Vh+1π,q⁢(s′).

Because 0≤Vh+1π,q≤H−h, setting q=p^k gives

V1πk,p^k−V1πk,p≤∑h=1H−1(H−h)⁢∑xdk,h⁢(x)⁢TV⁡(px,p^k,x).(C.13)

The true-prefix and episode-wise posterior-sample events needed here follow from a separate total-variation confidence set. Indeed, the multinomial inequality of Weissman et al. [34] gives

P⁡(TV⁡(p¯x,n,px)>LK/(2⁢n))≤(2S−2)⁢e−LK≤18⁢S⁢A⁢H⁢K2.

The same union bound and conditional posterior identity (C.4), now applied to these TV balls, show that all true and sampled rows satisfy

TV⁡(px,p^k,x)≤rk⁢(x),rk⁢(x):={1,Nk⁢(x)=0,min⁡{1,2⁢LK/Nk⁢(x)},Nk⁢(x)≥1.(C.14)

outside failure events contributing at most H/2 in total. The events are uniform over rows and continuation values, hence remain valid for sample-dependent πk. On the joint good event, low counts contribute at most 2⁢S⁢A⁢H2 by the same frozen-count charging argument.

For high counts, use H−h≤H and (C.8) to replace occupancy by realized visits after taking expectations. Since Nk⁢(x)≥H≥nk⁢(x),

nk⁢(x)Nk⁢(x)≤3⁢(Nk+1⁢(x)−Nk⁢(x)).

If nk⁢(x)=0, both sides vanish. If nk⁢(x)>0, rationalizing the square-root difference and cancelling nk⁢(x) shows that the inequality is equivalent to Nk+1⁢(x)+Nk⁢(x)≤3⁢Nk⁢(x), which follows from nk⁢(x)≤Nk⁢(x) and 1+2<3. After telescoping and applying Cauchy–Schwarz over the S⁢A rows,

∑x∑k:Nk⁢(x)≥Hnk⁢(x)Nk⁢(x)≤3S⁢A⁢K⁢H.

Together with (C.14), the high-count term is at most 3⁢2⁢H3/2⁢S⁢A⁢K⁢LK.

If K≤S⁢A⁢H, the deterministic bound H⁢K is already at most the right side of (5.13). If K>S⁢A⁢H, the low-count term is absorbed by the same right side, since

2⁢S⁢A⁢H2≤2⁢H3/2⁢S⁢A⁢K≤2LK⁢H3/2⁢S⁢A⁢K⁢LK.

The numerical constant 8 dominates these contributions in both cases. This proves the claim without any restriction on how πk depends on the posterior sample. ∎

Appendix D Deterministic target calculations

Proof of Lemma 5.9.

For k≥1,

Λk≤λ0+ν⁢log⁡k≤A0+ν⁢log⁡k,log⁡(e⁢k⁢H)=m0+log⁡k≤M0+log⁡k,

where the first inequality uses k⁢H+1≤k⁡(H+1). Hence

Ck⁢k≤Tk.(D.1)

To establish subadditivity, for t≥1 write

G⁡(x):=(A0+ν⁢x)⁢(M0+x),T⁡(t):=c⁢t⁢G⁢(log⁡t).

Direct differentiation gives

G′′(x)=−(A0−ν⁢M0)24⁢G⁢(x)3≤0,T′′(t)=ct−3/2[G′′(logt)−14G(logt)]<0.

Extend T linearly on [0,1] with T⁡(0)=0. Because A0≥2⁢ν and M0≥2,

T+′⁢(1)T⁡(1)=12+ν2⁢A0+12⁢M0≤1,

so the extension is nondecreasing and concave. A nonnegative concave function vanishing at zero is subadditive; therefore

Tj+n≤Tj+Tn(j,n∈Z≥0).(D.2)

It remains to verify the explicit bound on the residual supremum. Concavity of G on [0,∞) gives

G⁡(x)≤G0+γ0⁢x.

For an integer j≥1, put y=j and use

log⁡y≤Δ∗⁢y4⁢γ0⁢c+log⁡(1+4⁢γ0⁢cΔ∗).

It follows that

Tj−j⁢Δ∗≤c⁢y⁢[G0+2⁢γ0⁢log⁡(1+4⁢γ0⁢cΔ∗)]−Δ∗2⁢y2
≤R∗.

The final display is bounded above by R∗ after maximizing the concave quadratic in y. This proves the third inequality in (5.14); the first two were proved above. ∎

Appendix E Proof of the planning-complexity result

Proof of Proposition 6.2.

The proof has two independent parts. A Subset-Sum reduction establishes the restricted lower bound, while a polynomial-size CVaR epigraph formulation gives the general existential-real upper classification.

Reduce from Subset-Sum. Let the positive integer weights be w1,…,wn and let the target satisfy B>0. Append a dummy weight B+1 if necessary so that C:=∑iwi>B, without changing whether a subset sums to B, and reindex the resulting list as w1,…,wn. Set H=n, τ=B/C, and at stage i define

ci⁢(take)=ri⁢(take)=wi/C,ci⁢(skip)=ri⁢(skip)=0.

If xi is the take probability, translation equivariance of CVaR and the deterministic self-loop give

V1π=∑iwiC⁢xi,ρ1π=∑iwiC⁢min⁡{xi/α,1}.(E.1)

For α∈(0,1), min⁡{x/α,1}≥x, with equality only at x∈{0,1}. Thus risk at most B/C and reward at least B/C force every xi to be binary and the selected weights to sum exactly to B. The converse is immediate. All-skip has risk zero, so strict feasibility is known.

We next show that the restricted subclass belongs to NP. In an arbitrary one-state, two-action, deterministic-self-loop instance, let xh be the probability of action one at stage h, and denote the two stage costs by dh,0 and dh,1. Translation equivariance and the deterministic continuation imply

ρ1π=∑h=1Hϕh⁢(xh),ϕh⁢(x)=CVaRαup⁡(dh,A),A∼(1−x,x).

If dh,1≥dh,0, then

ϕh⁢(x)=dh,0+(dh,1−dh,0)⁢min⁡{x/α,1};

if dh,1<dh,0, the analogous formula is dh,1+(dh,0−dh,1)⁢min⁡{(1−x)/α,1}. Thus every ϕh is rational piecewise affine with two pieces, while the expected reward is affine in (x1,…,xH). A nondeterministic certificate guesses the active piece at each stage. The corresponding piece-domain inequalities, the risk constraint, the reward-target constraint, and 0≤xh≤1 form a rational linear program. Whenever it is feasible, it has a rational basic feasible solution of bit length polynomial in the input encoding, which supplies a polynomially verifiable certificate. At a piece boundary either adjacent piece may be included because the formulas agree there. Therefore this subclass is in NP and is NP-complete. The displayed reduction is weak and does not establish strong NP-hardness.

For the upper classification, introduce variables for a policy π, reward values vh⁢(s), risk epigraphs Rh⁢(s), CVaR thresholds zh⁢(s), and positive parts th⁢(s,a,s′). Impose the policy simplices, terminal values vH+1=RH+1=0, the reward equations

vh⁢(s)=∑aπh⁢(a∣s)⁢[rh⁢(s,a)+∑s′p⁡(s′∣s,a)⁢vh+1⁢(s′)],(E.2)

and

th⁢(s,a,s′)≥ch⁢(s,a)+Rh+1⁢(s′)−zh⁢(s),th⁢(s,a,s′)≥0,(E.3)
Rh⁢(s)≥zh⁢(s)+1α⁢∑a,s′πh⁢(a∣s)⁢p⁢(s′∣s,a)⁢th⁢(s,a,s′).(E.4)

Add

R1⁢(s1)≤τ,v1⁢(s1)≥vtar.(E.5)

This is a polynomial-size degree-two semialgebraic system. A feasible policy supplies a witness by taking exact reward values, exact nested risks, optimizing CVaR thresholds, and exact positive parts. Conversely, (E.3) implies

th⁢(s,a,s′)≥[ch⁢(s,a)+Rh+1⁢(s′)−zh⁢(s)]+.

Substitution in (E.4), followed by minimization over a hypothetical threshold, gives Rh⁢(s)≥CVaRαup⁡(ch⁢(s,A)+Rh+1⁢(S′)). Starting from RH+1=0, backward induction and monotonicity of CVaR yield Rh⁢(s)≥ρhπ,p⁢(s) at every stage. Hence no witness can certify a falsely feasible policy.

The decision formulation is therefore exact and lies in ∃R, which is contained in PSPACE [7]. When the feasible policy set is nonempty, compactness of ΠM, continuity of risk, and continuity of reward imply attainment. Standard real-algebraic methods, such as cylindrical algebraic decomposition, decide each target query and can represent an exact algebraic optimizer in finite time [4]. The restricted NP-completeness result rules out a generic polynomial-time exact planner unless P=N⁢P. ∎

Appendix F A rare-chain lower bound

This appendix gives the construction and exact calculations underlying Theorems 7.1 and 7.2.

Proof of Theorem 7.1.

We construct two indistinguishable rare branches, compute their nested risks exactly, and then reduce optimal learning to the geometric waiting time until an endpoint reveals the latent model.

The states are the initial state s1, a failure state f, two public endpoint states g,b, and branch-depth states zi,j for i∈{0,1} and 1≤j≤H−2. This is 2⁢H states. At s1, action ai has reward one and cost zero, and moves to zi,1 with probability α and to f otherwise. For 1≤j≤H−3, both actions at zi,j have zero reward and cost and move to zi,j+1 with probability α and to f otherwise. At zi,H−2, both actions move with probability α to a model-dependent endpoint and to f otherwise. Kernel θ∈{0,1} makes that endpoint g when i=θ and b when i=1−θ. Both actions are identical away from s1. For every action a, set p(⋅∣f,a)=δf, p(⋅∣g,a)=δg, and p(⋅∣b,a)=δb.

All unspecified rewards and costs are zero, except that cH⁢(b,a)=1 for both actions; in particular, cH⁢(g,a)=cH⁢(f,a)=0. The rewards and costs are common and known, and the two kernels differ only in the last branch transition. Because branch and depth are encoded in the state, the kernels are time-homogeneous.

We next compute nested risk. At stage H, the risk at b is one and that at f,g is zero. On a bad branch, backward induction gives risk one at every surviving branch-depth state: at the last depth and at every earlier depth, the continuation is one with probability α and zero after failure, whose upper-tail CVaR is CVaRαup⁡(Bernoulli⁡(α))=1. Let (x0,x1) be the learner’s initial action distribution. Under model θ, the stage-one random variable is one exactly when the learner chooses the bad branch 1−θ and survives the first rare transition, an event of probability α⁢x1−θ. Therefore

ρθ=CVaRαup⁡(Bernoulli⁡(α⁢x1−θ))=x1−θ,

or equivalently

ρθ=0=x1,ρθ=1=x0.(F.1)

Each model has a risk-zero, reward-one policy, so g⁡(q)=0 and Δ∗=τ. Every policy also receives reward one; therefore reward regret is identically zero.

An episode reaches g or b with probability β=αH−1, independently of the chosen branch. The endpoint and the learner’s known branch choice identify θ. Before any endpoint has been reached, all observed transitions have identical likelihood under the two models, so the posterior remains uniform. Let Uk be the event of no revelation before episode k. Conditional on any history in Uk, (x0,x1) may depend arbitrarily on that history, but (F.1) and x0+x1=1 still give

Eθ∼Unif⁢{0,1}⁢[ρ−τ∣Uk]=12−14=14.(F.2)

After revelation, risk is nonnegative, so per-episode signed debt is at least −τ=−1/4. Moreover, P⁡(Uk)=(1−β)k−1. Conditioning on Uk and its complement, the episode-k expected debt is at least

14⁢P⁢(Uk)−14⁢P⁢(Ukc)=12⁢(1−β)k−1−14.

Summing this geometric series proves the lower bound in (7.1). It is attained by a learner that chooses either branch before revelation and, once an endpoint identifies θ, always chooses the good branch. Such a learner has debt exactly 1/4 before revelation and exactly −1/4 afterward, while revelation has the constant hazard β. This proves the asserted Bayes-optimal equality.

Here β≤1/4, so K0≥1/(4⁢β) and K0⁢β≤1/2. The first two Bonferroni terms give

1−(1−β)K0≥K0⁢β−(K02)⁢β2.

Substitution into (7.1) yields

BRρ⁡(K0)≥K04⁢[1−(K0−1)⁢β]≥K08≥132⁢β.

This completes the proof. ∎

Remark F.1 (Heterogeneous rare chain).

The same construction matches Corollary B.3. Let the transition after stage h survive with probability αh and use CVaRαhup at that stage. Since CVaRαhup⁡(Bernoulli⁡(αh))=1, the risk calculation is unchanged, while β=∏h=1H−1αh. Equation (7.1) remains an exact Bayes identity with this β; when β≤1/4, (7.2) remains valid as well.

Proof of Corollary 7.2.

Let Uk again denote no revelation before episode k. Conditional on a history in Uk, write (x0,x1,xℓ) for the initial action probabilities. In either model the constrained comparator earns one by choosing its good branch. Hence the episode reward regret is xℓ, while (F.1) gives

Eθ∼Unif⁢{0,1}⁢[(ρ−τ)+12⁢(reward regret)]=[x0+x12−14]+xℓ2=14.

The conditional probability of identification in any unrevealed episode is β⁡(x0+x1)≤β, so P⁡(Uk)≥(1−β)k−1. After identification, risk and reward regret are nonnegative before subtracting τ, and the displayed combined quantity is therefore at least −1/4. Conditioning as in the theorem gives a lower bound 12⁢(1−β)k−1−14 for episode k. Summation proves (7.3).

At K0=⌊1/(2⁢β)⌋, the right side is at least 1/(32⁢β) by the calculation in Theorem 7.1. If G<1/(64⁢β), then

12⁢F⁢K0>164⁢β.

Since K0≤1/(2⁢β), this implies F>2/(32⁢β) and proves (7.4). ∎

Appendix G Notation, quantifiers, and comparison axes

The following tables collect the scopes that are easiest to conflate in the main text and compare the nearest methodological lines along the axes relevant to the scoped novelty statement in the introduction.

Table 1: Notation and quantifier scope.
Symbol or phrase Meaning Scope and quantifier
p∼μ, Q Latent transition kernel and prior support p is drawn once before interaction and then fixed; model-wise strict feasibility holds for every q∈Q.
Hk, p^k Episode-start history and sampled kernel Conditional on Hk, p and p^k are independent copies from the posterior μk.
ΠM, πk Randomized physical-state Markov policies Action randomization is inside every CVaR operator, and πk is measurable with respect to σ⁡(Hk,p^k).
g⁡(q), Δ∗ Minimum nested risk and induced uniform gap Δ∗=τ−supq∈Qg⁡(q)>0 exists by compactness but is not given to the learner.
Bk, Tk, NKcal Risk bank, anytime target, and calibration count The algorithm uses Tk and observed sampled-model slack, but neither the terminal horizon K nor Δ∗.
BRr⁡(K), BRρ⁡(K) Signed Bayesian reward shortfall and signed risk-value debt Expectations cover the prior, observations, posterior draws, and policy randomization; only one-sided upper bounds are claimed.
“simultaneously for all K” Anytime expectation and pathwise count bounds The inequalities in Theorem 4.2 hold for every evaluation horizon along the same algorithmic run.
“fixed K” certificate High-probability statement in Theorem 5.6 It is pointwise in a fixed admissible measurable policy-selection rule and is not a confidence sequence.
Rational planning result Decision problem in Definition 6.1 It classifies rationally encoded known-model inputs; it does not implement the oracle for arbitrary real posterior samples.
Table 2: Axis-by-axis comparison with the nearest methodological lines. “Static” means one risk functional applied to an episode return; “nested” means a stagewise time-consistent recursion.
Work Risk functional and task Online protocol and comparator Guarantee or boundary relevant here
This work Nested upper-tail CVaR constraint with expected-reward objective Bayesian posterior sampling; randomized physical-state Markov policies with action mixing inside CVaR Near-K one-sided signed reward shortfall, K-independent upper bound on expected signed debt, and sparse calibration; exact sampling and planning oracles.
[15, 8] Iterated-CVaR objective Episodic online learning; risk-sensitive objective rather than a separate constraint Objective-regret or sample-efficiency results, not a separate signed-debt guarantee.
[35, 22, 13] Recursive OCE or dynamic-risk objective Episodic interaction or a generative-model protocol Regret or sample complexity for optimizing the risk-sensitive objective.
[9] Static percentile or trajectory-CVaR constraint Risk-constrained policy optimization Static trajectory risk and optimization guarantees rather than nested-risk Bayesian regret.
[17] Entropic-risk constraint with expected-reward objective Online finite-horizon learning with optimism and primal–dual control Sublinear reward and constraint performance for entropic risk, not nested CVaR or K-independent signed debt.
[18, 28] Additive expected-cost CMDPs Posterior sampling in episodic Bayesian or communicating average-reward models Reward and additive-constraint guarantees; the risk recursion and comparator studied here are absent.
[21] OCE-based risk-aware constraints Policy optimization under constraint qualifications Convergence of an OCE-constrained optimizer, not finite-horizon posterior-sampling regret.
[20] Static return-CVaR objective or chance constraint Probabilistic forecasts, posterior sampling, and a belief-augmented planner Different risk functional and comparator; the cited preprint does not state the signed-debt theorem considered here.
[29, 23] Risk applied to Bayesian model uncertainty Bayes-adaptive or Bayesian-risk MDP formulations Risk over epistemic uncertainty rather than a separate nested constraint under a fixed latent kernel.