GLOBAL KNOWLEDGE ARK

Mathematics · Article

Dynamic programming and an introduction to control

Dynamic programming and control connect causal decisions, exact optimality proofs, approximation bounds and the stability and feasibility of the dynamics actually implemented.

Back to Mathematics

After reading, you can

  • Derive finite and discounted Bellman equations from the actual causal information and admissible policy class, including state augmentation and uniform termination limits.
  • Prove value, residual, approximate-greedy and model-error bounds in their full comparison domains, with the correct probability norms and stopping conventions.
  • Complete discrete and continuous LQR squares, distinguish finite and algebraic Riccati conditions, and prove the terminal limits required for infinite-horizon optimality.
  • Derive reachability, minimum-energy, observability and Lyapunov certificates while keeping gain existence, input feasibility and local or global stability separate.
  • Prove continuous dynamic programming, smooth HJB verification and residual bounds, a restricted normal needle condition and convex sufficiency, and direct nonsmooth switching tests.
  • Establish recursive MPC feasibility and decrease, a zeroing-barrier condition and numerical/model error certificates under the independently justified flow, selection and domain premises.
01

Decisions, information and dynamical behavior

A control problem asks which actions to choose as a system evolves and information arrives. The answer depends on what is observed before each decision, which actions are feasible, how the state records the relevant past and how costs accumulate. Dynamic programming turns that structure into linked continuation problems. In a finite model, backward induction can prove both an optimal cost and an implementing policy. A formal recursion, a numerical value table and an actually feasible control law still need to be distinguished.

We first develop finite and discounted Bellman reasoning, including history and randomization, full residual certificates, approximate greediness, exact policy improvement and uniform transition-model errors. Undiscounted termination and rectangular uncertainty reveal where familiar recursions need stronger premises. Discrete linear-quadratic control then connects square completion to Riccati equations, reachability, minimum input energy, observation and Lyapunov stability. An optimizer for a finite horizon is not automatically a stabilizing controller when its first action is repeatedly applied.

For continuous time we begin with admitted differential-equation flows, derive dynamic programming and smooth Hamilton-Jacobi-Bellman verification, and check an exact nonsmooth value directly at its switching boundary. A restricted normal costate proof, convex sufficiency and singular controls explain what necessary conditions do and do not establish. Continuous Riccati continuation and terminal-tail proofs lead to receding-horizon feasibility, zeroing barriers, numerical flow error and conditional model-transfer certificates. Every conclusion retains its information, domain, units, regularity and implementation assumptions.

02

A finite deterministic Bellman recursion

Fix integer T>=0, finite nonempty state sets S_t, finite nonempty feasible sets A_t(x), deterministic maps f_t(x,u) in S_(t+1), real costs c_t and real terminal g. A policy selects an admitted control after each available history, and its cost is the finite sum of stage costs plus g(x_T). Define V_T(x)=g(x) and V_t(x)=min_(u in A_t(x)){c_t(x,u)+V_(t+1)(f_t(x,u))}. All displayed minima are attained because their feasible sets are finite and nonempty, and all values are finite by backward induction. Time is an explicit state index.

At terminal time the asserted value equals the actual remaining cost. Suppose the assertion is established at t+1 for every state. After any history ending at x at time t, its first action u incurs c_t(x,u); whatever subsequent admissible decisions it makes, its remaining cost is at least V_(t+1)(f_t(x,u)). Hence its total continuation cost is at least the displayed minimum. This lower bound applies separately to every first action and history, not only to a previously chosen open-loop path.

For the reverse inequality, choose for every pair (t,x) one minimizing action mu_t(x). Following that choice and the already chosen minimizing actions at subsequent times produces the displayed value: its first stage gives the minimizing expression and the induction hypothesis supplies the exact optimal continuation. There are only finitely many such choices, so no measurable-selection premise or unproved global minimizer is needed. The collection of choices is a complete time-dependent feedback policy, including states outside a single initial optimal path.

The terminal cost changes earlier decisionsA state-dependent terminal cost; The vertical axis shows conditional value, with each chosen state and action labeled along one attainable policy. There are no ties.The terminal cost changes earlier decisions-0.5604.56-0.273.27State 0State 1s1 · switchs0 · stays0 · stays0 · terminalRepresentative policy: labeled state and chosen actionStage t · conditional value V_t(s)
The vertical axis shows conditional value, with each chosen state and action labeled along one attainable policy. There are no ties.

Start from the terminal penalties. For each state and time, add the immediate cost to the next-state value for each feasible action. The minimum is the new value and every tied action is optimal at that state. A representative policy can choose one of them; its directly summed cost matches the computed value.

Exact Bellman and policy outcomes
QuantityExact result
Terminal values(0, 4)
Initial values by state(3, 3)
Chosen start state1
All tied stage/state pairsNone
Terminal state and cost0 / 0
Direct accumulated cost3
Visible representative state and action tracet=0 s=1 switch → 0 · t=1 s=0 stay → 0 · t=2 s=0 stay → 0
Exact inputs and supporting calculations
Declared inputs
ParameterValue
stay[1,3]
switch[2,1]
terminal[0,4]
start1
Complete exact Bellman rows
tStateStay totalSwitch totalMinimumAll minimizers
00343stay
01533switch
10232stay
11422switch
20161stay
21711switch
One optimal path with ties broken by staying
tCurrent stateActionCostNext state
01switch10
10stay10
20stay10

Backward induction proves the recursion and the optimality of that policy at every admitted start. If T=0 there is no control to choose and the value is g immediately. Multiple minimizers may yield several optimal policies without changing the value. This finite proof does not establish existence for arbitrary continuous controls or an infinite horizon, nor does it license omission of state-dependent feasibility or a terminal condition. Related reading: [Finite dynamic programming and causal information](https://ocw.mit.edu/courses/6-231-dynamic-programming-and-stochastic-control-fall-2015/dae6c8dca97f89b45bd0d7877a5433c9_MIT6_231F15_Notes.pdf). Backward induction constructs a minimizing action for every state and time. The finite, nonempty action sets supply attainment rather than an assumed optimizer.

03

Finite stochastic Bellman reasoning

Let S_t and A_t(x) be finite, nonempty at admitted states. The controlled kernel P_t(y|x,u) is nonnegative and sums to 1. The required Markov premise is conditional: given the entire available history and the selected control, the next-state law equals this kernel at the current state/action; its stage cost is c_t(x,u), and terminal cost is g(x_T). Define V_T=g and V_t(x)=min_u{c_t(x,u)+sum_y P_t(y|x,u)V_(t+1)(y)}. Boundedness follows from finiteness and the finite horizon.

For any admissible history ending at x, condition first on its selected action. Under the induction hypothesis the continuation expected cost from each possible y is at least V_(t+1)(y), even if later choices retain the earlier history. The tower property and the specified conditional kernel therefore bound the conditional expected total cost below by c_t(x,u)+sum_y P_t(y|x,u)V_(t+1)(y). A randomized initial choice only takes a convex average of these expressions, so cannot lower their minimum.

Select one minimizing control at every state and time and use the corresponding minimizing feedback at t+1. Its conditional continuation expectation is exactly the displayed finite sum, and the first action attains the minimum. Thus this single complete policy realizes the recursion at every state. The lower and upper arguments establish the value over all nonanticipating policies in the stated information class. A minimizer need not be unique, and the policy may depend on time even if some displayed kernels coincide.

The state must contain every observable variable that changes conditional transitions, running costs or available actions: remaining inventory, an observed mode, previous control when switching is penalized, and remaining time when needed. If a hidden history affects the next law, the stated conditional Markov equality has failed; writing the same recursion on an incomplete variable is not a proof. Partially observed problems require an appropriate information state rather than this fully observed conclusion by name alone. Related reading: [Finite dynamic programming and causal information](https://ocw.mit.edu/courses/6-231-dynamic-programming-and-stochastic-control-fall-2015/dae6c8dca97f89b45bd0d7877a5433c9_MIT6_231F15_Notes.pdf). The expectation is conditional on the actual observed state and selected action. A sufficient state must carry the history relevant to costs, feasible actions and transition probabilities.

04

Admissibility and extended terminal costs

Keep a finite horizon and finite state/action sets, but permit some feasible action sets to be empty and let terminal g take finite real values or +infinity. Set min(empty)=+infinity. No stage cost is infinite and no terminal cost is -infinity. Since the finite collection of stage costs has a lower bound, add a time-dependent constant if necessary so all stage costs and terminal finite values become nonnegative; this changes every complete cost by the same finite amount and leaves the minimizing controls unchanged.

For deterministic dynamics, a path hitting a forbidden terminal state has cost +infinity. For a finite stochastic kernel, an expected +infinity continuation contributes +infinity exactly when its probability is positive; a zero-probability term contributes 0. Thus all expectations and additions are well defined as nonnegative extended sums after the finite shift. There is no subtraction of infinities and no cancellation of an infeasible continuation by a negative-infinite reward. Terminal restrictions and earlier dead ends are now represented by the same extended value convention.

The same backward split proves V_t=min_u(c_t+P_t V_(t+1)), with V_t=+infinity if no finite-cost continuation exists. If V_t(x)<infinity, at least one finite minimizing expression exists. Its stochastic successors of positive probability all have finite next value, so the induction constructs a feasible finite-cost policy from that start. At an unreachable or infinite-value state no legal finite-cost action is inferred; in particular, a minimum of +infinity is not evidence of feasibility, and an empty action set has no selected action.

Consequently the recursion may certify impossibility as well as an optimum. Its proof uses the declared continuation domain and the absence of undefined extended arithmetic. A terminal penalty that is merely large and finite solves a different soft-constraint problem, unless a separate exact-penalty argument is supplied. Ordinary finite-cost optimal-feedback claims apply to finite-valued admitted starts, not automatically to every state in an enlarged table containing forbidden states. Related reading: [Finite dynamic programming and causal information](https://ocw.mit.edu/courses/6-231-dynamic-programming-and-stochastic-control-fall-2015/dae6c8dca97f89b45bd0d7877a5433c9_MIT6_231F15_Notes.pdf); [Sequential minimax and rectangular uncertainty](https://ocw.mit.edu/courses/6-231-dynamic-programming-and-stochastic-control-fall-2015/dae6c8dca97f89b45bd0d7877a5433c9_MIT6_231F15_Notes.pdf). The extended-real recursion is proved here with finite stage costs and explicit empty/forbidden-continuation conventions. Infinite value is not an attained feasible finite cost.

05

History, randomization and Markov policies

Consider the fully observed finite controlled Markov model of P02. A nonanticipating randomized policy may use the entire observed history and auxiliary random choices available by that time, but it cannot use information that violates the given conditional next-state kernel. At a fixed history h with last state x, write alpha_h(u) for its conditional distribution over feasible current controls. The subsequent kernel conditional on h, u is still P_t(.|x,u).

Backward induction gives a lower bound V_(t+1)(y) for its continuation after every possible successor history. Therefore its conditional expected cost is at least sum_u alpha_h(u)[c_t(x,u)+sum_y P_t(y|x,u)V_(t+1)(y)]. Every bracket is at least its finite minimum V_t(x), and the nonnegative weights sum to 1. This proves the same lower bound for every history and every such randomized policy, including random decisions correlated across times through its earlier observed random seed.

A deterministic time-dependent minimizing selector mu_t(x) from the Bellman recursion attains equality by using optimal continuation selectors at every next state. It thus belongs to the larger history-policy class and simultaneously attains its lower bound. The infimum over deterministic Markov policies and over the stated history-dependent randomized policies is the same, with an attained minimum. Randomization may preserve optimality among tied actions but cannot create a smaller convex average.

The argument does not say history is always irrelevant. It says the declared Markov state already contains the information on which the conditional law, feasibility and costs depend. A seed that reveals a future disturbance, private observations omitted from x, a coupled uncertain parameter inferred from history, or a hidden-state problem can change that information class. Those changes require a new sufficient state or a different recursion; the finite conditional proof supplies no automatic reduction for them. Related reading: [Finite dynamic programming and causal information](https://ocw.mit.edu/courses/6-231-dynamic-programming-and-stochastic-control-fall-2015/dae6c8dca97f89b45bd0d7877a5433c9_MIT6_231F15_Notes.pdf). The full history/randomization comparison is derived here by conditional finite induction. Averaging feasible action costs cannot beat their minimum, and randomization cannot reveal a future shock.

06

Feedback is not advance knowledge

Fix an initial state and compare policies under the same actual dynamics, costs, feasibility and observation timing. Any admissible prechosen open-loop sequence can be implemented as a nonanticipating feedback policy that ignores its observations. Hence the set of admissible open-loop sequences is a subset of the feedback-policy class, and minimization gives V_feedback<=V_open. With path constraints, only sequences feasible in the declared sense belong to the first set; infeasible sequences cannot be used to reverse the comparison.

Strict inequality is possible after genuine observation. Let a shock W take values -1 and 1 with equal probabilities, reveal x_1=W, and allow u in {-1,1} afterward with terminal cost (W+u)^2. The feasible feedback u=-W gives zero cost on both histories, which is minimal because the square is nonnegative. A fixed action independent of W has expectation E(W+u)^2=E W^2+2u E W+u^2=2. Independent randomization over the two controls still averages this same cost 2.

Timing is essential: the feedback above observes W before acting, so it uses available information. If the shock is instead revealed only after the action, that rule is not admissible. In a finite probability space the clairvoyant benchmark E[min_u C(u,W)] is at most min_u E[C(u,W)], because min_u C(u,W)<=C(v,W) for every fixed v on every realization. An optimizer inside that expectation may depend on an unobserved future W; its lower cost therefore does not establish implementability.

For a deterministic known model and one initial state, an optimal realized feedback path can often be written as an equally good open-loop sequence; the gain from feedback concerns adaptation to observed uncertainty or unanticipated state differences, rather than a universal strict improvement. Equating expected feedback performance with a future-aware pathwise minimum changes the experiment. State information, the admissible policy class and cost expectation are specified before any optimization comparison. Related reading: [Finite dynamic programming and causal information](https://ocw.mit.edu/courses/6-231-dynamic-programming-and-stochastic-control-fall-2015/dae6c8dca97f89b45bd0d7877a5433c9_MIT6_231F15_Notes.pdf). The source feedback setting preserves observation timing. The shock example separates an observed-state policy from a prechosen action and from advance knowledge.

07

Finite-horizon residual certificates

Let T_t be the finite stochastic Bellman map at time t and let approximate tables w_t be real on all states, including terminal w_T. Define e_T=||w_T-g||_infinity and e_t=||w_t-T_t w_(t+1)||_infinity for t<T. The elementary inequality |min_a q_a-min_a r_a|<=max_a|q_a-r_a| and stochastic row sums 1 give ||T_t v-T_t w||_infinity<=||v-w||_infinity. Thus with E_t=sum_(k=t)^T e_k, backward induction yields ||w_t-V_t||_infinity<=E_t.

Choose mu_t(x) to minimize c_t(x,u)+P_t(.|x,u)w_(t+1). Its policy map T_t^mu is nonexpansive for the same reason, and by actual greediness T_t^mu w_(t+1)=T_t w_(t+1). Let J_t^mu be its true remaining cost, with J_T^mu=g. Then ||w_t-J_t^mu||<=e_t+||w_(t+1)-J_(t+1)^mu||, so induction gives the same bound E_t. This is a statement about the realized policy value, not merely a formal next-table minimum.

Since V_t is the minimum over admissible policies, 0<=J_t^mu(x)-V_t(x). The two sup-norm comparisons imply J_t^mu(x)-V_t(x)<=2E_t at every start. A declared additional per-stage zeta_t error in the chosen minimizing action adds sum_(k=t)^(T-1) zeta_k to the policy bound; it must not be called exact greediness. The terminal discrepancy is included in both backward comparisons rather than silently set to zero.

These bounds require the full state/action Bellman residuals and the same actual controlled model. A small update difference on visited states, a simulation average, or a table calculated with a different transition law does not establish e_t. Finiteness supplies complete norm domains in this theorem; a continuous or restricted approximation space needs its own uniform bound. The certificate concerns this finite-horizon value and policy cost, not model truth or asymptotic stability of a physical controller. Related reading: [Finite dynamic programming and causal information](https://ocw.mit.edu/courses/6-231-dynamic-programming-and-stochastic-control-fall-2015/dae6c8dca97f89b45bd0d7877a5433c9_MIT6_231F15_Notes.pdf). The finite residual and policy-loss constants are derived here from the exact recursion. The error bounds must cover the full state-time comparison domain.

08

Discounting contracts the Bellman map

Let S be finite, A(x) nonempty finite, |c(x,u)|<=C and 0<=beta<1. On real state vectors define (Tv)(x)=min_u{c(x,u)+beta sum_y P(y|x,u)v(y)}. If v<=w componentwise, each expected continuation and hence each minimum has the same order, so T is monotone. For a constant a, T(v+a*1)=Tv+beta*a*1 because every transition row sums to 1.

For every action the difference of its two continuation expressions has magnitude at most beta||v-w||_infinity. Taking the two minimizing comparisons proves ||Tv-Tw||_infinity<=beta||v-w||_infinity. This is a global sup-norm contraction of the actual full map. At beta=0 its output is independent of the continuation, with contraction factor 0; at beta=1 this argument supplies only nonexpansiveness and none of the strict conclusions below.

Starting from any finite vector v_0, put v_(k+1)=Tv_k. Repeated contraction gives ||v_(k+1)-v_k||<=beta^k||v_1-v_0||. The geometric tail sum is finite, so the sequence is Cauchy in finite-dimensional real space and converges to a finite v*. Continuity of T from its Lipschitz bound gives Tv*=v*. If another fixed point w* exists, ||v*-w*||<=beta||v*-w*|| forces equality of the two vectors because 1-beta>0.

The cost bound also implies ||v*||<=C+beta||v*||, hence ||v*||<=C/(1-beta). These statements establish a unique algebraic fixed point without yet equating it to the cost of an arbitrary policy; that equality is proved separately by discounted telescoping and an admissible minimizing selector. A discount factor approaching 1 weakens every residual denominator, and bounded stage costs or a controlled weighted norm cannot be omitted from the stated function space. Related reading: [Discounted Bellman maps and certificates](https://ocw.mit.edu/courses/6-231-dynamic-programming-and-stochastic-control-fall-2015/dae6c8dca97f89b45bd0d7877a5433c9_MIT6_231F15_Notes.pdf). The selected source proves the bounded discounted contraction. The lesson includes its complete fixed-point construction and the beta=0 endpoint.

09

Value iteration and its actual stopping bound

For the exact discounted Bellman iteration v_(k+1)=Tv_k and its unique fixed point v*, repeated contraction immediately gives ||v_k-v*||_infinity<=beta^k||v_0-v*||_infinity. The right side refers to the true initial value error, so it is not itself an observable stopping test unless that initial error has an independent bound. For example, ||v_0||+C/(1-beta) is a valid bound under the preceding uniform cost premise.

For any finite candidate w, add and subtract Tw to obtain ||w-v*||<=||w-Tw||+||Tw-Tv*||<=r+beta||w-v*||, where r=||w-Tw||_infinity. Rearranging gives ||w-v*||<=r/(1-beta). Thus the actual full residual r<=(1-beta)*epsilon certifies value accuracy epsilon. In exact iteration r_k=||v_(k+1)-v_k||, and the same inequality applies to v_k; iteration arithmetic errors would need their own additional bound.

A computable initial residual also gives ||v_0-v*||<=||v_1-v_0||/(1-beta). Combining it with the geometric inequality supplies an entirely bounded a priori iteration error. At beta=0 one application of T gives the exact fixed point and the residual inequality still has denominator 1. No relative error or policy performance estimate follows without its separate cost-scale and policy argument.

An exact residual bounds the remaining value errorDiscounted choices depend on state; The two iterate traces coincide. At V₃, the actual infinity-norm error is 1/4 and the residual is 1/8. Exact greedy actions at states 0 and 1 are stay / switch.An exact residual bounds the remaining value error-0.2802.28-0.273.27Both states follow the same iterate traceV*(0)=V*(1)=2Open markers show the exact fixed point at k=3 for comparisonValue-iteration count k · estimated value
The two iterate traces coincide. At V₃, the actual infinity-norm error is 1/4 and the residual is 1/8. Exact greedy actions at states 0 and 1 are stay / switch.

Evaluate a stationary policy by solving (I−γP)V=c, then check it is greedy at its own value. The exact Bellman fixed point is unique by the γ contraction in the infinity norm. Comparing an approximate value with its image and using the contraction gives the residual bound; a geometric sum of future increments gives the alternative stopping bound.

Exact discounted Bellman bound
QuantityExact result
Discount1/2
V₀, V₁, V₂, V₃(0, 0) → (1, 1) → (3/2, 3/2) → (7/4, 7/4)
Certified stationary policystay / switch
All exact greedy choices by statestay / switch
Exact stationary value(2, 2)
Actual error in infinity norm1/4
T(V₃)(15/8, 15/8)
Residual norm1/8
Residual bound ||T(V₃)−V₃||∞/(1−γ)1/4
Increment bound γ||V₃−V₂||∞/(1−γ)1/4
Exact inputs and supporting calculations
Declared inputs
ParameterValue
stay[1,3]
switch[2,1]
gamma1/2

The residual is over every admitted state and every action inside the minimum. As a counterexample to sampled-only certification, take two independent absorbing states with one action each, stage costs 0 and M>0, discount beta<1, and candidate w=0. Sampling only the first state sees residual 0, while the second has true value M/(1-beta). The full residual is M and gives the correct global bound. An unobserved state cannot be declared accurate from the first one. Related reading: [Discounted Bellman maps and certificates](https://ocw.mit.edu/courses/6-231-dynamic-programming-and-stochastic-control-fall-2015/dae6c8dca97f89b45bd0d7877a5433c9_MIT6_231F15_Notes.pdf). The geometric rate comes from contraction. The residual stopping bound and sampled-state counterexample are proved here for the full Bellman operator.

10

Stationary policy evaluation and optimality

For a fixed stationary deterministic policy mu, write P_mu for its stochastic transition matrix and c_mu for its cost vector. Since ||P_mu||_infinity=1 and 0<=beta<1, the matrix series sum_(k>=0) beta^k P_mu^k converges absolutely in operator norm. Multiplication by I-beta P_mu telescopes to I, so it is the inverse of that matrix. Therefore J_mu=sum_(k>=0) beta^k P_mu^k c_mu is the unique solution of J_mu=c_mu+beta P_mu J_mu, and the series is its actual expected discounted cost by absolute convergence.

Let v* be the Bellman fixed point. For every feasible current action, v*(x)<=c(x,u)+beta P(.|x,u)v*. Apply this conditional inequality along any nonanticipating policy satisfying the declared Markov kernel. Repeated conditioning gives v*(x0)<=E[sum_(k=0)^(N-1) beta^k c(x_k,u_k)+beta^N v*(x_N)]. Its final term has magnitude at most beta^N||v*|| and tends to zero, while the cost series converges absolutely under bounded costs. Thus v* is a lower bound on the cost of every such policy.

Choose a stationary minimizing selector mu*(x) for Tv*. Finiteness of the nonempty action sets makes this selector available at every state, and its map satisfies T_mu* v*=Tv*=v*. The fixed-policy equation has the unique solution just proved, so J_mu*=v*. This supplies an attainable admissible cost equal to the universal lower bound and identifies the Bellman fixed point with the true optimal value, rather than merely assuming the identification from a fixed-point name.

No irreducibility, recurrent-class choice or invariant distribution is needed for this discounted proof. The transition-matrix series is a controlled expected-cost representation, not a pathwise convergence statement for x_k. A randomized stationary policy can also be evaluated by its actual averaged kernel and costs, but the deterministic minimizing selector is sufficient for optimality here. At beta=1 the inverse series, vanishing-tail step and these boundedness arguments need a separate termination or transversality premise. Related reading: [Exact policy evaluation and improvement](https://ocw.mit.edu/courses/6-231-dynamic-programming-and-stochastic-control-fall-2015/dae6c8dca97f89b45bd0d7877a5433c9_MIT6_231F15_Notes.pdf); [Discounted Bellman maps and certificates](https://ocw.mit.edu/courses/6-231-dynamic-programming-and-stochastic-control-fall-2015/dae6c8dca97f89b45bd0d7877a5433c9_MIT6_231F15_Notes.pdf). The selected fixed-policy equation and greedy optimality match the setting. The convergent matrix-series inverse and the comparison with nonanticipating histories are established explicitly.

11

Approximate greediness has a quantitative price

Let w approximate the exact discounted optimal value with ||w-v*||_infinity<=delta, and suppose policy mu is zeta-greedy: T_mu w<=Tw+zeta*1 componentwise, with zeta>=0. Because T is a minimum, T_mu v*>=Tv*=v*. Add and subtract T_mu w and Tw to bound each component: 0<=T_mu v*-v*<=(beta*delta+zeta+beta*delta)*1. Both continuation maps have the same beta Lipschitz constant because they use stochastic rows.

Subtract the policy and optimal equations to obtain J_mu-v*=(I-beta P_mu)^(-1)(T_mu v*-v*). The inverse series has nonnegative entries and sup norm at most 1/(1-beta), so 0<=J_mu-v*<=(2*beta*delta+zeta)/(1-beta) componentwise. This proof controls the true policy value and does not mistake the current approximate table for that value. The quantities delta and zeta are measured in value/cost units, with the actual discount retained.

For an EXACT greedy selector, T_mu w=Tw. Put e=||w-Tw||_infinity. Both fixed-point residual arguments apply: ||w-v*||<=e/(1-beta) and ||w-J_mu||<=e/(1-beta), the latter using T_mu w=Tw and the contraction of T_mu. Hence its loss is also at most 2e/(1-beta). This direct residual bound can be sharper than first converting e to delta and then using the previous formula, which would introduce another denominator. Neither inequality requires replacing one valid bound by a numerically weaker route.

At beta=0 exact greediness already chooses a minimal stage cost, so the uniform-value-error formula correctly gives zero loss when zeta=0. Ties may make policies nonunique without changing the certificate. The bounds require uniform approximation or residual evidence over the actual state space, the same feasible action sets and the stated exact or approximate minimizing condition. A sampled residual, an optimization solver label or a cost tolerance in another model does not establish these hypotheses. Related reading: [Discounted Bellman maps and certificates](https://ocw.mit.edu/courses/6-231-dynamic-programming-and-stochastic-control-fall-2015/dae6c8dca97f89b45bd0d7877a5433c9_MIT6_231F15_Notes.pdf). The quantitative approximate-greedy and direct-residual bounds are complete derivations in this lesson. Approximate values and the true cost of the implemented policy are different quantities.

12

Policy improvement needs its exact evaluation

Evaluate a finite deterministic policy mu exactly, so J_mu=c_mu+beta P_mu J_mu. Choose mu_prime greedy for that value and retain the incumbent action at every state where it is among the minimizing actions. Define d=J_mu-T_mu_prime J_mu. Greediness and T_mu J_mu=J_mu give d>=0. Subtract the two fixed-policy equations to find J_mu-J_mu_prime=(I-beta P_mu_prime)^(-1)d, whose nonnegative series proves that no state cost increases.

If the greedy selection actually changes an action under this tie rule, the old action was not a minimizer there. Its advantage is strictly positive, so d(x)>0 at that state. The identity term in the inverse series then makes J_mu(x)-J_mu_prime(x)>=d(x)>0. If no change is required, or if d=0, the incumbent value solves TJ_mu=J_mu and hence equals the unique optimal Bellman fixed point. Thus no-change termination is an optimality conclusion under exact evaluation.

There are finitely many deterministic stationary policies. Along every nonterminal improvement, all value coordinates decrease weakly and at least one decreases strictly. A previously visited policy could not recur: its uniquely defined value vector would have to equal its earlier value despite a strict coordinate decrease that later improvements never undo. Therefore exact iteration with the stated tie rule must stop after finitely many policy changes, and the stopping policy is optimal.

This finite termination proof depends on an actual strict improvement when an action changes. Freely changing tied minimizing actions can revisit policies with identical values, so it does not inherit the same argument. Approximate policy evaluation can reverse a small advantage or create a false tie; it needs separately bounded errors and a modified guarantee. The theorem counts a finite policy set, not a polynomial complexity bound or a claim that numerical linear algebra has exact arithmetic. Related reading: [Exact policy evaluation and improvement](https://ocw.mit.edu/courses/6-231-dynamic-programming-and-stochastic-control-fall-2015/dae6c8dca97f89b45bd0d7877a5433c9_MIT6_231F15_Notes.pdf); [Discounted Bellman maps and certificates](https://ocw.mit.edu/courses/6-231-dynamic-programming-and-stochastic-control-fall-2015/dae6c8dca97f89b45bd0d7877a5433c9_MIT6_231F15_Notes.pdf). The source stops on equal consecutive policy values. The lesson retains incumbent ties when stopping on unchanged policy; these stopping conventions must not be silently exchanged.

13

Undiscounted termination needs a stronger premise

For an undiscounted finite model, let G be an absorbing terminal set with zero continuation and no further cost. Assume bounded stage costs |c|<=C outside G and a common integer m>=1 and eta in (0,1] such that, from every nonterminal state and after every admitted history, EVERY admissible policy reaches G within the next m steps with probability at least eta. Reconditioning in consecutive blocks gives Pr(tau>km)<=(1-eta)^k for terminal hitting time tau. Hence E tau<=m/eta and every policy cost is absolutely integrable.

Restrict terminal value vectors to be zero on G. The m-step Bellman map can be written as the infimum over finite m-stage contingent policies of the expected accumulated stage cost plus the terminal vector at time m, stopped at G. For any one such policy and two vectors v, w, their only difference has magnitude at most Pr(tau>m)||v-w||<=(1-eta)||v-w||. Taking the two minimizing comparisons proves ||T^m v-T^m w||<=(1-eta)||v-w||. For eta=1 the continuation difference is exactly zero.

The geometric Cauchy argument therefore gives a unique fixed point v* of T^m. Since T commutes with its own m-th iterate, T v* is also a fixed point of T^m, so uniqueness implies Tv*=v*. Any fixed point of T is also a fixed point of T^m and must equal v*. The expected absolute tail cost after km is uniformly at most C*(m/eta)*(1-eta)^k, so finite-horizon cost recursions converge to the actual stopped cost optimum. Equivalently, Bellman telescoping has a bounded terminal-vector tail weighted by the same vanishing survival probability.

A finite minimizing selector at v* attains the stopped optimum by that telescoping argument. The crucial assumption is the uniform terminal probability for ALL continuations, not merely the existence of one terminating policy. A zero-cost nonterminating loop can preserve multiple Bellman fixed points even when an exit action is available; negative loops can make a cost infimum unbounded. No denominator 1-beta with beta=1 is used: the contraction here is a genuine m-step survival bound under a different premise. Related reading: [Undiscounted costs and uniform termination](https://ocw.mit.edu/courses/6-231-dynamic-programming-and-stochastic-control-fall-2015/dae6c8dca97f89b45bd0d7877a5433c9_MIT6_231F15_Notes.pdf). The uniform termination premise covers every allowed policy. The lesson proves the multi-step contraction and gives the contrasting one-proper-policy example.

14

Transition and cost errors transfer conditionally

Compare two discounted finite models on the SAME state space and nonempty feasible action sets, with identical beta<1. Let true and nominal costs satisfy |c-hat_c|<=delta_c uniformly over every state/action and let ||P(.|x,u)-hat_P(.|x,u)||_1<=epsilon_P. Let hat_v* be the nominal optimal value and define D=delta_c+beta*epsilon_P*||hat_v*||_infinity. For every action, the true and nominal Bellman expressions evaluated at hat_v* differ by at most D, by the triangle inequality and the row L1 bound.

The minimum comparison then gives ||T hat_v*-hat_T hat_v*||<=D. Since hat_T hat_v*=hat_v*, this is a true-model full Bellman residual. Consequently ||v*-hat_v*||<=D/(1-beta). It is a bound in cost units: transition error is dimensionless, whereas the value scale multiplying it is indispensable. A small transition probability error need not imply small value error when the future value scale or effective horizon is large.

Let hat_mu be exactly greedy in the nominal model, so hat_T_hat_mu hat_v*=hat_v*. The same actionwise comparison bounds its true-model policy residual ||T_hat_mu hat_v*-hat_v*|| by D. Exact true-policy evaluation therefore gives ||J_hat_mu-hat_v*||<=D/(1-beta). Combining with the optimal-value comparison yields 0<=J_hat_mu-v*<=2D/(1-beta). This preserves the nominal policy as an implementable policy in the common true action domain rather than assuming its nominal cost is what will occur.

Because each difference of stochastic rows sums to zero, one may subtract the midpoint of the range of hat_v* before applying the row bound. If epsilon_TV bounds half the row L1 norm, its contribution is beta*epsilon_TV*span(hat_v*), with span=max-minus-min, not an unqualified twice- or half-scaled substitute. These are conditional uniform-model certificates. Changed feasibility, unobserved-action errors, an incorrect kernel, or an empirical fit only along sampled trajectories does not satisfy the common-domain uniform premise. Related reading: [Discounted Bellman maps and certificates](https://ocw.mit.edu/courses/6-231-dynamic-programming-and-stochastic-control-fall-2015/dae6c8dca97f89b45bd0d7877a5433c9_MIT6_231F15_Notes.pdf). The model-transfer bounds are derived here on the same full feasible-action domain. Probability-row L1 error, total variation, value scale and a sampled fit are kept distinct.

15

Robust recursion depends on rectangular uncertainty

Fix a finite horizon and fully observed finite states/actions. At each (t,x,u), let a nonempty compact set U_t(x,u) specify admissible nature choices of a finite running cost c and a probability row p; the known-cost case fixes c. Nature observes the chosen action and may choose any member of this set after EVERY history, independently of its choices at other histories and times. This product-of-local-choices property is the rectangular uncertainty premise. Define V_T=g and V_t(x)=min_u max_((c,p) in U_t(x,u)){c+sum_y p(y)V_(t+1)(y)}.

Backward induction gives the upper guarantee. The minimizing selector chooses an action attaining the finite outer minimum. Against any admitted nature response, its current conditional cost plus the optimally bounded continuation is at most the inner maximum. The induction selectors for each successor state therefore ensure cost at most V_t. Compactness and continuity of the displayed linear expression give an attained inner maximum; finite horizon/state choices give a complete contingent minimizing strategy.

For the lower guarantee, after any chosen action nature uses a maximizing local pair and, in each observed successor, the induction maximizing continuation against the actual future control decisions. Rectangularity makes these history-specific continuation choices jointly admissible. Thus no nonanticipating controller can achieve a lower worst-case cost. If the controller randomizes and nature observes the realized action, its conditional expected bracket is an average of actionwise worst costs, no smaller than their minimum. This also explains the specified min-then-max order; hidden randomization or a different order is a different game.

Nature maximizes over the interval for the selected actionHigher next-state value at state 1; The adverse endpoint changes with the sign of V₁−V₀, which is 3. The outer policy chooses the smaller worst action value.Nature maximizes over the interval for the selected action-0.45503.705-0.091.09Action 0 over its own intervalAction 1 over its own intervalworst 0worst 1Worst point per selected actionProbability of next state 1 · full expected action cost
The adverse endpoint changes with the sign of V₁−V₀, which is 3. The outer policy chooses the smaller worst action value.

The action-specific objective is c_a+V₀+p(V₁−V₀). A linear function of p reaches an endpoint unless the slope is zero, in which case the complete interval ties. The state/action-dependent intervals are independent choices for nature in the declared robust recursion. A coupled uncertainty set can invalidate such a decomposition in multi-stage recursion.

Exact robust Bellman comparison
QuantityExact result
Next values V₀,V₁(1, 4)
Probability intervals[1/4, 3/4] / [0, 1/4]
Signed slope V₁−V₀3
Adverse maximizing probability by action(3/4, 1/4)
Exact worst expected costs by action(13/4, 11/4)
Minimizing actions1
Robust value11/4
Exact inputs and supporting calculations
Declared inputs
ParameterValue
V[1,4]
cost[0,1]
bands[["1/4","3/4"],[0,"1/4"]]

A single unknown parameter theta shared across time generally couples nature choices. For example, two costs theta and 1-theta with one fixed theta in {0,1} always sum to 1, whereas independent stagewise maximization gives 2. A rectangular recursion solves the stronger adversary problem, not that fixed-parameter model. To preserve the latter one must retain its compatible uncertainty/information state or other declared global restriction; no elapsed-time or worst-stage heuristic justifies replacing the coupled set by its rectangular enlargement. Related reading: [Sequential minimax and rectangular uncertainty](https://ocw.mit.edu/courses/6-231-dynamic-programming-and-stochastic-control-fall-2015/dae6c8dca97f89b45bd0d7877a5433c9_MIT6_231F15_Notes.pdf). The selected minimax recurrence describes a stagewise adversary after each control choice. A coupled parameter is not interchangeable with independently chosen stage uncertainties.

16

Finite discrete linear-quadratic control

For x_(t+1)=A_t x_t+B_t u_t, use finite horizon with terminal x_T^T P_T x_T, P_T>=0, and stage x_t^T Q_t x_t+u_t^T R_t u_t, where Q_t>=0 and R_t>0 are symmetric. All controls are unrestricted real vectors of the declared dimension. Suppose the next value is x^T P_(t+1)x with P_(t+1)>=0. Expanding one stage and its next value gives x^T(Q+A^T P A)x+2u^T B^T P A x+u^T(R+B^T P B)u, where P denotes that next matrix.

Set S=R+B^T P B. Its quadratic form is at least u^T R u, so S is positive definite and invertible. Let K=S^(-1)B^T P A and P_t=Q+A^T P A-A^T P B S^(-1)B^T P A. Direct expansion completes the expression to x^T P_t x+(u+Kx)^T S(u+Kx). The latter square is nonnegative and vanishes exactly at u=-Kx. Thus the minimum is attained uniquely at this control and has the displayed quadratic value.

The minimizing value is nonnegative because all original stage and terminal penalties are nonnegative; hence P_t is symmetric positive semidefinite. Backward induction therefore maintains the very premise needed to make every S positive definite. It constructs all Riccati matrices, time-dependent gains and an attainable complete linear feedback policy. Summing the one-stage square identities telescopes the successive state quadratic terms and proves the full objective identity, not just a necessary stationarity equation.

Backward Riccati values certify an optimal forward trajectoryControl reduces the prospective state penalty; Each state is at a discrete time. Controls exist only at stages 0 and 1. Their directly summed cost with the terminal term is 32/5.Backward Riccati values certify an optimal forward trajectory-1.36800.168-0.182.18−6/5−2/5Exact optimal inputsStage t · control before terminal time-0.2802.28-0.182.18State path (lines guide between samples)24/52/5Exact statesStage t · discrete state x_t
Each state is at a discrete time. Controls exist only at stages 0 and 1. Their directly summed cost with the terminal term is 32/5.

Write the next value as P_(t+1)(a x+b u)² and complete the square in u. The positive denominator r+b²P_(t+1) selects u=−K_t x and leaves a quadratic value coefficient P_t. Recompute every state and cost directly to verify that the advertised Bellman value is attained.

Exact finite Riccati and trajectory
QuantityExact result
P₂, P₁, P₀(1, 3/2, 8/5)
Control denominators r+b²P_(t+1)(5/2, 2)
Gains K₀, K₁(3/5, 1/2)
State path x₀, x₁, x₂(2, 4/5, 2/5)
Applied controls u₀, u₁(−6/5, −2/5)
Stage costs(136/25, 4/5)
Terminal cost4/25
Total objective and certified value32/5 = 32/5
Exact inputs and supporting calculations
Declared inputs
ParameterValue
a1
b1
q1
r1
qf1
x02

State and control coordinates may carry different physical units: Q, R, P and B must be transformed with their corresponding quadratic and dynamical maps, rather than added as dimensionless scalar labels. A finite-horizon gain depends on remaining time. A constrained control set, an indefinite penalty, an algebraic infinite-horizon equation or a nonlinear physical model needs its own premises; none is solved merely by writing this positive-definite finite quadratic recursion. Related reading: [Discrete Riccati recursions and reachability](https://sites.engineering.ucsb.edu/~jbraw/mpc/MPC-book-2nd-edition-6th-printing.pdf). The source square completion uses half costs and a negative gain. The lesson consistently uses no half and u=-Kx, with a complete backward Riccati proof.

17

Quadratic value order and constraint limits

For the finite positive-penalty LQR problem, every feasible cost is nonnegative, so its attained quadratic minimum x^T P_t x is nonnegative for every x and P_t>=0. If terminal matrices satisfy S2>=S1 in positive-semidefinite order, the cost under S2 for every SAME control trajectory is at least its cost under S1. Taking the minima preserves that inequality for every initial state, hence their value matrices obey P_t^(2)>=P_t^(1). This is a variational order argument; it does not require an unproved order property of matrix inversion.

Restricting the admissible controls to a subset cannot lower a minimization value. At a single backward stage with a quadratic next value, the completed square is constant+(u+Kx)^T S(u+Kx), S>0. The constrained optimizer is the S-metric nearest point to -Kx in the actual control set. A nonempty closed set admits a minimizer by coercivity of this quadratic; convexity additionally gives uniqueness. If later constrained values are no longer quadratic, the unconstrained Riccati recursion itself need not continue to apply.

For a Cartesian box and diagonal positive S, the square separates into positive scalar weights times coordinate squares, so coordinatewise clipping of -Kx is correct. With off-diagonal entries it need not be. For the box [-1,1]^2, S=[[2,1],[1,2]] and target a=(2,0), Euclidean clipping gives (1,0) with square cost 2, while (1,1/2) is feasible with cost 3/2. At the latter point the gradient is (-3,0), whose inner product with any feasible displacement v-(1,1/2) is -3(v1-1)>=0. Positive definiteness therefore certifies that unique metric projection; the cross term is precisely what independent clipping ignored.

Neither PSD value matrices nor finite-horizon optimality alone prove asymptotic stability of repeatedly applied first controls. For one-step x_next=2x+u, positive current stage x^2+u^2 and zero terminal cost, the exact minimizing control is u=0, giving the unstable factor 2. A terminal constraint or decrease design can repair a receding-horizon formulation under its separate theorem, but it is not an automatic conclusion of this finite-horizon order or quadratic minimization proof. Related reading: [Discrete Riccati recursions and reachability](https://sites.engineering.ucsb.edu/~jbraw/mpc/MPC-book-2nd-edition-6th-printing.pdf); [Terminal design and receding-horizon stability](https://sites.engineering.ucsb.edu/~jbraw/mpc/MPC-book-2nd-edition-6th-printing.pdf). The one-stage metric projection requires a quadratic next value. Later constrained values need not remain quadratic, and a finite optimal gain does not automatically stabilize repeated control.

18

An infinite-horizon discrete Riccati certificate

Consider x_next=Ax+Bu and cost sum_(k>=0)(x_k^T Qx_k+u_k^T Ru_k), with symmetric Q>0, R>0. Suppose P>=0 solves P=Q+A^T PA-A^T PB(R+B^T PB)^(-1)B^T PA and set S=R+B^T PB>0, K=S^(-1)B^T PA. Assume F=A-BK is Schur stable. These are premises of a verification result, not an assertion that every algebraic root or every choice of system data provides such a solution.

The same expansion as finite LQR gives x^T Qx+u^T Ru+x_next^T P x_next-x^T Px=(u+Kx)^T S(u+Kx). Summing for k=0,...,N-1 yields J_N=x0^T Px0-x_N^T Px_N+sum_(k<N)(u_k+Kx_k)^T S(u_k+Kx_k). For u_k=-Kx_k the squares vanish, and Schur stability gives x_N=F^N x0 tending to zero. Thus this feedback has finite cost exactly x0^T Px0.

For any competing control with finite total cost, Q>=qI and R>=rI for positive q, r imply sum_k||x_k||^2<infinity and sum_k||u_k||^2<infinity. In particular ||x_N|| tends to zero, so x_N^T Px_N tends to zero. Taking the limit in the summed identity gives its cost x0^T Px0 plus a sum of nonnegative squares, at least the feedback value. A competitor with infinite nonnegative cost cannot improve the attained finite value. This proves unrestricted infinite-horizon optimality under the actual transversality argument.

If a competitor attains the same finite cost, every positive-definite square is zero, so u_k=-Kx_k at each step. The policy is thus unique along each resulting trajectory, even if an implementation can be represented in several ways away from it. Positive SEMIdefinite Q alone would not give the vanishing state term: an unpenalized unstable state can have zero cost while a different stabilizing Riccati root imposes positive input cost. That missing detectability/transversality issue cannot be repaired by choosing a root solely because its feedback is stable. Related reading: [Discrete Riccati recursions and reachability](https://sites.engineering.ucsb.edu/~jbraw/mpc/MPC-book-2nd-edition-6th-printing.pdf). The source distinguishes infinite LQ stability from finite optimality. The lesson proves a conditional algebraic-root certificate, including its terminal limit, rather than assuming every stabilizing root is optimal.

19

Discrete stability through a Lyapunov equation

Let F be a real n-by-n matrix. At n=0 the state space is a singleton and its unique zero trajectory is trivially stable; no eigenvalue-extremum rate formula below is evaluated. For the remaining proof assume n>=1 and suppose F is Schur stable, meaning all its complex eigenvalues have magnitude strictly less than 1. Finite-dimensional Jordan form gives, for any fixed a between spectral radius(F) and 1, a constant M with ||F^k||<=M a^k: each Jordan block contributes a finite polynomial in k times its eigenvalue power, which is absorbed into a^k; nilpotent blocks end after finitely many powers. For any real symmetric H>0, the series W=sum_(k>=0)(F^k)^T H F^k therefore converges in operator norm.

Its k=0 term is H and all terms are positive semidefinite, so W>=H>0. Shifting the convergent series gives F^T WF=W-H and hence the stated discrete Lyapunov equation. Conversely, if W>0, H>0 satisfy it, take a nonzero complex eigenvector Fv=lambda v. Then (|lambda|^2-1)v*Wv=-v*Hv<0, and v*Wv>0. It follows that |lambda|<1 for every eigenvalue. Existence for every positive definite H, or indeed for one such pair, thus certifies Schur stability.

For x_next=Fx, the energy E=x^T Wx obeys E_next-E=-x^T Hx<=-(lambda_min(H)/lambda_max(W))*E. Because F^T WF=W-H>=0, the ratio is in (0,1]. Write q=1-lambda_min(H)/lambda_max(W), so 0<=q<1. Induction gives E_k<=q^k E_0 and ||x_k||<=sqrt(lambda_max(W)/lambda_min(W))*q^(k/2)||x0||. If q=0, F^T WF=0 and F=0, so the state is zero after one step; no ambiguous division or positive-rate assumption is needed.

The Lyapunov equation and state dynamics have separate checksBoth eigenvalues have magnitude less than one; The plotted scalar coordinates start at +1 independently. A positive definite certificate exists.The Lyapunov equation and state dynamics have separate checks-0.5201.187-0.455.45First eigendirection coordinateSecond eigendirection coordinatestartBoth start at +1Iteration k · signed eigenstate coordinate
The plotted scalar coordinates start at +1 independently. A positive definite certificate exists.

When each diagonal magnitude is below one, the solved finite positive diagonals give V(x)=xᵀPx and V(Ax)−V(x)=−||x||². A unit eigenvalue contradicts a strictly negative change on its eigenvector. A formal equation with an indefinite P can still have that algebraic change, but P is not a positive energy function and proves no stability.

Exact diagonal Lyapunov classification
QuantityExact result
A diagonal(1/2, −1/3)
Off-diagonal multiplier ab−1−7/6
Diagonal equations(a²−1)P₁₁=−1 and (b²−1)P₂₂=−1
Formal P diagonal entries(4/3, 9/8)
Formal P₁₂0
Positive definite solutionYes
Asymptotic stabilityBoth modes decay, one with alternating sign.
Exact inputs and supporting calculations
Declared inputs
ParameterValue
a1/2
b-1/3

Uniqueness of W follows when F is Schur: a difference D satisfying D=F^T DF obeys D=(F^k)^T D F^k and tends to zero in norm. Outside the stable case the linear equation may be inconsistent, indefinite or nonunique, so merely solving its entries is not a stability proof. H and W are quadratic forms in the declared state units; coordinate rescaling transforms both forms and F. The theorem does not imply a nonlinear or noisy controller shares the same exact energy identity. Related reading: [Energy bounds, invariant domains and stability](https://sites.engineering.ucsb.edu/~jbraw/mpc/MPC-book-2nd-edition-6th-printing.pdf). The selected appendix provides stability and energy definitions. The matrix-series construction, positive-definite converse and quantitative rate are fully proved here.

20

Controllability and minimum input energy

Unrolling x_(k+1)=Ax_k+Bu_k for N steps gives x_N=A^N x0+C_N U, where U stacks u0,...,u_(N-1) and C_N=[A^(N-1)B,A^(N-2)B,...,B]. Thus a target is exactly reachable precisely when z=x_target-A^N x0 belongs to the range of C_N. This equivalence is direct substitution in both directions, not a rank claim that ignores the initial state or the actual horizon.

If C_N has full row rank, W_N=C_N C_N^T is positive definite because v^T W_N v=||C_N^T v||^2 vanishes only when v=0. Define U_star=C_N^T W_N^(-1)z. It reaches the target since C_N U_star=z. Every other feasible U has the form U_star+w with C_N w=0, and U_star^T w=z^T W_N^(-1)C_N w=0. Hence ||U||^2=||U_star||^2+||w||^2, proving unique least input-square energy with minimum z^T W_N^(-1)z.

Multiplying out the stacked matrix gives W_N=sum_(j=0)^(N-1) A^j BB^T(A^j)^T. Its invertibility is the finite-horizon full-range condition, not a property of every nonzero B. For an n-dimensional state, Cayley-Hamilton expresses every power A^j with j>=n as a linear combination of I,...,A^(n-1). Therefore the span of [B,AB,...,A^(n-1)B] already contains all later reachability directions; full rank of that n-step matrix is equivalent to full-state reachability at every horizon N>=n.

If C_N is deficient, some individual targets may still lie in its range, but the ordinary inverse W_N^(-1) does not exist. The exact range condition must be tested and a correctly defined least-norm/pseudoinverse problem used for a feasible target, rather than inserting an arbitrary inverse. Input amplitude, state constraints and different physical energy weights change the optimization. The unconstrained rank result certifies linear model reachability, not practical reachability with unlimited energy silently allowed. Related reading: [Discrete Riccati recursions and reachability](https://sites.engineering.ucsb.edu/~jbraw/mpc/MPC-book-2nd-edition-6th-printing.pdf). The source stacks controls in reverse chronological order. The lesson fixes its own ordering and derives the exact range, Gramian and minimum-energy input; an unreachable target remains unreachable.

21

Observation and feedback have separate requirements

For noiseless linear dynamics x_next=Ax+Bu and observations y_k=Cx_k, subtract the known input contribution from each observation. The resulting stacked vector for k=0,...,N-1 is O_N x0 with O_N=[C;CA;...;CA^(N-1)]. Thus two initial states have identical observations exactly when their difference lies in ker O_N. Full column rank gives a unique initial state from consistent observations; deficient rank leaves a nonzero indistinguishable difference. This statement includes known applied inputs and does not assume measurements identify an unknown input as well.

Given a controller gain K and observer gain L, use u_k=-K hat_x_k and hat_x_(k+1)=A hat_x_k+B u_k+L(y_k-C hat_x_k). Define e_k=x_k-hat_x_k. Subtracting the equations gives e_(k+1)=(A-LC)e_k. Substituting the feedback into the true state equation gives x_(k+1)=(A-BK)x_k+BK e_k. Both equations use the same actually applied u and current measurement; changing an update index changes the interconnection.

In coordinates (x,e), the full matrix is [[A-BK,BK],[0,A-LC]]. Its characteristic determinant factors into those of its two diagonal blocks. If BOTH A-BK and A-LC are Schur, every eigenvalue of the full matrix has magnitude below 1, so the finite-dimensional matrix-power or Lyapunov result proves exponential convergence of both state and estimation error. This is a conditional separation certificate for the given gains, not a proof that arbitrary gains or arbitrary measured outputs are sufficient.

Observability explains when noiseless data can distinguish states; stabilizability/detectability and gain construction require their own actual hypotheses. For instance an unobservable unstable mode cannot be made to disappear by calling an estimator an observer. The present proof makes no noise covariance, Kalman optimality, nonlinear separation or parameter-identification claim. Noisy observations and model errors require additional quantitative input/error estimates rather than the exact homogeneous block equation. Related reading: [What finite observations identify](https://sites.engineering.ucsb.edu/~jbraw/mpc/MPC-book-2nd-edition-6th-printing.pdf). The selected observability rank criterion and the separately derived triangular feedback dynamics have different hypotheses. Neither an unobservable mode nor a missing stable gain is removed by notation.

22

Continuous control starts with an admitted flow

Take a compact control set U and controls piecewise continuous with finitely many jumps on a finite interval. Assume f(t,x,u) is continuous and uniformly Lipschitz in x on the admitted state domain, with growth ||f(t,x,u)||<=a+b||x|| uniformly for 0<=t<=T, u in U. On an unconstrained full space these premises supply an ordinary controlled ODE; on a restricted domain also require that its admitted trajectories remain there. A state constraint is not a consequence of a Lipschitz bound alone.

On each continuous control segment the standard local ODE existence/uniqueness theorem from the differential-equations preparation applies, with continuous right-hand side and its uniform state Lipschitz bound. Match the endpoint states across each of the finitely many jumps. The resulting continuous trajectory satisfies x(t)=x(s)+integral_s^t f(r,x(r),u(r))dr, is piecewise C1, and solves the equation almost everywhere. Gronwall bounds ||x(t)|| by (||x(s)||+a(t-s))*exp(b(t-s)), so no finite-horizon blowup obstructs continuation on the admitted full space.

For the SAME control, subtraction of two integral equations gives ||x(t)-y(t)||<=||x(s)-y(s)||+L integral_s^t||x(r)-y(r)||dr. Gronwall yields the quantitative dependence <=exp(L(t-s))||x(s)-y(s)||. If two controls differ only on a set of length epsilon and both flows stay in a compact tube with ||f||<=M, their vector-field mismatch there is at most 2M; the same estimate gives a uniform trajectory difference <=2M*exp(LT)*epsilon. No differentiability in u is required for that needle-size bound.

A prefix control on [s,r] and a tail control on [r,T], each from its actual reached state, concatenate to a control of the same piecewise-continuous class. Uniqueness makes the concatenated flow equal the matched two pieces. This semigroup/concatenation fact underlies deterministic dynamic programming. It establishes neither a minimizing control nor preservation of undeclared state constraints, and it does not turn a finite-step simulation into an exact continuous trajectory. Related reading: [Admissible controlled differential equations](https://liberzon.csl.illinois.edu/teaching/cvoc.pdf). The source separates local well-posedness from global existence. The lesson adds its declared finite-horizon growth bounds and uses the previously established ODE theory.

23

The continuous dynamic-programming principle

For an admitted deterministic flow define J(t,x;u)=integral_t^T l(s,x_u(s),u(s))ds+phi(x_u(T)) and V(t,x)=inf_u J(t,x;u). Assume costs are finite for each admitted control, the relevant values are finite, the state/time specifies the actual continuation class, and restriction plus concatenation preserve admissibility. Fix an intermediate time r in [t,T]. Write D for inf over admitted prefixes of [integral_t^r l+V(r,x_u(r))]. Tail controls are permitted from their actual deterministic endpoint.

For every complete control, its tail cost is at least V(r,x_u(r)). Hence its full cost is at least its prefix expression and thus at least D. Taking the infimum over complete controls proves V(t,x)>=D. No attaining tail or optimal trajectory was assumed in this lower bound. The flow concatenation identity ensures the prefix cost and tail state are those of the same physical model.

Conversely, choose a prefix whose displayed expression is within epsilon/2 of D, and at its one reached endpoint choose a tail with cost within epsilon/2 of that finite tail value. Their admissible concatenation has full cost at most D+epsilon, so V(t,x)<=D+epsilon. If D were minus infinity, arbitrarily negative such concatenations would contradict the assumed finite V; the same argument can be applied to finite comparison levels. Let epsilon decrease to zero to obtain V=D. Only one endpoint is selected after a fixed prefix, so no unproved continuum measurable-selection theorem is being used.

At r=t the identity is immediate, and at r=T it uses the actual terminal value V(T,x)=phi(x). The infimum form remains correct even if an optimal control is absent. For stochastic continuous states, a state constraint with history-dependent feasibility, or a fixed unknown parameter learned from earlier observations, a new information/concatenation argument may be necessary. They cannot be incorporated simply by replacing this deterministic endpoint with an informal expectation. Related reading: [Continuous dynamic programming and smooth verification](https://liberzon.csl.illinois.edu/teaching/cvoc.pdf). The source leaves one dynamic-programming inequality as an exercise. Both epsilon-concatenation inequalities are supplied here without assuming a global minimizer exists.

24

Smooth Hamilton-Jacobi-Bellman verification

Let W(t,x) be C1 on a neighborhood containing every admitted flow and let W(T,x)=phi(x). For cost MINIMIZATION define H(t,x,u)=l(t,x,u)+grad_x W(t,x)^T f(t,x,u). Assume W_t+min_(u in U)H=0 and that all displayed quantities and trajectory integrals are well defined. For a finite-horizon deterministic flow with piecewise-continuous control, the chain rule holds along its piecewise-C1 state almost everywhere.

For any admitted u, W_t+grad W^T f+l>=W_t+min H=0. Integrate this inequality along its actual trajectory. The chain-rule integral is W(T,x(T))-W(t,x), so J(t,x;u)-W(t,x)>=0 after using the terminal equality. Thus W is a universal lower bound on achievable cost. This implication uses the correct minimized Hamiltonian sign; a reward-maximization convention would require a corresponding change, not a relabeling of this inequality.

If a minimizing feedback kappa(t,x) attains H and produces a well-posed feasible admitted trajectory, every preceding inequality is equality along that trajectory. Its cost is W(t,x), and the universal lower bound proves J_kappa=V=W. Existence of this implementable trajectory is an explicit premise. A formal pointwise argmin or PDE expression does not by itself make a discontinuous feedback well posed, satisfy a hard state constraint, or meet terminal data.

W has total cost units, W_t and l have cost-per-time units, and grad W^T f has the same flow units after actual state coordinates are fixed. This verification theorem is conditional sufficiency; it does not assert that the true value is differentiable. State-boundary conditions and nonsmooth values require separate analysis. A constant added to W can leave a derivative PDE unchanged while violating its actual terminal value, so the terminal condition cannot be omitted. Related reading: [Continuous dynamic programming and smooth verification](https://liberzon.csl.illinois.edu/teaching/cvoc.pdf). The source gives the full finite smooth verification argument. The actual terminal cost and an admitted well-posed minimizing flow are separate requirements.

25

A full HJB residual gives an error bound

Let W be an admitted C1 candidate and r(t,x)=W_t+min_u(l+grad W^T f). Suppose |r(t,x)|<=epsilon(t) uniformly on every feasible state in the common domain and |W(T,x)-phi(x)|<=delta_T, with epsilon nonnegative integrable. Put E=delta_T+integral_t^T epsilon(s)ds. For any admitted control, its chain-rule integrand W_t+grad W^T f+l is at least r>=-epsilon, so J(t,x;u)>=W(t,x)-E. Taking the infimum gives V>=W-E.

To obtain the matching value upper bound, the minimizing Hamiltonian must be attainable in the admitted-flow sense, or have feasible controls with arbitrarily small integrated Hamiltonian gap. In the unconstrained compact-control setting of P21 with continuous data, bounded reachable tube and continuous W derivatives, this latter fact follows directly: divide time into short intervals, minimize H at each reached interval start, and hold that control. Uniform continuity of H and the bounded flow imply a gap at most 2*omega(h+Mh) along each interval, tending to zero uniformly as mesh h tends to zero. Each finite concatenation is an admitted piecewise-constant control, so its integrated gap tends to zero.

For these controls, the same chain-rule identity gives J<=W+E+arbitrarily small gap, hence V<=W+E and |V-W|<=E. If a particular feasible implementation kappa instead has nonnegative Hamiltonian gap at most zeta(t), its cost is at most W+E+Z with Z=integral_t^T zeta. Combining with the universal lower bound yields 0<=J_kappa-V<=2E+Z. Exact minimizing feedback is the special case Z=0; the policy need not be falsely declared optimal when a nonzero residual or terminal mismatch remains.

The uniform bounds concern the whole admitted state/control comparison domain. Under hard constraints, the short-held controls used above may be infeasible, so a feasible exact or arbitrarily accurate Hamiltonian-selection premise must be checked separately before claiming the two-sided value bound. A residual measured only on a path, a truncated state sample, or an approximate derivative without a known error bound does not establish E. The certificate concerns this mathematical model and implementable policy, not measurement accuracy or a physical safety conclusion. Related reading: [Continuous dynamic programming and smooth verification](https://liberzon.csl.illinois.edu/teaching/cvoc.pdf). The quantitative residual theorem is derived here. Its symmetric value band needs feasible arbitrarily accurate Hamiltonian selection; a single gap-bounded policy still gives its separately stated upper-cost and loss bounds.

26

A smooth value satisfies HJB under local uniformity

Work at an interior time (t,x) in the admitted deterministic compact-control setting, without an unaccounted state boundary. Assume the actual finite value V is C1 nearby; f, l are continuous, and short controlled trajectories remain in a compact tube with a common velocity bound M. The prefix/tail dynamic-programming identity gives 0=inf_u[integral_t^(t+h) l+V(t+h,x_u(t+h))-V(t,x)] for sufficiently small positive h. It does not require an optimal prefix.

Apply the chain rule inside the bracket to write it as integral_t^(t+h) q(s,x_u(s),u(s))ds with q=V_t+grad V^T f+l. Uniform continuity of q on the compact time/state/control tube and ||x_u(s)-x||<=Mh give |q(s,x_u(s),v)-q(t,x,v)|<=omega(h+Mh) for EVERY v in U, where omega tends to zero. Thus every prefix integral is at least h*min_v q(t,x,v)-h*omega(h+Mh). This is uniform over the controls, rather than a Taylor statement for only one preselected trajectory.

Continuity and compact U provide a v0 minimizing q(t,x,.). Hold v0 constant for the short prefix; its integral is at most h*min_v q(t,x,v)+h*omega(h+Mh). Combining with the exact infimum equality shows |min_v q(t,x,v)|<=omega(h+Mh). Let h tend to zero to obtain V_t(t,x)+min_v[l(t,x,v)+grad V(t,x)^T f(t,x,v)]=0. The actual terminal value remains V(T,x)=phi(x).

The proof needs smooth VALUE, not merely smooth dynamics, and a uniform admitted short-time expansion. A boundary can remove some constant prefixes, invalidating a minimum over all of U; it needs its own feasible Hamiltonian/boundary analysis. If V is nonsmooth the chain-rule argument cannot be asserted at its kink. The next explicit example demonstrates that failure and verifies its own test-function statement without claiming an unproved general viscosity comparison or regularity theorem. Related reading: [Admissible controlled differential equations](https://liberzon.csl.illinois.edu/teaching/cvoc.pdf); [Continuous dynamic programming and smooth verification](https://liberzon.csl.illinois.edu/teaching/cvoc.pdf). The uniform short-time expansion is explicit here before taking an infimum. Pointwise Taylor remainders or a nonsmooth value do not establish the stated classical HJB identity.

27

An exact nonsmooth value and its switch boundary

Let x_dot=u, |u|<=1, terminal time T and cost |x(T)| with no running cost. From (t,x), put h=T-t>=0. Every endpoint lies in [x-h,x+h] because |integral u|<=h, and every point of that interval is reached by a constant admitted control when h>0. Minimizing absolute endpoint value gives V(t,x)=max(|x|-h,0). If |x|>h, use u=-sign(x); if |x|<=h and h>0, use u=-x/h to reach zero. At h=0 the formula is exactly the terminal datum |x|.

For t<T, in the open region |x|>T-t one has V_t=1 and V_x=sign(x); in the interior zero region both derivatives vanish. Therefore V_t-|V_x|=0 holds classically off the switch curves, which is the minimized HJB equation because min_(|u|<=1) p*u=-|p|. At |x|=T-t>0 the two affine branches have distinct gradients, so no classical C1 derivative exists there. This exact value is continuous and piecewise affine despite smooth controlled dynamics.

For the stated direct viscosity check use F(a,p)=a-|p|, with a C1 test touching from above requiring F<=0 and one touching from below requiring F>=0. At a switch with sign s in {-1,1}, local increments of V have the form max(0,g dot d), g=(1,s), in time/state coordinates. An upper differentiable test would have to dominate both one-sided derivatives: for g dot d>0 it requires Dphi dot d>=g dot d, while the opposite direction requires Dphi dot d<=0. These contradict each other, so no C1 upper test exists at this genuine convex corner.

A reachable interval gives the exact terminal-cost valueThe target is outside the reachable interval; At elapsed time h=2, the reachable interval is [1, 5] and the optimal terminal state is 1. Outside. Wₓ=1 and Wₕ=−v.A reachable interval gives the exact terminal-cost value-0.705.7-0.182.18Lower reachable boundaryUpper reachable boundaryOptimal trajectory coincides with lower boundarylower = optimal 1upper 5Terminal interval endpoints and optimal terminal stateElapsed time · reachable bounds and one optimal trajectory-0.23801.938-3.6034.303Value W(h,x)kinkkinkselectedKinks and selected initial stateInitial state x · exact value at the selected remaining h
At elapsed time h=2, the reachable interval is [1, 5] and the optimal terminal state is 1. Outside. Wₓ=1 and Wₕ=−v.

The integral of bounded input over time h ranges from −v h to v h, and any intermediate displacement is realized by a constant admissible input. Minimizing |x(T)| clips the terminal selection to that interval. The exact remaining-time value verifies the smooth HJB inside and outside the kink set, while reachability gives correctness at kinks without pretending a classical derivative exists.

Exact value and HJB scope
QuantityExact result
Remaining time h / input limit v2 / 1
Reachable terminal interval[1, 5]
One optimal terminal state1
Exact value1
One optimal constant control−1
Value formulaW(h,x)=max(|x|−v h,0)
Kink locationsx=−2 and x=2
Remaining-time HJBW_h+v|W_x|=0 away from the switching kinks
Selected point classificationOutside. Wₓ=1 and Wₕ=−v.
Exact inputs and supporting calculations
Declared inputs
ParameterValue
x3
v1
h2

For a lower test, the two directional inequalities give min(0,g dot d)<=Dphi dot d<=max(0,g dot d) for every d. Directions orthogonal to g force Dphi to be parallel to g, and a direction with g dot d>0 then forces Dphi=lambda*g with 0<=lambda<=1. Thus F(Dphi)=lambda-|lambda*s|=0, satisfying the lower-test inequality. Smooth regions satisfy both tests classically; terminal time is supplied as boundary data, not a two-sided interior test. This checks this particular value completely without asserting general nonsmooth-solution uniqueness or that a nondifferentiable value has an ordinary gradient. Related reading: [Nonsmooth values and one-sided test functions](https://liberzon.csl.illinois.edu/teaching/cvoc.pdf). The source warns that a viscosity operator has an important sign convention. This particular wedge is checked directly for the declared operator; all admitted switching test gradients give zero for both signs, without asserting a general sign-invariance theorem.

28

A normal costate condition from needle changes

Fix a globally optimal admitted control u* on a fixed finite horizon, with free terminal state and no hard state constraints. Let f, l be continuously differentiable in x with derivatives uniformly continuous on a common compact trajectory/control tube, continuous in time/control, and phi be differentiable. Define the normal adjoint by p_dot=-l_x(t,x*,u*)-f_x(t,x*,u*)^T p and p(T)=grad phi(x*(T)); the linear backward ODE is well posed piecewise and continuous through control jumps. At a continuity time tau<T of u*, replace u* by any fixed v in U only on [tau,tau+epsilon]. This needle control is admitted by the stated control/flow class.

The earlier flow estimate gives x_epsilon-x*=O(epsilon) uniformly. On the needle interval, continuity at tau yields x_epsilon(tau+epsilon)-x*(tau+epsilon)=epsilon*Delta f+o(epsilon), where Delta f=f(tau,x*(tau),v)-f(tau,x*(tau),u*(tau)). Thereafter subtract the two integral ODEs and use the uniform C1 expansion f(s,x_epsilon,u*)-f(s,x*,u*)=A(s)(x_epsilon-x*)+o(epsilon), A=f_x along the optimum. Gronwall for the remainder shows the scaled difference converges to z solving z_dot=A(s)z with right initial value z(tau)=Delta f. This proves the first variation rather than postulating a control derivative.

Expand the cost on the needle and on its tail. The needle contributes epsilon*Delta l+o(epsilon), and the tail plus terminal first variation contributes epsilon[integral_tau^T l_x^T z+grad phi(x*(T))^T z(T)]+o(epsilon). The adjoint identity (p^T z)_dot=-l_x^T z turns the bracket into p(tau)^T Delta f. Consequently (J(u_epsilon)-J(u*))/epsilon tends to Delta l+p(tau)^T Delta f=H(tau,x*,v,p)-H(tau,x*,u*(tau),p), for H=l+p^T f.

Optimality makes this limit nonnegative for every v in U, giving global pointwise Hamiltonian minimization at every such continuity time, hence almost everywhere for the declared finite piecewise-continuous controls. The terminal-gradient condition is part of this free-terminal, fixed-horizon NORMAL result. Endpoint constraints, state constraints, abnormal multipliers, free terminal time or a merely weak control-neighborhood notion need their own variation analysis. This necessary condition alone is not a global minimum certificate, and no differentiability in u or convexity of U was used to justify the needle comparison. Related reading: [Admissible controlled differential equations](https://liberzon.csl.illinois.edu/teaching/cvoc.pdf); [Needle variations and costate conventions](https://liberzon.csl.illinois.edu/teaching/cvoc.pdf). The source states a broader geometric maximum principle. The complete proof here is restricted to normal fixed time, free terminal state and no running state constraints; Hamiltonian and costate signs are transformed together.

29

Convexity can make a costate certificate sufficient

Consider a feasible fixed-horizon state/control pair (x*,u*) and adjoint p satisfying p_dot=-H_x(t,x*,u*,p), p(T)=grad phi(x*(T)), where H=l+p^T f. Assume phi is convex differentiable and H(t,.,.,p(t)) is jointly convex on a convex product domain of states and controls containing all comparisons. Assume H is continuously differentiable in state, with H_x continuous in state and control there; no derivative in control is required. Let the feasible control set U be convex and u*(t) minimize H(t,x*(t),.,p(t)) over U. All compared controls have the same initial state and admitted flows.

Fix a time and abbreviate H(t,.,.,p(t)) to H. For any compared (x,u), put delta_x=x-x*, u_lambda=u*+lambda*(u-u*) and x_lambda=x*+lambda*delta_x, with 0<lambda<1. Convexity gives H(x_lambda,u_lambda)-H(x*,u*)<=lambda*[H(x,u)-H(x*,u*)], while minimization at x* gives H(x*,u_lambda)>=H(x*,u*). Therefore H(x,u)-H(x*,u*)>=[H(x_lambda,u_lambda)-H(x*,u_lambda)]/lambda. The state-gradient integral formula and its continuity as lambda tends to zero make the right side tend to H_x(t,x*,u*,p)^T delta_x=-p_dot^T delta_x. This proves the joint supporting comparison without differentiating in control; the integration-by-parts argument below then applies.

For any admitted competitor, l-l*=H-H*-p^T(f-f*)>=-p_dot^T delta_x-p^T delta_x_dot, since delta_x_dot=f-f*. Convex terminal cost gives phi(x(T))-phi(x*(T))>=p(T)^T delta_x(T). Integrating the running bound and adding this terminal bound telescopes to J(u)-J(u*)>=-[p^T delta_x]_0^T+p(T)^T delta_x(T)=p(0)^T delta_x(0)=0. The equal initial state is exactly what removes the last term.

Thus this pair globally minimizes the actual finite-horizon objective. Strict uniqueness would need additional strictness/identifiability conditions and is not inferred from ordinary convexity. A nonconvex terminal cost or Hamiltonian can make the same adjoint/minimization equations only necessary; a stationary extremal can then be worse than another admitted control. These conditions concern the declared model and its domain, not an arbitrary nonlinear plant to which a costate equation has merely been fitted. Related reading: [Needle variations and costate conventions](https://liberzon.csl.illinois.edu/teaching/cvoc.pdf). The complete convex sufficiency proof is supplied here by supporting inequalities and integration by parts. A necessary costate condition with nonconvex terminal data is not sufficient.

30

Bang-bang selection and singular choices

Suppose the Hamiltonian at a fixed state/time/costate is affine in a control vector: H=h0+sum_j b_j u_j, with independent finite box constraints a_j<=u_j<=c_j. Its minimization separates coordinate by coordinate because the feasible box is a product and no cross control term remains. For b_j>0 the linear function is smallest at a_j; for b_j<0 it is smallest at c_j. If b_j=0 it has the same value at every point of that coordinate interval.

Consequently a trajectory satisfying the necessary Hamiltonian minimum uses boundary controls wherever the corresponding switching coefficient b_j(t) is nonzero. If that holds almost everywhere, its minimizing control is bang-bang almost everywhere in those coordinates. Isolated switching times may allow several point values without changing an integral flow/cost. A coefficient identically zero on an interval is a singular choice at this first-order level; it does not specify a unique control or prove the interval can be ignored.

For a scalar integrator with |u|<=1, initial 0 and terminal cost x(1)^2 with no running cost, every control with integral_0^1 u=0 has cost 0, the global nonnegative minimum. Its terminal gradient and hence constant adjoint are 0, so the Hamiltonian is identically 0 in u. Both u=0 throughout and u=-1 on the first half, +1 on the second half are optimal. Thus even an affine Hamiltonian can permit an interior optimum and a bang-bang one without a universal bang-bang requirement.

A running quadratic u^2 instead makes Hamiltonian minimization a quadratic problem, generally with an interior unconstrained minimizer before bounds are imposed; it is not covered by the affine selection formula. Control rates, coupled bounds and state constraints also change the feasible minimization. Bang-bang selection is a pointwise structural consequence under actual premises, not proof of optimal switch timing, global sufficiency or safe implementability of a physical discontinuous controller. Related reading: [Needle variations and costate conventions](https://liberzon.csl.illinois.edu/teaching/cvoc.pdf); [Continuous dynamic programming and smooth verification](https://liberzon.csl.illinois.edu/teaching/cvoc.pdf). A nonzero affine coefficient selects its corresponding box bound. A zero switching coefficient leaves a choice, and the singular example rules out a universal uniqueness or all-bang-bang conclusion.

31

Continuous finite-horizon Riccati verification

Use continuous linear dynamics x_dot=A(t)x+B(t)u on [t0,T], running cost x^T Q(t)x+u^T R(t)u and terminal x(T)^T Sx(T). Assume continuous coefficients, symmetric Q>=0, S>=0, R(t)>0 and a symmetric C1 matrix solution P of -P_dot=A^T P+PA-PBR^(-1)B^T P+Q with P(T)=S. Controls are unrestricted real vectors in the admitted finite-horizon integrability class. Put K(t)=R(t)^(-1)B(t)^T P(t).

Along any admitted trajectory, differentiation gives d(x^T Px)/dt=x^T P_dot x+2x^T P(Ax+Bu). Adding the stage cost and substituting the Riccati equation leaves x^T PBR^(-1)B^T Px+2u^T B^T Px+u^T Ru=(u+Kx)^T R(u+Kx). Every transpose and the absence of an extra factor 1/2 follow from the stated quadratic-cost convention. This is a direct identity, not only a stationary control equation.

Integrating and using P(T)=S yields J=x(t0)^T P(t0)x(t0)+integral_t0^T (u+Kx)^T R(u+Kx)dt. The square is nonnegative. The feedback u=-Kx has continuous bounded coefficients on the closed interval, so its linear state equation has a well-posed admitted solution and the square vanishes. It attains the exact value x^T P(t)x from every start; equality for another input requires the same feedback almost everywhere under positive definite R.

Since its actual cost is a sum/integral of nonnegative penalties, P(t)>=0 follows from the verified value rather than being presumed from an algebraic formula. The next argument establishes existence on the full finite interval; this conditional identity alone does not do so. A fixed terminal STATE is not the same as a terminal penalty S, and hard input/state constraints invalidate use of the unrestricted square minimizer unless its feasibility is separately checked. Infinite-horizon terminal limits require their own proof. Related reading: [Continuous Riccati verification and terminal tails](https://liberzon.csl.illinois.edu/teaching/cvoc.pdf). The source direct square completion is an exercise. This lesson proves the full identity under an admitted symmetric Riccati solution and the actual finite terminal data.

32

Why the finite Riccati flow exists

Let A, B, Q, R be continuous on a finite interval [0,T], Q(t)>=0 and R(t)>=rI>0 uniformly, with symmetric terminal S>=0. Reverse time in the Riccati terminal ODE. Its right-hand side is continuous in time and locally Lipschitz in the entries of P, because it is a quadratic matrix polynomial with bounded continuous R^(-1). The ODE existence/uniqueness theorem therefore supplies a unique local solution from S. Symmetry is preserved since the right-hand side is symmetric whenever P is symmetric.

On its maximal backward interval (a,T], take any t>a. The finite-interval verification identity of P30 applies to this already existing solution on [t,T], so P(t)>=0 and its quadratic value is at most the cost of the feasible input u=0. If ||A||<=M and ||Q||<=qmax, the uncontrolled transition obeys ||Phi(s,t)||<=exp(M(s-t)). Therefore for every x, x^T P(t)x<=exp(2MT)(||S||+T*qmax)||x||^2. This upper bound is independent of a and t, not just a bound near the initial terminal point.

Thus 0<=P(t)<=C I uniformly on the whole maximal interval, with C equal to that finite bound. Its right-hand side is now uniformly bounded, using bounded A, B, Q, R^(-1). Consequently P is uniformly Lipschitz in time there and has a finite symmetric limit as t decreases to any finite left endpoint a. If a>0, local ODE existence from that limit extends the solution backward past a and uniqueness matches the old one, contradicting maximality. The same limit argument includes t=0, proving a solution on the full closed finite horizon.

The proof establishes finite-horizon existence using positivity and an explicit feasible zero-control upper bound; it does not require stabilizability, infinite-horizon convergence or an already known optimal control. Uniform R>0 is essential to this inverse/bounded-coefficient argument. Indefinite penalties or a singular control weight can lead to a different problem and possible blowup. A bounded finite-horizon Riccati flow does not by itself identify an infinite-horizon stabilizing algebraic root. Related reading: [Continuous Riccati verification and terminal tails](https://liberzon.csl.illinois.edu/teaching/cvoc.pdf). The selected global-existence argument uses a zero-control upper cost. Symmetry, semidefiniteness and the complete continuation step are proved here, with a strictly positive control penalty.

33

Continuous infinite-horizon LQR and transversality

For x_dot=Ax+Bu and infinite cost integral_0^infinity(x^T Qx+u^T Ru)dt, assume Q>0, R>0 and a symmetric P>=0 solving A^T P+PA-PBR^(-1)B^T P+Q=0. Define K=R^(-1)B^T P and assume F=A-BK is Hurwitz. The completion identity on every finite interval is J_T=x0^T Px0-x(T)^T Px(T)+integral_0^T(u+Kx)^T R(u+Kx)dt. For the stable feedback the state decays exponentially, the integral cost is finite and the terminal term tends to zero, giving value x0^T Px0.

A competing finite-cost control has x, u in L2(0,infinity) by the positive lower eigenvalue bounds on Q, R. Its linear dynamics give x_dot=Ax+Bu in L2 as well. To prove the missing terminal limit, choose b_n tending to infinity with ||x(b_n)|| tending to zero, possible because x is continuous and square integrable. The absolutely continuous squared norm satisfies ||x(t)||^2=||x(b_n)||^2-2 integral_t^(b_n) x^T x_dot. Cauchy-Schwarz bounds the last magnitude by 2||x||_(L2(t,infinity))||x_dot||_(L2(t,infinity)).

Let b_n tend to infinity, then let t tend to infinity. Both tail norms vanish, so ||x(t)|| tends to zero and x(t)^T Px(t) tends to zero. Taking the limit in the completion identity proves J=x0^T Px0+integral_0^infinity(u+Kx)^T R(u+Kx)>=x0^T Px0. Infinite nonnegative costs cannot improve the finite achieved value. Equality forces u=-Kx almost everywhere, proving the actual unrestricted infinite-horizon LQR optimality under these hypotheses.

This is a verification theorem for a given stabilizing P, not an assertion of algebraic existence or uniqueness without system hypotheses. Positive semidefinite Q alone may leave growing unpenalized states and invalidate the terminal-limit step; detectability or an explicitly imposed admissible transversality class would need its own proof. For A=B=R=1, Q=0, both P=0 and P=2 solve the scalar equation, but stable feedback from P=2 costs 2x0^2 while admissible u=0 has zero cost and an unstable state. Stability of an algebraic root alone is therefore not the omitted optimality argument. Related reading: [Continuous Riccati verification and terminal tails](https://liberzon.csl.illinois.edu/teaching/cvoc.pdf). The source distinguishes algebraic roots, stability and optimality. The lesson proves its own finite-cost H1 terminal tail under positive state/control penalties and a Hurwitz feedback.

34

Continuous Lyapunov energy and units

Let F be a real n-by-n matrix. At n=0 the unique state trajectory is zero and trivially stable; the eigenvalue-extremum rate formulas below are not evaluated. For the remaining proof assume n>=1. If F is Hurwitz, all eigenvalues have negative real part. Jordan form bounds its matrix exponential by ||exp(Ft)||<=M exp(-a t) for some positive M, a: each finite Jordan polynomial is absorbed into a slightly slower decaying exponential. For symmetric H>0, define W=integral_0^infinity exp(Ft)^T H exp(Ft)dt. The bound makes this operator integral finite. For nonzero x its integrand at time 0 is x^T Hx>0 and is continuous, so x^T Wx>0; hence W is symmetric positive definite.

Integrating the derivative of exp(Ft)^T H exp(Ft) gives F^T W+WF=-H because the endpoint at infinity vanishes. Conversely, if such W, H>0 solve the equation and Fv=lambda v for a nonzero complex vector, then 2*Re(lambda)*v*Wv=-v*Hv<0. Thus every eigenvalue has negative real part and F is Hurwitz. If two solutions exist, their difference D obeys exp(Ft)^T D exp(Ft)=D for all t; exponential decay makes the left side tend to zero, proving uniqueness.

Along x_dot=Fx, E=x^T Wx satisfies E_dot=-x^T Hx<=-[lambda_min(H)/lambda_max(W)]E. Gronwall gives E(t)<=exp(-k t)E(0) with k=lambda_min(H)/lambda_max(W)>0, and ||x(t)||<=sqrt(lambda_max(W)/lambda_min(W))*exp(-k t/2)||x0||. The proof uses an exact energy equality and positive forms, not a numerical eigenvalue label without a controlled error.

In physical coordinates W weights a quadratic energy and H its loss per unit time, so the rate k has inverse-time units. A change of state units transforms W, H and F consistently; an arbitrary untransformed identity matrix is not a physical metric. This is a linear homogeneous certificate. Nonlinear remainders, disturbances, saturation and discretization need their own admitted bounds and cannot be inserted into the same exact derivative without additional terms. Related reading: [Energy bounds, invariant domains and stability](https://sites.engineering.ucsb.edu/~jbraw/mpc/MPC-book-2nd-edition-6th-printing.pdf); [Continuous Riccati verification and terminal tails](https://liberzon.csl.illinois.edu/teaching/cvoc.pdf). The selected texts provide energy/stability context. The continuous integral construction, converse eigenvalue proof and dimensionally consistent exponential bound are complete derivations here.

35

A local nonlinear feedback certificate

For a state dimension n>=1, let the actual closed-loop field g:R^n->R^n be C1 on an open neighborhood of 0, with g(0)=0 and F=Dg(0) Hurwitz. In dimension zero the unique state is 0 and stability is trivial; the eigenvalue-extremum formulas in the following quantitative proof are not used. Choose H>0 and its positive definite Lyapunov solution W. Differentiability gives g(x)=Fx+r(x), with ||r(x)||/||x|| tending to zero. On a sufficiently small closed ball of radius d, choose a bound ||r(x)||<=eta||x|| with 2||W||eta<=lambda_min(H)/2. The neighborhood and this numerical margin are part of the certificate.

For E=x^T Wx, E_dot=-x^T Hx+2x^T Wr(x)<=-lambda_min(H)||x||^2+2||W||eta||x||^2<=-[lambda_min(H)/2]||x||^2. Thus E_dot<=-kE where k=lambda_min(H)/(2lambda_max(W)). Choose the initial state so E(0)<lambda_min(W)*d^2. A first exit from the ball would require E>=lambda_min(W)d^2, whereas E cannot increase before that exit; continuity rules the exit out.

Local ODE uniqueness and continuation on this compact admitted neighborhood therefore give a global forward small-state solution. Integrating the energy inequality yields ||x(t)||<=sqrt(lambda_max(W)/lambda_min(W))*exp(-lambda_min(H)t/[4lambda_max(W)])||x0||. This proves local exponential stability with an actual invariant sublevel and a quantified remainder, rather than merely observing that the linearized eigenvalues look stable.

The closed-loop field must be the one the controller really implements in that neighborhood, and its control values must be feasible there. An unsaturated formula used outside an actuator limit may define a different field; a noisy or time-varying implementation adds terms not covered by this homogeneous proof. The argument is local and supplies no global attraction basin beyond its admitted sublevel. A positive or zero-real-part linearized eigenvalue would not satisfy this Hurwitz certificate, and inconclusive linearization needs a different nonlinear analysis. Related reading: [Admissible controlled differential equations](https://liberzon.csl.illinois.edu/teaching/cvoc.pdf); [Energy bounds, invariant domains and stability](https://sites.engineering.ucsb.edu/~jbraw/mpc/MPC-book-2nd-edition-6th-printing.pdf). The local nonlinear result is proved here by quantifying the remainder and choosing an invariant energy sublevel. Feasible input bounds and a global stability claim require separate evidence.

36

Receding-horizon feasibility and decrease

For discrete x_next=f(x,u), assume the horizon N>=1 constrained problem attains its finite minimum V_N(x), with nonnegative stage l and terminal V_f on X_f. The terminal controller kappa_f is feasible at every x in X_f, maps it back into X_f, and satisfies l(x,kappa_f(x))+V_f(f(x,kappa_f(x)))<=V_f(x). Begin at a feasible state with an optimal sequence u0,...,u_(N-1), states x0,...,x_N and x_N in X_f. Apply its first input to the EXACT declared model.

At the reached state x1, shift the remaining optimal sequence u1,...,u_(N-1) and append kappa_f(x_N). Every intermediate constraint is retained from the old sequence, and terminal invariance makes the appended stage and new endpoint feasible. Thus the next optimization is feasible. Its candidate cost is V_N(x0)-l(x0,u0)+l(x_N,kappa_f(x_N))+V_f(f(x_N,kappa_f(x_N)))-V_f(x_N)<=V_N(x0)-l(x0,u0). Taking the new minimum proves V_N(x1)-V_N(x0)<=-l(x0,u0), and induction proves recursive feasibility.

Nonnegative value makes the accumulated stage sum at most V_N(x0). If l(x,u)>=alpha||x||^2 with alpha>0, the resulting state-square sum is finite, so x_k tends to 0. For a quantitative stability certificate also assume a||x||^2<=V_N(x)<=b||x||^2 on the invariant feasible domain, with positive a, b and b>=alpha. Then V_N(x_next)<=q V_N(x), q=1-alpha/b in [0,1), giving ||x_k||<=sqrt(b/a)*q^(k/2)||x0||. If q=0 the next value, and hence next state, is zero.

The proof uses an attained feasible solve, an actual terminal controller/decrease condition and the exact model when shifting its trajectory. A generic finite-horizon optimum or a small solver residual does not supply these premises. Disturbances, model mismatch, state-estimation errors or an infeasible approximate solve can destroy the shifted candidate and require a separate robust or error-tolerant design. No stability conclusion is inherited merely from calling a repeated optimization MPC. Related reading: [Terminal design and receding-horizon stability](https://sites.engineering.ucsb.edu/~jbraw/mpc/MPC-book-2nd-edition-6th-printing.pdf). The selected shifted-sequence proof requires a feasible invariant terminal controller and terminal decrease. The lesson proves its additional quantitative rate from explicit value/state bounds.

37

State boundaries require their own proof

Let B be C1 on an independently admitted working domain containing the actual closed-loop trajectory over the required horizon. Suppose B(x(0))>=0 and the derivative along EVERY admitted state of that flow satisfies grad B(x)^T g(t,x)>=-kappa*B(x), with a fixed kappa>=0. This inequality must hold on the declared working domain, not only at the initial boundary point or as a circular assumption that the state is already safe. ODE existence and working-domain admission are checked separately.

Along the absolutely continuous state, multiply by the integrating factor: d[exp(kappa t)B(x(t))]/dt=exp(kappa t)[grad B^T g+kappa B]>=0 almost everywhere. Integration gives B(x(t))>=exp(-kappa t)B(x(0))>=0 for all admitted times. Thus the stated barrier sign is preserved, including an initial zero value. The direct differential inequality establishes a finite-time sign certificate rather than only an instantaneous tangent comparison.

For a feasible C1 trajectory and smooth constraint h<=0 starting at h=0, the right derivative must satisfy grad h^T x_dot<=0; this is a necessary first-order boundary test. It is not sufficient when checked at one point. Take x_dot=1, y_dot=0, initial (0,0), h=x^2-y. Its gradient at the start is (0,-1), nonzero, and its directional derivative is 0, but the exact trajectory (t,0) has h=t^2>0 at every positive time. The barrier B=y-x^2 has derivative -2t there, failing the uniform integrating-factor inequality.

A true barrier condition may be imposed through feasible controls and checked over an independently justified domain; a value/HJB or costate calculation alone does not provide it. This proof makes no general state-constrained maximum-principle or automatic viability theorem claim. Unknown dynamics, numerical state error and actuator saturation change the actual derivative, so they require controlled margins before the same sign interpretation is used for a physical constraint. Related reading: [Zeroing barriers and the admitted flow domain](https://arxiv.org/abs/1609.06408). The source zeroing function h corresponds to B here. A whole-domain derivative inequality along an admitted flow proves the restricted integrating-factor certificate; a one-point tangent check or formal QP does not.

38

Numerical flow accuracy is not automatic stability

For an autonomous admitted closed-loop ODE x_dot=g(x), assume g is L-Lipschitz on a common domain covering the exact trajectory and numerical evaluations. At grid t_k=kh, write its exact local Euler defect d_k=x(t_(k+1))-x(t_k)-h g(x(t_k)), with ||d_k||<=C h^2. If ||g||<=M on the relevant exact segments, this follows from ||d_k||<=integral_0^h L||x(t_k+s)-x(t_k)||ds<=LM h^2/2. An independently perturbed numerical update is z_(k+1)=z_k+h g(z_k)+h xi_k, ||xi_k||<=delta.

The error e_k=||z_k-x(t_k)|| obeys e_(k+1)<=(1+hL)e_k+C h^2+h delta. For L>0, summing its geometric recurrence gives e_N<=(1+hL)^N e_0+(C h+delta)[(1+hL)^N-1]/L. Since 1+hL<=exp(hL), with T=Nh this is at most exp(LT)e_0+(C h+delta)(exp(LT)-1)/L. For L=0 use the undivided sum e_N<=e_0+CTh+Tdelta. No value is assigned to a division by zero.

This is a finite-horizon estimate for the SAME declared closed-loop field and admitted domain, not automatic stability of a discretization. For x_dot=-a x with a>0, the exact sampled factor is exp(-ah), always between 0 and 1 for h>0. Explicit Euler has factor 1-ah and is asymptotically stable exactly when |1-ah|<1, or 0<ah<2. At ah=2 it oscillates without decay, and at ah>2 nonzero states grow in magnitude despite the stable continuous ODE.

Local defect order therefore does not license a large step or an unlimited-time stability claim; the displayed Gronwall factor itself depends on T. A sampled/held physical feedback and continuously evaluated g(x)=f(x,kappa(x)) are also different flows unless their implementation difference is bounded. State constraints and numerical feasibility need separate checks if z leaves the common domain. The units are explicit: h is time, L inverse time, d_k state displacement and xi_k a vector-field error. Related reading: [Admissible controlled differential equations](https://liberzon.csl.illinois.edu/teaching/cvoc.pdf). The finite Euler error estimate is derived here from the admitted ODE and local defect bounds. Continuous-time stability and stability of a discrete update are separate conclusions.

39

Model error and implementable control certificates

Let a C1 candidate W be assessed in a nominal model (hat_f,hat_l,hat_phi) on a common admitted state/control domain, with nominal minimized residual magnitude at most epsilon(t) and nominal terminal error at most delta_T. Assume UNIFORM true-model errors |l-hat_l|<=delta_l(t), ||f-hat_f||<=delta_f(t), |phi-hat_phi|<=delta_phi, and ||grad W||<=G(t) in one consistent Euclidean coordinate norm. For each admitted action, the Hamiltonian difference is at most D(t)=delta_l(t)+G(t)delta_f(t), by the dual inner-product bound.

Taking the two minima preserves that same D bound, so the true minimized residual has magnitude at most epsilon+D and its terminal discrepancy is at most delta_T+delta_phi. Under the same feasible exact/arbitrarily accurate Hamiltonian-selection conditions proved in P24, the true value therefore lies in W plus or minus E_true, where E_true=delta_T+delta_phi+integral_t^T(epsilon+D). No value error at only a sampled trajectory can replace these uniform control-domain bounds.

For a particular feasible policy kappa with nominal Hamiltonian gap at most zeta(t), use the DIRECT chain integrand: W_t+H_true(kappa)=hat_r+[hat_H(kappa)-min hat_H]+[H_true(kappa)-hat_H(kappa)]<=epsilon+zeta+D. Integrating with the true trajectory and terminal bound gives J_true(kappa)<=W+E_true+integral zeta. Combining with the universal true optimum lower bound yields 0<=J_true(kappa)-V_true<=2E_true+integral zeta. This derivation keeps the same-action model error once in each side of the value comparison instead of silently treating nominal greediness as exact true greediness.

The policy must actually have a well-posed feasible TRUE trajectory in that working domain, and the model bounds and gradient scale must be independently justified there. If input/state feasibility differs between models, or a learned/estimated derivative lacks a certified error, the common-domain proof is unavailable. In units, both delta_l and grad W times vector-field error are cost per time, with terminal quantities in total cost units. The result is a conditional mathematical performance certificate, distinct from training fit, physical model truth, provider claims or measurements outside the qualified domain. Related reading: [Continuous dynamic programming and smooth verification](https://liberzon.csl.illinois.edu/teaching/cvoc.pdf); [Admissible controlled differential equations](https://liberzon.csl.illinois.edu/teaching/cvoc.pdf). The model-transfer certificate is derived here on a common feasible domain. It uses uniform cost, gradient-weighted vector-field and terminal bounds, and it keeps nominal greediness distinct from true-model optimality.

Explore exact dynamic programs, optimal feedback and stability conditions. Each example separates admissibility, the value calculation, and the resulting trajectory.

Working backward tests terminal penalties before choosing actions

A state-dependent terminal cost

The terminal cost changes earlier decisionsA state-dependent terminal cost; The vertical axis shows conditional value, with each chosen state and action labeled along one attainable policy. There are no ties.The terminal cost changes earlier decisions-0.5604.56-0.273.27State 0State 1s1 · switchs0 · stays0 · stays0 · terminalRepresentative policy: labeled state and chosen actionStage t · conditional value V_t(s)
The vertical axis shows conditional value, with each chosen state and action labeled along one attainable policy. There are no ties.

Start from the terminal penalties. For each state and time, add the immediate cost to the next-state value for each feasible action. The minimum is the new value and every tied action is optimal at that state. A representative policy can choose one of them; its directly summed cost matches the computed value.

Exact Bellman and policy outcomes
QuantityExact result
Terminal values(0, 4)
Initial values by state(3, 3)
Chosen start state1
All tied stage/state pairsNone
Terminal state and cost0 / 0
Direct accumulated cost3
Visible representative state and action tracet=0 s=1 switch → 0 · t=1 s=0 stay → 0 · t=2 s=0 stay → 0
Exact inputs and supporting calculations
Declared inputs
ParameterValue
stay[1,3]
switch[2,1]
terminal[0,4]
start1
Complete exact Bellman rows
tStateStay totalSwitch totalMinimumAll minimizers
00343stay
01533switch
10232stay
11422switch
20161stay
21711switch
One optimal path with ties broken by staying
tCurrent stateActionCostNext state
01switch10
10stay10
20stay10

A computable residual bounds stationary value error

Discounted choices depend on state

An exact residual bounds the remaining value errorDiscounted choices depend on state; The two iterate traces coincide. At V₃, the actual infinity-norm error is 1/4 and the residual is 1/8. Exact greedy actions at states 0 and 1 are stay / switch.An exact residual bounds the remaining value error-0.2802.28-0.273.27Both states follow the same iterate traceV*(0)=V*(1)=2Open markers show the exact fixed point at k=3 for comparisonValue-iteration count k · estimated value
The two iterate traces coincide. At V₃, the actual infinity-norm error is 1/4 and the residual is 1/8. Exact greedy actions at states 0 and 1 are stay / switch.

Evaluate a stationary policy by solving (I−γP)V=c, then check it is greedy at its own value. The exact Bellman fixed point is unique by the γ contraction in the infinity norm. Comparing an approximate value with its image and using the contraction gives the residual bound; a geometric sum of future increments gives the alternative stopping bound.

Exact discounted Bellman bound
QuantityExact result
Discount1/2
V₀, V₁, V₂, V₃(0, 0) → (1, 1) → (3/2, 3/2) → (7/4, 7/4)
Certified stationary policystay / switch
All exact greedy choices by statestay / switch
Exact stationary value(2, 2)
Actual error in infinity norm1/4
T(V₃)(15/8, 15/8)
Residual norm1/8
Residual bound ||T(V₃)−V₃||∞/(1−γ)1/4
Increment bound γ||V₃−V₂||∞/(1−γ)1/4
Exact inputs and supporting calculations
Declared inputs
ParameterValue
stay[1,3]
switch[2,1]
gamma1/2

A worst transition probability depends on downstream values

Higher next-state value at state 1

Nature maximizes over the interval for the selected actionHigher next-state value at state 1; The adverse endpoint changes with the sign of V₁−V₀, which is 3. The outer policy chooses the smaller worst action value.Nature maximizes over the interval for the selected action-0.45503.705-0.091.09Action 0 over its own intervalAction 1 over its own intervalworst 0worst 1Worst point per selected actionProbability of next state 1 · full expected action cost
The adverse endpoint changes with the sign of V₁−V₀, which is 3. The outer policy chooses the smaller worst action value.

The action-specific objective is c_a+V₀+p(V₁−V₀). A linear function of p reaches an endpoint unless the slope is zero, in which case the complete interval ties. The state/action-dependent intervals are independent choices for nature in the declared robust recursion. A coupled uncertainty set can invalidate such a decomposition in multi-stage recursion.

Exact robust Bellman comparison
QuantityExact result
Next values V₀,V₁(1, 4)
Probability intervals[1/4, 3/4] / [0, 1/4]
Signed slope V₁−V₀3
Adverse maximizing probability by action(3/4, 1/4)
Exact worst expected costs by action(13/4, 11/4)
Minimizing actions1
Robust value11/4
Exact inputs and supporting calculations
Declared inputs
ParameterValue
V[1,4]
cost[0,1]
bands[["1/4","3/4"],[0,"1/4"]]

A scalar Riccati recursion certifies both feedback and value

Control reduces the prospective state penalty

Backward Riccati values certify an optimal forward trajectoryControl reduces the prospective state penalty; Each state is at a discrete time. Controls exist only at stages 0 and 1. Their directly summed cost with the terminal term is 32/5.Backward Riccati values certify an optimal forward trajectory-1.36800.168-0.182.18−6/5−2/5Exact optimal inputsStage t · control before terminal time-0.2802.28-0.182.18State path (lines guide between samples)24/52/5Exact statesStage t · discrete state x_t
Each state is at a discrete time. Controls exist only at stages 0 and 1. Their directly summed cost with the terminal term is 32/5.

Write the next value as P_(t+1)(a x+b u)² and complete the square in u. The positive denominator r+b²P_(t+1) selects u=−K_t x and leaves a quadratic value coefficient P_t. Recompute every state and cost directly to verify that the advertised Bellman value is attained.

Exact finite Riccati and trajectory
QuantityExact result
P₂, P₁, P₀(1, 3/2, 8/5)
Control denominators r+b²P_(t+1)(5/2, 2)
Gains K₀, K₁(3/5, 1/2)
State path x₀, x₁, x₂(2, 4/5, 2/5)
Applied controls u₀, u₁(−6/5, −2/5)
Stage costs(136/25, 4/5)
Terminal cost4/25
Total objective and certified value32/5 = 32/5
Exact inputs and supporting calculations
Declared inputs
ParameterValue
a1
b1
q1
r1
qf1
x02

A positive Lyapunov certificate depends on stability

Both eigenvalues have magnitude less than one

The Lyapunov equation and state dynamics have separate checksBoth eigenvalues have magnitude less than one; The plotted scalar coordinates start at +1 independently. A positive definite certificate exists.The Lyapunov equation and state dynamics have separate checks-0.5201.187-0.455.45First eigendirection coordinateSecond eigendirection coordinatestartBoth start at +1Iteration k · signed eigenstate coordinate
The plotted scalar coordinates start at +1 independently. A positive definite certificate exists.

When each diagonal magnitude is below one, the solved finite positive diagonals give V(x)=xᵀPx and V(Ax)−V(x)=−||x||². A unit eigenvalue contradicts a strictly negative change on its eigenvector. A formal equation with an indefinite P can still have that algebraic change, but P is not a positive energy function and proves no stability.

Exact diagonal Lyapunov classification
QuantityExact result
A diagonal(1/2, −1/3)
Off-diagonal multiplier ab−1−7/6
Diagonal equations(a²−1)P₁₁=−1 and (b²−1)P₂₂=−1
Formal P diagonal entries(4/3, 9/8)
Formal P₁₂0
Positive definite solutionYes
Asymptotic stabilityBoth modes decay, one with alternating sign.
Exact inputs and supporting calculations
Declared inputs
ParameterValue
a1/2
b-1/3

The reachable interval gives a nonsmooth terminal-cost value

The target is outside the reachable interval

A reachable interval gives the exact terminal-cost valueThe target is outside the reachable interval; At elapsed time h=2, the reachable interval is [1, 5] and the optimal terminal state is 1. Outside. Wₓ=1 and Wₕ=−v.A reachable interval gives the exact terminal-cost value-0.705.7-0.182.18Lower reachable boundaryUpper reachable boundaryOptimal trajectory coincides with lower boundarylower = optimal 1upper 5Terminal interval endpoints and optimal terminal stateElapsed time · reachable bounds and one optimal trajectory-0.23801.938-3.6034.303Value W(h,x)kinkkinkselectedKinks and selected initial stateInitial state x · exact value at the selected remaining h
At elapsed time h=2, the reachable interval is [1, 5] and the optimal terminal state is 1. Outside. Wₓ=1 and Wₕ=−v.

The integral of bounded input over time h ranges from −v h to v h, and any intermediate displacement is realized by a constant admissible input. Minimizing |x(T)| clips the terminal selection to that interval. The exact remaining-time value verifies the smooth HJB inside and outside the kink set, while reachability gives correctness at kinks without pretending a classical derivative exists.

Exact value and HJB scope
QuantityExact result
Remaining time h / input limit v2 / 1
Reachable terminal interval[1, 5]
One optimal terminal state1
Exact value1
One optimal constant control−1
Value formulaW(h,x)=max(|x|−v h,0)
Kink locationsx=−2 and x=2
Remaining-time HJBW_h+v|W_x|=0 away from the switching kinks
Selected point classificationOutside. Wₓ=1 and Wₕ=−v.
Exact inputs and supporting calculations
Declared inputs
ParameterValue
x3
v1
h2

Worked examples

A finite target problem

Use x_next=x+u on states {0,1,2}, controls {-1,0,1} restricted to remain in that set, horizon 2, stage cost u^2 and terminal cost 4(x-2)^2. Compute both full backward value tables and all minimizing controls, then the optimal cost and path from x0=0.

  1. The terminal penalty is 4(x-2)^2, so its full table on states 0, 1, 2 is 16, 4, 0. Feasibility removes u=-1 at state 0 and u=1 at state 2. At time 1, state 0 has candidates 16 for waiting and 1+4=5 for moving up. State 1 has candidates 1+16=17, 4, and 1+0=1 for u=-1, 0, 1. State 2 has 1+4=5 for moving down and 0 for waiting. Thus V1=(5,1,0), with the indicated unique minimizing actions 1, 1, 0.
  2. At time 0 use that complete next-value table. State 0 compares 5 against 1+1=2, so chooses 1. State 1 compares 1+5=6, 1, and 1+0=1, giving a tie between 0 and 1. State 2 compares 1+1=2 against 0 and chooses 0. Therefore V0=(2,1,0), and the full time 0 minimizing-action sets are {1},{0,1},{0}. A tie at the middle state does not create a tie in the actual start 0 first decision.
  3. Starting from x0=0, the time 0 action 1 reaches x1=1 and its time 1 minimizing action 1 reaches x2=2. Each stage costs 1 and the terminal penalty is 0, so the realized objective is 2, exactly V0(0). Waiting initially would leave state 0 with only one stage to progress, yielding minimum remaining cost 5. This direct path check agrees with the full table rather than replacing the table with one guessed trajectory.
  4. At start state 1 the two optimal first actions give different optimal paths: wait then move to 2, or move to 2 then wait, each with stage sum 1 and terminal 0. At start 2, wait at both times gives 0. Terminal time has no control to choose. The problem uses a finite SOFT terminal penalty rather than an exact terminal-state constraint, even though the optimizer from 0 happens to meet x2=2; the backward comparison includes all admitted terminal states.

Terminal values are (16,4,0), time 1 values (5,1,0), and time 0 values (2,1,0). The minimizing controls at time 1 are (1,1,0); at time 0 they are {1},{0,1},{0} for states 0, 1, 2. From 0 the optimal path is 0->1->2 with cost 2.

The value of observing a shock

There is no first-stage choice. A shock W is -1 or 1 with equal probability and is observed as x1=W. Choose u1 in {-1,1} and pay terminal (x1+u1)^2. Compare the exact optimal observed-feedback, independent open-loop and independent randomized-open-loop costs, and state the information distinction.

  1. After the shock is observed, the state is either x1=-1 or x1=1, and the two feasible controls are -1 and 1. The nonnegative terminal square is minimized by u1=-x1, giving terminal state 0 and cost 0 on each realized history. Therefore the conditional value is 0 at both observed states, and its initial expectation is also 0. No negative cost is possible, so this feasible rule is globally optimal in the stated observed-feedback class.
  2. An independent open-loop action must be fixed before W is known. For either u=-1 or u=1, E(W+u)^2=E W^2+2u E W+u^2=1+0+1=2. Directly, one equally likely shock yields terminal displacement 0 and the other yields displacement of magnitude 2, whose squared cost 4 contributes half. Thus the exact minimum over these independent prechosen actions is 2, not 0.
  3. Independent randomization assigns any probability to the two fixed actions. Conditional on each such chosen action the expected cost remains 2, so the total expectation remains 2 by averaging. Correlating the action with W could achieve 0, but that is exactly the information-dependent policy already admitted AFTER observation, rather than a new benefit from independent randomization. Its dependence must not be hidden inside an open-loop label.
  4. The advantage here is the observation timing, with feedback and open loop compared under the same costs and feasible actions. If W were revealed only after u1, the rule u1=-W would use future information and would be inadmissible in that changed experiment. In the actual experiment W is already the current state, so u1=-W is fully causal. This example establishes a strict possible feedback benefit, not a claim that feedback is strictly better in every deterministic problem.

Observed feedback has exact cost 0. Every independent fixed or randomized open-loop action has expected cost 2. Using the revealed shock is causal; using a still-unrevealed shock would change the admissible information class.

A discounted two-state certificate

States A, B have beta=1/2. At A, stay costs 1 and returns A; exit costs 3 and reaches B. At B the only action costs 0 and returns B. Solve the true values, optimal policy, value iteration from zero and the error/residual/greedy-policy certificates for approximate values (A,B)=(12/5,0).

  1. The zero-cost absorbing state has V_B=(1/2)V_B and hence V_B=0. At A the Bellman equation is V_A=min(1+V_A/2,3). Candidate V_A=2 makes the two expressions 2 and 3, so it solves the equation and stay is the unique minimizing action. Contraction gives uniqueness. Its cost is sum_(k>=0)(1/2)^k=2; exiting immediately costs 3, and waiting n times before exiting costs 2+2^(-n), never less than 2.
  2. With v0(A)=v0(B)=0, all iterates at B remain 0. If v_k(A)<=2 then 1+v_k(A)/2<=2<3, so the stay branch remains active and v_(k+1)(A)=1+v_k(A)/2. Induction solves this scalar recurrence as 2(1-2^(-k)). The actual error is 2^(1-k), and the update residual is 2^(-k), matching residual divided by 1-beta. The closed-form recurrence gives these exact errors without numerical iteration.
  3. For w=(12/5,0), the two A backup expressions are 1+6/5=11/5 and 3. Thus Tw=(11/5,0), and the full sup residual is 1/5. Its actual value error is 12/5-2=2/5, exactly (1/5)/(1-1/2). The minimizing backup chooses stay, whose true cost remains 2; the approximate number 12/5 is not the actual cost of this implemented policy.
  4. Using delta=2/5, zeta=0, the uniform-value-error policy bound is 2*(1/2)*(2/5)/(1/2)=4/5. The direct residual policy bound is 2*(1/5)/(1/2)=4/5 as well. Its actual loss is 0 because the same action is still optimal. Hence a nonzero value error or a conservative policy certificate does not prove an actual policy defect, and all quantities retain their distinct meanings.

V*(A)=2, V*(B)=0; stay is optimal. From zero, v_k(A)=2(1-2^(-k)). The candidate has error 2/5 and full residual 1/5; both policy bounds are 4/5 while its actual greedy-policy loss is 0.

An uncertain transition row

A single-action model has states 0, 1, beta=1/2, costs 0, 1 respectively, and state 1 absorbing. From 0 the true next state is 1 with probability 1/4 and 0 otherwise; the nominal model always returns 0. Compute both values, the row L1 error, the sup-norm transfer bound and the actual value difference.

  1. State 1 is absorbing with cost 1 under beta=1/2, so its value is 2 in both models. In the nominal model state 0 returns to itself at zero cost, so its value is 0. In the true model the equation is V0=(1/2)[(3/4)V0+(1/4)*2]=(3/8)V0+1/4. Therefore (5/8)V0=1/4 and V0=2/5. The full value difference is (2/5,0), whose sup norm is 2/5.
  2. The nominal state 0 row is (1,0) and the true row is (3/4,1/4). Their L1 difference is 1/4+1/4=1/2, while state 1 has no row difference. Running costs match, so delta_c=0, epsilon_P=1/2 and ||hat_v*||_infinity=2. The uncentered action-expression bound is D=beta*epsilon_P*||hat_v*||=(1/2)*(1/2)*2=1/2. Dividing by 1-beta gives the valid value bound 1, larger than the actual 2/5.
  3. The probability difference sums to zero, so centering is legitimate. Here epsilon_TV=1/4 and span(hat_v*)=2, giving D_centered=(1/2)*(1/4)*2=1/4 and value bound 1/2. Directly, the true Bellman residual of the nominal value at state 0 is (1/2)*(1/4)*2=1/4, agreeing with that sharper residual bound. Neither estimate is an equality claim for the actual value difference.
  4. There is only one available action at each state, so the nominal policy and true optimal policy are the same policy. Its cost from 0 changes from nominal 0 to true 2/5, but its true suboptimality is 0 because no alternative policy exists. The generic policy-loss bound 2D/(1-beta)=2 is merely conservative here. This separates a model-induced prediction error from strategic/control regret and shows why the value scale cannot be omitted from transition-error propagation.

Nominal values are (0,2); true values are (2/5,2). The changed row has L1 error 1/2. The uncentered uniform transfer bound is 1, compared with actual sup value error 2/5; the only policy has true regret 0.

Two steps of scalar LQR

For x_next=x+u, horizon 2, Q=R=Q_terminal=1 and x0=5, compute each Riccati value, feedback gain, state and control. Verify the complete objective by direct summation and the square-completion identity.

  1. Use the convention that each stage includes x_t^2+u_t^2 and terminal includes x2^2. For scalar A=B=1, the Riccati step is P_t=1+P_(t+1)-P_(t+1)^2/(1+P_(t+1))=1+P_(t+1)/(1+P_(t+1)), with gain K_t=P_(t+1)/(1+P_(t+1)). From P2=1 obtain S1=2, K1=1/2 and P1=3/2.
  2. At time 0, S0=1+P1=5/2, K0=(3/2)/(5/2)=3/5 and P0=1+(3/2)/(5/2)=8/5. With x0=5, feedback gives u0=-(3/5)*5=-3, so x1=2. The next gain gives u1=-(1/2)*2=-1 and x2=1. All controls are unrestricted in this problem; no clipping or terminal-state equality has been inserted.
  3. Directly summing the declared objective yields x0^2+u0^2+x1^2+u1^2+x2^2=25+9+4+1+1=40. The quadratic-value expression is P0*x0^2=(8/5)*25=40. The terminal state is 1 rather than 0 because the actual target is a finite terminal penalty, and forcing it to 0 would solve a different problem.
  4. The one-stage completed identities have squares S0*(u0+K0*x0)^2 and S1*(u1+K1*x1)^2. They both vanish for these controls, so the telescoped cost equals the value. Positive S0=5/2 and S1=2 make each minimizing control unique for its reached state. Any other admitted sequence has that same initial value plus its nonnegative completed squares, certifying global optimality rather than only a stationarity calculation.

P2=1, P1=3/2, P0=8/5; K1=1/2, K0=3/5. From x0=5 the controls are -3, -1, states 5, 2, 1, and the complete objective is 40.

The stabilizing algebraic root

For x_next=2x+u and infinite cost sum(x^2+u^2), find both scalar Riccati roots, identify the positive semidefinite stabilizing one, its gain and closed-loop factor, and verify the value by summing its geometric stage costs. Explain why the other root is rejected.

  1. For A=2, B=1, Q=R=1, the scalar equation is P=1+4P-4P^2/(1+P)=1+4P/(1+P). Multiplying by 1+P gives P^2-4P-1=0, so the two roots are 2+sqrt(5) and 2-sqrt(5). The second is negative because sqrt(5)>2. A nonnegative value for a nonnegative-cost problem must have P>=0, so this root already fails the verification premise.
  2. For the positive root, S=1+P=3+sqrt(5)>0 and K=2P/(1+P)=(1+sqrt(5))/2. The resulting state factor is F=2-K=2/(3+sqrt(5))=(3-sqrt(5))/2, which lies strictly between 0 and 1. Thus x_k=F^k x0 and u_k=-K F^k x0 define a feasible exponentially decaying infinite-horizon trajectory.
  3. Its exact cost is x0^2*(1+K^2)*sum_(k>=0)F^(2k)=x0^2*(1+K^2)/(1-F^2). The completed-square/Riccati identity gives P=1+K^2+F^2P, so this fraction equals P, verifying J=(2+sqrt(5))*x0^2. Positive Q, R ensure any finite-cost competitor has x_k tending to 0, allowing the complete terminal-limit optimality proof rather than merely certifying the chosen feedback cost.
  4. For P_minus=2-sqrt(5), S_minus=3-sqrt(5)>0 but F_minus=2/S_minus=(3+sqrt(5))/2>1. Its formal quadratic value is negative and its nonzero feedback trajectory instead has divergent nonnegative stage sum. It is therefore not an admissible stabilizing value certificate. The example illustrates why solving an algebraic Riccati polynomial requires type, sign and stability/transversality checks, not selection of an arbitrary real root.

The algebraic roots are 2±sqrt(5). The valid root is P=2+sqrt(5), with K=(1+sqrt(5))/2 and F=(3-sqrt(5))/2. Its infinite cost is P*x0^2; the other root is negative and gives an unstable factor.

Reach a position with least energy

For A=[[1,1],[0,1]], B=(0,1)^T, x0=(0,0), horizon 2 and target x2=(1,0), derive the stacked reachability matrix, Gramian and least-energy controls. Verify the entire trajectory and input-square cost, and explain why the same target is impossible in one step.

  1. With chronological controls U=(u0,u1), unrolling gives x2=AB*u0+B*u1 because x0=0. Here AB=(1,1)^T and B=(0,1)^T, so C2=[[1,0],[1,1]]. Its determinant is 1 and it has full row rank. The Gramian is C2*C2^T=[[1,1],[1,2]], also determinant 1, with inverse [[2,-1],[-1,1]]. The target difference z is (1,0)^T.
  2. Compute W2_inverse*z=(2,-1)^T and U_star=C2^T*(2,-1)^T=(1,-1)^T. It satisfies C2*U_star=(1,0)^T exactly. Its energy is 1^2+(-1)^2=2, equal to z^T*W2_inverse*z=2. The least-norm proof makes this a global energy certificate; in this square invertible example the feasible input vector is itself unique.
  3. The complete trajectory is x1=A*(0,0)^T+B*1=(0,1)^T, then x2=A*(0,1)^T+B*(-1)=(1,1)^T+(0,-1)^T=(1,0)^T. Thus both terminal position and velocity are checked, rather than only a position coordinate. No state penalty or amplitude bound has been added to the declared input-square objective.
  4. At horizon one the reachability matrix is just B and has range consisting of vectors with first coordinate zero. Since A*x0=0 and the target first coordinate is 1, no scalar u0 can reach it. Its one-step Gramian is singular and an ordinary inverse formula would be invalid. The same system can therefore fail a particular one-step target while being fully reachable over two steps.

C2=[[1,0],[1,1]], W2=[[1,1],[1,2]], W2_inverse=[[2,-1],[-1,1]]. The unique controls are (1,-1), with states (0,0),(0,1),(1,0) and energy 2. The target is unreachable in one step.

A continuous Riccati trajectory

For x_dot=u, horizon [0,1], x(0)=2, cost integral(x^2+u^2) and zero terminal cost, solve the Riccati equation, feedback trajectory and control exactly with hyperbolic functions. Verify the terminal condition and value without imposing an unrequested terminal-state target.

  1. For A=0, B=1, Q=R=1 and terminal S=0, the scalar Riccati equation is -P_dot=1-P^2 with P(1)=0. The proposed P(t)=tanh(1-t) has derivative -sech(1-t)^2=P(t)^2-1 and the required terminal value. It is nonnegative and finite throughout the actual interval [0,1].
  2. The optimal feedback is u=-P(t)*x, so x_dot/x=-tanh(1-t) wherever x is nonzero. The solution satisfying x(0)=2 is x(t)=2*cosh(1-t)/cosh(1). Differentiating it gives u(t)=-2*sinh(1-t)/cosh(1), and this also equals -P(t)*x(t). At t=1 the control is zero and the state is 2/cosh(1), not an imposed zero endpoint.
  3. The direct running integrand is 4[cosh(1-t)^2+sinh(1-t)^2]/cosh(1)^2=4*cosh(2(1-t))/cosh(1)^2. Its integral over [0,1] is 2*sinh(2)/cosh(1)^2=4*tanh(1). There is no terminal cost term because S=0. This exact integration agrees with x(0)^2*P(0)=4*tanh(1).
  4. For every other admitted control the completion identity writes its cost as that same initial value plus integral (u+P*x)^2. The square is nonnegative and the derived feedback makes it vanish, giving global optimality and uniqueness along the trajectory. A fixed terminal-state problem would have a different admissible class and generally a different value; the nonzero terminal state here is consistent with the specified penalty problem.

P(t)=tanh(1-t), x(t)=2*cosh(1-t)/cosh(1), u(t)=-2*sinh(1-t)/cosh(1), and the exact minimum is 4*tanh(1). The terminal state is 2/cosh(1), with terminal penalty zero.

A costate with a genuine switch

For x_dot=u, |u|<=1, x(0)=0, horizon [0,2], cost integral x(t)dt+(x(2)-2)^2/2, derive the adjoint, Hamiltonian minimum, switch time, full state and objective. Use the actual convex sufficiency conditions to certify global optimality.

  1. The Hamiltonian is H=x+p*u and terminal cost phi(x)=(x-2)^2/2. Thus p_dot=-1 and p(2)=x(2)-2, giving p(t)=x(2)-t. Minimization on [-1,1] chooses u=-1 when p>0 and u=1 when p<0. An interior switch s therefore satisfies s=x(2). With this pattern the terminal state is 2-2s, so self-consistency gives s=2-2s and hence s=2/3.
  2. The proposed state is x(t)=-t for 0<=t<=2/3 and x(t)=t-4/3 for 2/3<=t<=2. These pieces meet at -2/3 and give terminal x(2)=2/3. The adjoint p(t)=2/3-t has derivative -1 and terminal value -4/3=x(2)-2. Its sign gives exactly the chosen two bounded controls; the value of u at the single switch time does not affect the integral flow.
  3. The first state integral is -s^2/2=-2/9. The remaining integral is [t^2/2-(4/3)t] from 2/3 to 2, which equals zero. The terminal penalty is ((2/3)-2)^2/2=8/9. Adding gives J=-2/9+8/9=2/3. Running cost can be negative in this finite admitted problem, but the bounded control and finite horizon keep the complete objective finite.
  4. The feasible control interval is convex, terminal phi is convex differentiable, and H=x+p*u is jointly affine, hence convex, in state and control for the actual p(t). The full adjoint, terminal and Hamiltonian minimum conditions hold. The convex supporting-plane proof therefore certifies this candidate globally against every admitted control, rather than treating a necessary switching condition alone as sufficiency.

The optimal switch is at t=2/3: u=-1 before it and u=1 afterward. The state is -t then t-4/3, the adjoint is 2/3-t, and the exact global minimum is 2/3.

The nonsmooth travel-capacity value

For |u|<=1, x_dot=u, horizon T=3 and terminal cost |x(3)| with no running cost, find V(t,x) exactly, optimal controls at (t,x)=(1,4) and (1,1), the classical PDE away from switches and the direct test-function checks at (t,x)=(1,2) and (1,-2).

  1. The reachable terminal interval from (t,x) is [x-(3-t),x+(3-t)]. Its minimum absolute value is the distance of zero from that interval, namely max(|x|-(3-t),0). At (1,4), two time units permit displacement at most 2, so terminal state is at least 2 and u=-1 throughout attains cost 2. At (1,1), constant u=-1/2 for those two units reaches zero and attains the nonnegative lower bound 0.
  2. Where |x|>3-t, the derivatives are V_t=1 and V_x=sign(x). Where |x|<3-t they both vanish. Since min_(|u|<=1) V_x*u=-|V_x|, the classical PDE is V_t-|V_x|=0 in both open regions. At t=3 the formula becomes the exact terminal value |x|. It is not legitimate to assign a single classical derivative at the two switch curves.
  3. Near (1,2), increments (dt,dx) give V=max(0,dt+dx); near (1,-2) they give V=max(0,dt-dx). For the sign s=1 or -1, a differentiable upper test would need its slope along a direction d with (1,s) dot d>0 to be at least that positive number, and along -d to be nonnegative, which would force the first slope to be at most zero. Thus no C1 upper test exists at either corner.
  4. For a lower test, its derivative must lie between the two directional slopes for every d. Orthogonal directions force it to be lambda*(1,s), and the remaining direction gives 0<=lambda<=1. Its HJB expression is lambda-|lambda*s|=0, satisfying the required lower-test inequality. Together with the classical regions this directly checks the stated nonsmooth solution property; it does not assert a general viscosity uniqueness theorem or uniqueness of controls inside the zero-value region.

V(t,x)=max(|x|-(3-t),0). At (1,4) the minimum is 2, reached by u=-1; at (1,1) it is 0, for example with u=-1/2. At the two stated switches the lower-test gradients are lambda*(1,±1), 0<=lambda<=1, and the HJB expression is zero.

A recursively feasible constrained controller

For x_next=x+u with |x|<=2, |u|<=1, stage x^2+u^2, horizon N=1, terminal |x|<=1 and V_terminal=2x^2, use kappa_terminal=-x. Verify all terminal assumptions, solve the first MPC step from x0=3/2, then the next step, and prove the value-decrease and quantitative stability bounds on the whole feasible set.

  1. For terminal |x|<=1, kappa_f=-x respects |u|<=1 and maps the state to zero, which remains terminal-feasible. Its stage cost is 2*x^2 and the next terminal value is zero, exactly V_f(x)=2*x^2. The one-step problem has compact nonempty feasible inputs for every |x|<=2: for |x|<=1 use -x, and outside it use -sign(x), reaching terminal magnitude at most 1. Thus an attained feasible minimizer exists on the whole stated domain.
  2. Its objective is x^2+u^2+2(x+u)^2. The unconstrained minimizing input is -2*x/3. It is feasible for |x|<=3/2, giving V1=(5/3)*x^2 and next state x/3. For 3/2<|x|<=2 the minimizing feasible endpoint is u=-sign(x), giving V1=3*x^2-4*|x|+3 and next magnitude |x|-1. At x0=3/2 the first control is -1, x1=1/2 and V1(x0)=15/4; next control is -1/3, x2=1/6, with values 5/12 and 5/108.
  3. At the first step, stage cost is 9/4+1=13/4. The value change is 5/12-15/4=-10/3, no greater than -13/4. The shifted terminal-controller candidate at x1 costs (1/2)^2+(-1/2)^2=1/2, while the actual new optimum is 5/12. This verifies both the feasible-shift proof and its inequality with the actual numbers, without equating the shifted candidate to the new optimum.
  4. Both value branches satisfy x^2<=V1(x)<=2*x^2. For the outer branch the upper inequality is equivalent to (|x|-1)(3-|x|)>=0, valid on its stated interval. The stage lower bound is x^2, so terminal decrease and the shifted sequence give V1(next)<=V1(x)-x^2<=V1(x)/2 on the full feasible domain. Therefore |x_k|<=sqrt(2)*2^(-k/2)*|x0|, a conservative exponential certificate. Feasibility and this rate use the exact model and terminal construction, not an unsupported generic MPC label.

The terminal controller is feasible and gives equality in terminal decrease. The first controls are -1 and -1/3, with states 3/2, 1/2, 1/6 and values 15/4, 5/12, 5/108. On |x|<=2, x^2<=V1(x)<=2*x^2 and V1(next)<=V1(x)/2.

A model-error control certificate

On horizon [0,2] with |x|<=3, |u|<=3, running cost x^2+u^2, terminal x(2)^2 and x(0)=1, take nominal x_dot=u, W=x^2 and policy u=-x. The true flow is x_dot=u+d with uniform |d|<=1/10 on the common admitted domain. Prove policy feasibility and give the finite-horizon value and policy-loss bounds. For the particular true d=1/10 constant, solve the policy trajectory and its exact cost, keeping that distinct from the true optimal cost.

  1. The nominal Hamiltonian with W=x^2 is x^2+u^2+2*x*u=(u+x)^2, minimized by u=-x, feasible on |x|<=3. The candidate has zero time derivative and matches terminal x^2, so its nominal residual and terminal error are zero. Under the admitted true policy flow, x_dot=-x+d. Variation of constants gives |x(t)|<=exp(-t)|x0|+(1/10)(1-exp(-t))<=1 from x0=1. Thus |u|=|x|<=1 and both declared bounds 3 are respected, independently of the later performance estimate.
  2. On the complete comparison state domain |x|<=3, the candidate gradient has magnitude at most 6. Running and terminal costs match, while vector-field error is at most 1/10, giving uniform Hamiltonian error D=6/10=3/5 cost units per time. Over two units the integrated certificate is E=6/5. The universal lower bound is W(0,1)-E=-1/5; the feasible nominal-greedy policy upper bound is W+E=11/5. Nonnegative actual costs sharpen the value interval to [0,11/5], and the standard two-sided policy-loss certificate is 2E=12/5.
  3. For the particular constant d=1/10, solve x_dot=-x+1/10 to obtain x(t)=1/10+(9/10)*exp(-t), with u=-x. Along this exact trajectory, d(x^2)/dt=-2*x^2+(1/5)*x, so its total cost 2*integral_0^2 x^2+x(2)^2 equals x0^2+(1/5)*integral_0^2 x. The integral is 1/5+(9/10)(1-exp(-2)), giving J=61/50-(9/50)*exp(-2). This exact integration checks the policy cost directly.
  4. The last number is the performance of the implemented nominal feedback in that particular true model, not a solution of the true optimal-control problem. The uniform earlier bounds permit arbitrary admitted perturbations within the stated error and retain feasibility as an independently proved fact. They require the actual true flow to be well posed and the model error bound to hold throughout the common comparison domain; a fit only along observed states would not justify the value or regret certificate.

The nominal value is W=x^2. The policy stays within |x|<=1 and is feasible. The uniform domain bound gives E=6/5, true value in [0,11/5] at the start and policy loss at most 12/5. For constant d=1/10, its actual policy cost is 61/50-(9/50)*exp(-2), not a claimed true optimal value.

Try it yourself

  1. Two histories have the same reported physical state but previous actions 0 and 1. The next action u is 0 or 1, with cost u/2 plus 1 if u differs from the previous action, and no other costs. Find each optimal action/value, show why the reported state is insufficient, and give a sufficient augmented state.

    Show the answer and reasoning

    After previous action 0, choose 0 with value 0; after previous action 1, choose 1 with value 1/2. The previous action must be included in the Markov state.

    For previous action 0, choosing u=0 has base cost 0 and no switch cost, so its total is 0. Choosing u=1 has base cost 1/2 and switch cost 1, totaling 3/2. Therefore the unique minimizing choice is 0, with value 0. This conditional calculation uses information that the supposedly complete physical-state label omitted. For previous action 1, choosing u=0 costs 1 because it switches; choosing u=1 costs 1/2 with no switch. The unique minimizing choice is now 1, with value 1/2. Both histories have the same reported physical state but different continuation values and minimizing controls, so no single Bellman value on that reported state can represent both correctly. A sufficient state is the pair of the reported physical state and the previous action, together with time if the horizon requires it. The next stored previous-action coordinate is exactly the chosen u. The cost is then a function of this augmented current state and action, so the finite one-stage Bellman calculation is valid. This is information preservation rather than a failure of the Bellman principle. Randomizing cannot improve either result because its conditional cost is a convex average of the two calculated totals. A history-dependent policy can use the previous action, while a policy forced to ignore it belongs to a smaller information class. Calling the incomplete label a state does not establish the conditional Markov/cost premise needed for an equivalence theorem.

  2. At a single nonterminal state, beta=1, stay costs 0 and repeats the state, and exit costs 1 and reaches a zero-cost terminal. Find the true infimum and every real Bellman fixed point. Explain why existence of the proper exit policy alone does not justify discounted uniqueness or a residual certificate.

    Show the answer and reasoning

    With nonterminating zero-cost policies admitted, the true value is 0 and every real v<=1 is a Bellman fixed point. Restricting to nonnegative candidates leaves [0,1]. If admissibility separately requires eventual exit, the value changes to 1; a single proper policy still does not select it from the equation alone.

    For the usual unrestricted nonnegative total-cost interpretation, staying forever is an admitted policy with the well-defined series cost 0. No policy has negative cost, so the true infimum is 0, attained by that nonterminating policy. A policy that exits after any finite number of zero-cost waits pays exactly 1. Thus there is a proper terminating policy, but it is not the unrestricted minimizer. The nonterminal Bellman equation is v=min(v,1), with terminal value zero. If v<=1 the minimum is v, so it is fixed; if v>1 the right side is 1 and it is not fixed. This proves the complete real fixed-point set (-infinity,1], including negative algebraic solutions inconsistent with nonnegative actual costs. Even restricting to nonnegative candidates leaves infinitely many fixed points in [0,1]. For example the candidate v=1/2 has residual exactly zero but differs from the unrestricted actual value by 1/2. The map is nonexpansive on its flat branch, not a strict discounted contraction. The existence of one exit policy supplies no uniform absorption guarantee for every policy, since the infinite stay policy survives each finite block with probability one. If the problem instead declares almost-sure eventual exit a mandatory admissibility condition, every admitted policy has total cost 1 and that different value is 1. The same bare Bellman equation still has the other fixed points, so an additional policy-class or boundary-selection argument is needed. This explicit distinction prevents an unstated termination convention from being used as a false uniqueness or residual-error proof.

  3. Use the two-state model of W03 but approximate values (A,B)=(6,0). Find the greedy policy, its exact true cost and loss, and check the uniform-value-error performance bound. Distinguish value error, Bellman residual and actual policy loss.

    Show the answer and reasoning

    The approximate backup chooses exit. Its true value at A is 3 and its actual loss is 1. The candidate value error is 4, its residual is 3, and the uniform-value policy bound is 8.

    With w_A=6, w_B=0 and beta=1/2, the stay backup is 1+6/2=4 and the exit backup is 3. Thus exact greediness for this inaccurate table selects exit, followed by the zero-cost absorbing state B. Its actual expected total cost is 3, rather than the candidate number 6 or the rejected backup number 4. The true optimal values remain (2,0), because staying forever costs 2 and solves the actual Bellman minimum. The candidate sup-norm value error is delta=4. The implemented policy therefore has exact loss 3-2=1 at A and zero at B. A wrong greedy action has occurred here, unlike the smaller-error candidate in W03. The full Bellman backup of w is (3,0), so the candidate residual is ||w-Tw||=3. Its generic residual value bound is 3/(1-1/2)=6, which contains the actual error 4. The value-error policy theorem gives 2*beta*delta/(1-beta)=2*(1/2)*4/(1/2)=8, which contains the actual loss 1. The direct twice-residual policy estimate is 2*3/(1/2)=12 and is also valid but looser here. These bounds need not coincide or be tight. Value error compares tables, residual compares a table to its full backup, and policy loss compares an implementable policy cost to the true optimum; the calculation retains all three rather than treating one as a synonym for another.

  4. Use W01 with exact terminal values, approximate time 1 values (0,4,0), and approximate time 0 values chosen by their exact Bellman backup. Compute both residual maxima, the greedy path and its actual cost from x0=0, then compare the finite-horizon value and policy-loss certificates with the actual errors.

    Show the answer and reasoning

    The time 1 residual is 5, time 0 residual 0 and terminal error 0. The backed-up time 0 table is (0,1,0). From state 0 the greedy path waits then moves to 1, costing 5, versus optimal 2. Actual initial value error is 2 and policy loss 3; certificates are 5 and 10.

    The exact terminal table is (16,4,0), whose exact time 1 backup is (5,1,0). The supplied w1=(0,4,0) therefore has residual vector (-5,3,0), with sup norm 5. Its terminal table is exact, so terminal error is zero. This residual is an actual full-table quantity; it is not inferred from one simulated starting state. Back up w1 exactly at time 0. At state 0, waiting costs 0+0=0 while moving up costs 1+4=5. At state 1, moving down and moving up both cost 1, while waiting costs 4. At state 2, waiting costs 0 and moving down costs 5. Hence w0=(0,1,0), and its time 0 Bellman residual against w1 is exactly zero. Starting from state 0, the approximate greedy first action waits and leaves x1=0. The time 1 action uses the exact terminal table, so it then moves up with stage cost 1 and terminal penalty 4. The full path is 0, 0, 1 with total cost 5. The true optimal value at the start is 2, so actual policy loss is 3 and the initial approximate-value error is |0-2|=2. The finite-horizon residual sum is E0=0+5+0=5. Thus the value-error certificate is 5 and the greedy-policy-loss certificate is 10, both valid. The comparison of policy cost to w0 is exactly 5 here, showing why a zero current backup residual does not erase a bad next table. The complete certificate must propagate later residuals and terminal data through the horizon.

  5. There are two stages, no control choice and one fixed unknown theta in {0,1}. The costs are theta at stage 0 and 1-theta at stage 1. Compare the worst total cost for a single fixed theta with the stagewise maximization that permits different theta at each stage. State precisely which uncertainty model each recursion solves.

    Show the answer and reasoning

    A single fixed parameter gives worst total cost 1. Independent stagewise nature gives 2, attained by theta0=1 and theta1=0. Only the latter is rectangular uncertainty.

    For fixed theta=0 the two stage costs are 0 and 1, totaling 1. For fixed theta=1 they are 1 and 0, also totaling 1. Taking the maximum over the two admissible fixed parameters therefore gives exactly 1. There are no control actions or random transitions that could alter this direct finite comparison. A stagewise maximum can instead choose theta0=1 for the first cost and theta1=0 for the second cost, obtaining 1+1=2. This pair of choices is unavailable when a single theta must be used throughout. The independent recursion has enlarged the uncertainty set from the two compatible pairs (0,1),(1,0) to the full product of the individual stage possibilities. The rectangular Bellman proof permits nature to select each local uncertainty after the observed history, with no retained cross-stage parameter restriction. Under precisely that stronger model the value 2 is correct. It is a valid conservative upper bound for the coupled fixed-parameter model, but it is not that model’s exact worst cost. To preserve the fixed-parameter problem, a state or information set must retain which parameter choices remain jointly compatible; one cannot reset theta at the second stage. If the first realized cost reveals theta, that observation updates the compatible continuation rather than granting nature a new independent parameter. No theorem about ordinary fully observed Bellman recursion removes this coupling by itself.

  6. A one-stage state has actions a, b. The nominal costs are 0 and -2, while the true costs are 0 and 2. The data cover only a and match exactly there. Compare nominal and true optimal choices and the cost of the nominal policy in the true model. Explain why zero observed error is no uniform model certificate and identify the actual uniform cost error.

    Show the answer and reasoning

    The nominal optimum chooses b with predicted cost -2; the true optimum chooses a with cost 0. The nominal policy actually costs 2 and loses 2. The uniform cost error is 4, despite zero error on the only observed action.

    The nominal one-stage cost table is c_hat(a)=0, c_hat(b)=-2, so its unique minimizing action is b and its predicted value is -2. The true table is c(a)=0, c(b)=2, so its unique minimizing action is a and its true value is 0. Applying the nominally optimal policy in the true problem incurs cost 2, hence actual suboptimality 2. The available data cover only action a, where the two models match exactly. Nevertheless the actual uniform cost error over the common feasible action set is max(|0-0|,|2-(-2)|)=4, attained at b. The zero observed error therefore provides no bound of zero on the domain used by the optimizing minimum; the unobserved action is precisely the one chosen by the nominal model. For a one-stage problem, a valid uniform error delta_c=4 bounds the value difference by 4 and the nominal-policy loss by 8. The actual value difference is 2 and actual policy loss is 2, contained in those conservative estimates. There is no transition or discount factor to hide this discrepancy, so the example isolates action-domain model error. Negative nominal running cost is allowed in this finite one-stage table and does not make its value undefined. The invalid inference is treating observed fit as uniform certification, not the use of a negative number. A performance theorem would require independently justified bounds on every feasible comparison action, or an explicitly smaller admissible action class with its own changed optimum.

  7. Minimize (u-a)^T S(u-a) on [-1,1]^2 with a=(2,0) and S=[[2,1],[1,2]]. Compare Euclidean clipping with the true constrained minimum, compute the exact KKT certificate and cost, and explain its relevance to constrained LQR.

    Show the answer and reasoning

    Euclidean clipping gives (1,0), with cost 2. The unique metric minimizer is (1,1/2), with cost 3/2; its gradient is (-3,0), balanced by upper-bound multiplier 3 on u1<=1.

    The symmetric matrix S=[[2,1],[1,2]] has eigenvalues 1 and 3, so the objective q(u)=(u-a)^T S(u-a) is strictly convex. Euclidean clipping of a=(2,0) to the box gives (1,0), with displacement (-1,0) and cost 2. Strict convexity concerns the actual S-metric objective, not Euclidean distance to a. At u_star=(1,1/2), the displacement is (-1,1/2), S times it is (-3/2,0), and q(u_star)=3/2. The gradient 2S(u_star-a)=(-3,0). Write box inequalities u_j-1<=0 and -u_j-1<=0. The only positive multiplier needed is 3 on u1-1<=0; all others are zero. Stationarity, nonnegativity and complementarity hold exactly. For any feasible v, grad q(u_star)^T(v-u_star)=-3(v1-1)>=0. The convex supporting-plane inequality then proves q(v)>=q(u_star), and strict convexity gives a unique minimizer. This supplies a complete global certificate, rather than guessing a point with a smaller objective than clipping. An LQR square-completion stage has precisely an S-metric projection when its controls are constrained. A diagonal positive S with independent box bounds separates coordinatewise, but the off-diagonal coupling here changes the best second coordinate even though its unconstrained target was zero. Thus clipping an unconstrained feedback in an arbitrary coupled quadratic model is not a general constrained-optimality theorem.

  8. For x_next=2x+u and stage cost u^2 with Q=0, R=1, show that P=0 and P=3 both satisfy the scalar algebraic Riccati equation. Compare their feedback factors and values with the admissible uncontrolled input u=0. Explain exactly which positive-definiteness or terminal-limit premise prevents a false optimality claim.

    Show the answer and reasoning

    Both P=0 and P=3 solve the equation. Their gains are 0 and 3/2, with closed-loop factors 2 and 1/2. The stabilizing feedback costs 3*x0^2, whereas unrestricted u=0 costs 0. The missing state penalty allows a finite-cost nonvanishing terminal term.

    With Q=0, A=2, B=R=1, the scalar equation is P=4P-4P^2/(1+P)=4P/(1+P). Multiplication gives P(P-3)=0, so P=0 and P=3 are both valid nonnegative roots with positive denominators. This example cannot be rejected merely by checking the sign of P. For P=0, K=2P/(1+P)=0 and F=2. For P=3, K=6/4=3/2 and F=2-3/2=1/2. The second feedback has u_k=-(3/2)*(1/2)^k*x0 and cost (9/4)*x0^2*sum_(k>=0)(1/4)^k=3*x0^2. Thus it realizes the stabilizing root’s completed-square value. The admissible unrestricted input u=0 has stage cost zero at every time, hence total cost 0, even though x_k=2^k*x0 diverges for nonzero x0. Since all stage costs are nonnegative, this is the true unrestricted minimum. For the P=3 completion identity the competing terminal term 3*x_N^2 does not vanish, so dropping it in an infinite-horizon inequality would be invalid. Positive definite Q in the earlier verification theorem forces every finite-cost competing state sequence to be square summable and removes this failure. A suitable detectability argument or an explicit state-decay/transversality admissibility condition can instead change the premises, but it must be proved or declared. If state decay is imposed, the uncontrolled sequence is excluded and that is a different comparison class; stability of the P=3 feedback alone did not establish unrestricted optimality.

  9. For F=diag(1/2,2) and H=I, solve all symmetric solutions of F^T W F-W=-I and prove none is positive definite. Retain any free off-diagonal term rather than incorrectly asserting uniqueness.

    Show the answer and reasoning

    All symmetric solutions are W=[[4/3,b],[b,-1/3]] for arbitrary real b. None is positive definite; every determinant is -4/9-b^2<0. The free cross term reflects the eigenvalue product (1/2)*2=1.

    Write W=[[a,b],[b,c]] and F=diag(1/2,2). Direct multiplication gives F^T W F=[[a/4,b],[b,4c]], so the Lyapunov left side is [[-3a/4,0],[0,3c]]. Equating it to -I forces a=4/3 and c=-1/3 and places no restriction on b. Therefore every real symmetric solution has the displayed form with a free off-diagonal entry. It cannot be positive definite because the quadratic form on the second coordinate vector is -1/3. More strongly, its determinant is (4/3)*(-1/3)-b^2=-4/9-b^2<0, so each solution is indefinite. The cross equation vanished because the product of the two state factors is (1/2)*2=1. Thus the linear Lyapunov equation is nonunique here, and discarding b without explanation would not describe all its solutions. The stable-case uniqueness proof relied on powers of F tending to zero, a premise visibly absent in the factor-2 coordinate. The system has a genuine unstable eigenvalue and admits no positive quadratic energy with decrease -||x||^2. Solving a matrix equation entry by entry is therefore not a substitute for checking positivity and stability. The theorem correctly predicts failure of its positive-definite certificate rather than declaring every formal symmetric solution a Lyapunov function.

  10. For A=diag(1,2), B=(1,0)^T and x0=0, prove target (0,1) is unreachable for every finite horizon, derive the reachability rank and Gramian structure, and explain why the ordinary inverse energy formula is unavailable.

    Show the answer and reasoning

    For every N>=1, reachability rank is 1 and W_N=diag(N,0). The second state remains zero from x0=0, so target (0,1) is unreachable and the ordinary inverse energy formula is undefined.

    For every j>=0, A^j B=(1,0)^T because B has zero second component and the first diagonal factor is 1. Thus C_N has first row consisting of N ones and second row all zeros. Its range is exactly the first coordinate axis and its rank is 1 for every positive finite horizon. The Gramian is C_N C_N^T=[[N,0],[0,0]], which is singular. Direct dynamics give x2,k+1=2*x2,k, and the initial second coordinate is zero, so it stays zero for every possible input sequence. The desired second coordinate 1 can never be reached. This proves infeasibility before any energy minimization is attempted. The target difference z=(0,1)^T is outside the range of C_N, so no exact constrained input exists and no finite minimum energy for exact reaching is available. Inserting W_N^(-1) is impossible. A pseudoinverse applied without the range check would describe a projection/least-squares target problem, not make this infeasible exact target reachable. Other targets remain reachable despite singularity: for (a,0), the condition is sum_k u_k=a and the least energy is a^2/N, attained by equal inputs a/N through Cauchy-Schwarz. This distinction shows that deficient full-state controllability is neither universal infeasibility nor permission to ignore the particular target’s range condition.

  11. For A=diag(1/2,2) and C=(1,0), find the unobservable initial states and show that no observer gain L makes A-LC Schur stable. State what the separation certificate actually assumes.

    Show the answer and reasoning

    The unobservable subspace is span((0,1)). For L=(l1,l2)^T, A-LC=[[1/2-l1,0],[-l2,2]] always has eigenvalue 2, so no such observer can be Schur stable.

    The noiseless observation rows are C*A^k=((1/2)^k,0). Their stacked matrix has rank 1 for every positive observation horizon and annihilates exactly the second coordinate axis. Initial states differing only in that coordinate produce the same observations after subtracting known inputs, even though the hidden state component grows with factor 2. Let L=(l1,l2)^T. Then L*C=[[l1,0],[l2,0]], so A-LC=[[1/2-l1,0],[-l2,2]]. This is lower triangular, with eigenvalues 1/2-l1 and 2. No choice of its free entries can move the second eigenvalue into the open unit disk. The observer error dynamics therefore retain an unstable unobservable mode. The first eigenvalue may be placed stably by selecting l1, and l2 may change coupling, but neither corrects the missing second-state information. This is an actual obstruction to the assumed stable error matrix, not a failure to search long enough for a gain. The separation result is conditional on BOTH A-BK and A-LC being stable for the gains actually used. It does not assert every output pair admits the latter gain or that observability follows from the word observer. This exercise specifies no input matrix for a controller, so no unsupported controller-design or output-feedback existence conclusion is added.

  12. For x_dot=u, cost integral(x^2+u^2)+2*x(T)^2, test W=x^2 against HJB and terminal data. Derive the actual scalar finite-horizon Riccati solution in terms of remaining time and identify the incorrect conclusion from checking only the PDE.

    Show the answer and reasoning

    W=x^2 satisfies the interior minimized PDE but fails terminal data 2*x^2. The actual coefficient at remaining time tau is P(tau)=(3+exp(-2*tau))/(3-exp(-2*tau)), so V=P(tau)*x^2 and u=-P(tau)*x.

    For W=x^2, W_t=0 and min_u[x^2+u^2+2*x*u]=min_u(u+x)^2=0. Thus its interior minimized HJB equation holds exactly. At terminal time, however, W(T,x)=x^2 differs from the declared penalty 2*x^2 for every nonzero x. The zero PDE residual therefore cannot verify this terminal-value problem. Write tau=T-t. The actual scalar Riccati equation is dP/dtau=1-P^2 with P(0)=2. Separating, or differentiating the ratio, gives (P-1)/(P+1)=(1/3)*exp(-2*tau). Solving yields P(tau)=(3+exp(-2*tau))/(3-exp(-2*tau)). The denominator is at least 2 for tau>=0, so this is a finite positive solution on every finite horizon. At tau=0 it equals 2, and differentiating gives dP/dtau=-12*exp(-2*tau)/(3-exp(-2*tau))^2=1-P^2. The completed-square verification therefore gives the true value P(tau)*x^2 and feedback u=-P(tau)*x. For any finite remaining time the coefficient is greater than 1, approaching 1 only as tau tends to infinity. The candidate W=x^2 understates this finite-horizon value for nonzero x despite its zero interior residual. Its terminal discrepancy is x^2 and is not uniformly bounded on the entire real line, so a finite global terminal-error certificate cannot be invented either. On a separately admitted bounded state domain one could bound that error, but that would be a conditional approximation result, not exact terminal matching.

  13. For x_dot=u, |u|<=1, x(0)=0, horizon 1 and terminal cost -x(1)^2 with no running cost, verify the normal costate and Hamiltonian conditions for u=0. Exhibit a strictly better feasible control and identify the failed convex sufficiency premise.

    Show the answer and reasoning

    The zero input satisfies the normal costate and Hamiltonian minimum equations but costs 0; constant input 1 or -1 costs -1 and is globally better. The terminal penalty is concave, so convex sufficiency does not apply.

    For u=0, the state remains x=0 and terminal cost is -x(1)^2=0. The Hamiltonian is H=p*u, with no running cost. The adjoint equation is p_dot=-H_x=0 and terminal condition p(1)=phi_prime(x(1))=-2*x(1)=0. Hence p=0 throughout the interval. With this adjoint, H=0 for every feasible u in [-1,1], so the zero input indeed minimizes the Hamiltonian pointwise. It satisfies the stated NORMAL equations with the cost multiplier equal to one; it is not being dismissed as an invalid all-zero set of multipliers. These necessary conditions alone have simply failed to distinguish a minimum from a worse extremal. Constant u=1 reaches x(1)=1 and costs -1; constant u=-1 reaches -1 and has the same cost. Both are strictly better than 0. Since every feasible endpoint lies in [-1,1], its negative squared cost is at least -1, so these controls attain the actual global minimum as well as providing counterexamples. The terminal function phi(x)=-x^2 is concave rather than convex, so the supporting-terminal-plane inequality used by the sufficiency theorem has the wrong direction here. Hamiltonian affine convexity alone does not repair that missing terminal premise. The example demonstrates necessity without sufficiency, not a failure of the conditional convex theorem.

  14. For x_dot=u, |u|<=1, x(0)=0, horizon 1 and terminal cost x(1)^2 with no running cost, characterize all optimal controls by their integral. Give an interior optimal control and a bang-bang optimal control and explain why zero switching coefficient determines neither uniqueness nor a mandatory bang-bang form.

    Show the answer and reasoning

    All admitted controls with integral_0^1 u=0 are optimal. Both u=0 and a half-interval -1/+1 bang-bang control are optimal, with adjoint and switching coefficient zero. No unique or obligatory bang-bang form follows.

    The endpoint is x(1)=integral_0^1 u(t)dt because x(0)=0 and x_dot=u. Terminal cost is its square, so it is nonnegative and equals zero exactly when that integral is zero. Thus the full optimal-control set in the declared admitted class is precisely the feasible controls of mean zero, not just one guessed trajectory. The interior control u=0 throughout has mean zero and cost zero. Another feasible optimum is u=-1 for the first half and u=1 for the second half, whose signed integrals cancel. Its intermediate state differs from the zero trajectory, but no running or state penalty is present to distinguish them. At every such optimum x(1)=0, the terminal adjoint value 2*x(1) is zero. The adjoint is constant because H=p*u has no state dependence, so p=0 and the switching coefficient is zero at all times. Every feasible instantaneous control minimizes this Hamiltonian, consistent with rather than resolving the many globally optimal mean-zero choices. The affine-Hamiltonian selection theorem fixes a box endpoint only where its coefficient is nonzero. A zero coefficient leaves a singular first-order choice; it neither forces an interior action nor a bang-bang one. Adding a positive running control penalty would change the objective and could select a unique zero input, but that is not a conclusion about the present problem.

  15. For x_dot=1, y_dot=0, initial (0,0) and constraint h(x,y)=x^2-y<=0, verify the boundary gradient and instantaneous tangent inequality, then compute the trajectory and feasibility for positive time. Compare this with a uniform barrier derivative certificate.

    Show the answer and reasoning

    The initial gradient is (0,-1) and its directional derivative is 0, yet the exact trajectory (t,0) has h=t^2>0 for every t>0. The uniform barrier derivative premise fails; only pointwise tangency was checked.

    For h=x^2-y, the gradient is (2x,-1), which at (0,0) is (0,-1) and is nonzero. Dotting it with the vector field (1,0) gives zero, so the first-order right-tangent necessary inequality grad h dot f<=0 is satisfied at the initial boundary point. No rank degeneracy is responsible for this particular zero derivative. The unique global solution from the origin is x(t)=t, y(t)=0. Substitution gives h(x(t),y(t))=t^2, strictly positive at every positive time. It immediately violates h<=0 despite the zero initial directional derivative; the second-order change was not controlled by that one-point test. With B=-h=y-x^2, one has B(0)=0 and B_dot=-2x along this field. On the actual trajectory at t>0, B=-t^2 and B_dot=-2t. For every kappa>=0, the claimed barrier inequality B_dot>=-kappa*B would require -2t>=kappa*t^2, which is false. Thus the integrating-factor theorem has not had its uniform premise satisfied. A tangent requirement checked over an entire boundary with suitable flow hypotheses is a different viability argument; this example contradicts only the one-point sufficiency claim. It also shows why a formal costate or HJB optimization does not establish hard state feasibility. The barrier certificate must be verified for the actual field on an independently admitted working domain.

  16. For x_next=2x+u and receding-horizon N=1 objective x^2+u^2 with no terminal cost or constraint, solve the optimization exactly and derive the resulting closed-loop trajectory. Explain which terminal/decrease assumptions of the MPC theorem are missing.

    Show the answer and reasoning

    The exact one-step optimizer is u=0, so the receding-horizon trajectory is x_k=2^k*x0 and is unstable for nonzero x0. Its value increases by 3*x^2 each step. The terminal decrease premise is missing.

    At a current state x, the horizon-one objective is x^2+u^2, with no terminal penalty or constraint. The current state term is fixed during this minimization and u^2 has its unique global minimum at u=0. Thus even an exact solve, with no numerical error, selects no corrective input. Applying the same first decision repeatedly gives x_(k+1)=2*x_k and therefore x_k=2^k*x0. A nonzero initial state diverges. The one-step value V1(x)=x^2 is finite at each current state, but along this policy V1(next)-V1(x)=4*x^2-x^2=3*x^2>0 for nonzero x. It does not satisfy the Lyapunov decrease required by the MPC certificate. Taking zero terminal cost on the whole real line cannot provide the terminal decrease inequality. That condition would demand x^2+kappa_f(x)^2+0<=0 for every terminal state, impossible for any nonzero x. There is no invariant terminal-controller construction with the necessary cost decrease hidden in the present formulation. The positive state running penalty is therefore not enough when the horizon cannot see how the current input changes future penalized states. A changed horizon, terminal penalty or terminal constraint may alter the result, but would be a different design with its own proof. The example isolates a missing structural premise rather than blaming inexact optimization.

  17. For x_dot=-2x, derive the exact sampled flow and explicit-Euler factor, characterize all positive Euler steps giving asymptotic stability, and compare h=3/2 with the exact flow. State the finite-horizon error conclusion separately from asymptotic stability.

    Show the answer and reasoning

    The exact sampled factor is exp(-2h). Euler has factor 1-2h and is asymptotically stable exactly for 0<h<1. At h=3/2 it gives (-2)^k*x0, while exact samples give exp(-3k)*x0.

    The exact solution is x(t)=exp(-2t)*x0, so samples at step h have factor exp(-2h), strictly between zero and one for every positive h. Explicit Euler instead gives z_(k+1)=z_k-2h*z_k=(1-2h)*z_k. These are different update maps even though Euler uses the correct continuous vector field. A real scalar linear update is asymptotically stable exactly when its factor has magnitude less than one. Solving -1<1-2h<1 gives 0<h<1. At h=1 the factor is -1 and a nonzero state oscillates without decay. For h>1 its factor magnitude exceeds one and the state grows; h=0 makes no time advance and is not an asymptotically stable update. At the requested h=3/2, Euler factor is -2, giving z_k=(-2)^k*x0. The exact trajectory at the same times t_k=(3/2)k is exp(-3k)*x0 and decays. For small h, the exact one-step factor differs from Euler by 2h^2+O(h^3), so local consistency still holds; it did not guarantee stability at this fixed large step. The finite-horizon error theorem gives an O(h) global estimate as h tends to zero with fixed T and the admitted Lipschitz/defect bounds, plus any input errors. It is not a claim of a uniform estimate over arbitrary T tending to infinity or of stability for every h. State constraints and a sampled physical implementation would require their own domain and flow-error checks as well.

  18. On horizon 2 assume an admitted smooth candidate with residual magnitude<=1/10, terminal error<=1/20 and a feasible feedback whose Hamiltonian error<=1/5. Derive the value interval and policy-loss bound. Then include uniform running-cost error 1/100, vector-field error 1/50 and candidate gradient bound 3. Give the changed bounds and explain why sample-only evidence or lost feasibility would invalidate their interpretation.

    Show the answer and reasoning

    Under the admitted minimization/flow premises, E=1/4 and Z=2/5, so V is within 1/4 of W and policy loss is at most 9/10. Model error adds 7/50 to E, giving E_true=39/100 and loss at most 59/50. Without feasible arbitrarily accurate minimization, retain the wider policy-based value upper bound stated in the solution.

    The residual integrates to 2*(1/10)=1/5 and the terminal error adds 1/20, so E=1/4. Hamiltonian gap integrates to Z=2*(1/5)=2/5. Under P24’s actual feasible exact or arbitrarily accurate Hamiltonian-selection conditions, the value lies in [W-1/4,W+1/4]. The particular feasible approximate feedback costs at most W+E+Z=W+13/20 and loses at most 2E+Z=1/2+2/5=9/10. If the supplied data establish only this ONE feasible gap-bounded feedback, with no feasible arbitrarily accurate minimizing controls, the universal lower bound is still W-1/4 and its policy gives value upper bound W+13/20. The symmetric upper W+1/4 needs the additional minimization/flow premise rather than being inferred from a PDE label. The same policy-loss bound 9/10 remains valid from its direct upper cost and the universal lower value. For the extra model uncertainty, the uniform Hamiltonian error is D=1/100+3*(1/50)=7/100 per unit time. Over horizon 2 it adds 7/50 to the error integral, so E_true=1/4+7/50=39/100. With the admitted true-model minimization premises, V_true lies in [W-39/100,W+39/100]. For the nominally gap-bounded implemented policy, the direct same-action comparison gives cost at most W+39/100+2/5=W+79/100 and loss at most 2*(39/100)+2/5=59/50. If only that policy is feasible, use W+79/100 as the value upper bound instead of the symmetric one. All residual, cost, drift and gradient estimates must be uniform on the common true comparison domain, with terminal discrepancy and physical units consistent. Sample-only evidence cannot establish these sup bounds; a lost feasible true trajectory defeats the implementable-policy upper argument entirely. No observed fit or solver tolerance is being promoted to model truth.

What to carry forward

  • A sufficient state and causal observation timing are part of the mathematical problem. Feedback, independent randomization and advance knowledge are different information classes.
  • Finite recursion needs feasible continuations; discounted contraction needs a discount below one. Undiscounted uniqueness needs stronger hypotheses than one terminating policy.
  • Residuals certify only their actual full operator and domain. Value error, approximate policy loss, model error and sampled fit have different meanings and scales.
  • Square completion gives exact LQR values under its declared penalties and constraints. A stabilizing algebraic root still needs its optimality and terminal-tail argument.
  • Reachability, observation, gain existence and stability answer separate questions. Positive energy bounds and invariant domains support quantitative conclusions.
  • HJB verification needs the actual terminal data and an admitted implementing flow. Nonsmooth tests retain the PDE sign convention, and necessary costate conditions alone are insufficient.
  • Repeated optimization is stable only under the relevant terminal, feasibility and value-bound conditions. A one-point tangent test or a formal barrier inequality is not an implementation proof.
  • Finite-horizon numerical accuracy does not imply stable discrete updates. Model-transfer certificates remain conditional on uniform errors, coherent units and the common feasible true-flow domain.

References

Sources for the concepts and teaching approaches in this article.

  1. Finite dynamic programming and causal informationDimitri P. BertsekasPrimary · PDFocw.mit.eduRead source
  2. Discrete Riccati recursions and reachabilityJames B. Rawlings, David Q. Mayne and Moritz M. DiehlPrimary · PDFsites.engineering.ucsb.eduRead source
  3. Admissible controlled differential equationsDaniel LiberzonPrimary · PDFliberzon.csl.illinois.eduRead source
  4. Zeroing barriers and the admitted flow domainAaron D. Ames, Xiangru Xu, Jessy W. Grizzle and Paulo TabuadaPrimaryarxiv.orgRead source