Fix an admissible control α and write Y:=Xα for its controlled state and βr:=A(r)Yr+B(r)αr (componentwise, matrix-vector products) for the drift; each component family of β is mean-square continuous by claims 1-2 of Basic Properties of the Mean-Square Riemann Integral. Throughout we use the componentwise algebra of dot products, matrix-vector products, and transposes from claim 3 of Componentwise Estimates, Transpose Identities, and Indefinite Riemann Integrals, and the identity (UV)z=U(Vz) for matrices U,V and vectors z, which follows from the defining index formulas of the matrix product and matrix-vector product by exchanging finite sums.
Step 1: evolution of the second moments. For 1≤i,j≤l set Mij(t):=E[YtiYtj]. Since Y is a mean-square solution, Yti is almost surely equal, at each t, to ξi+∫0tβridr+∑j′∫0tεij′(r)dWrj′, i.e., to a process of the integral form of Second-Moment Evolution for Processes of Integral Form with a=0, b=T (so that its hypothesis 0≤a<b holds). We instantiate that lemma with its two initial values taken to be ξi and ξj, its two drift families taken to be (βri)r and (βrj)r, its two processes taken to be versions of Yi and Yj, and its deterministic Wiener integrands taken to be εij′ and εjj′ (1≤j′≤m); the symbols α, Y, Z appearing in that lemma's statement are placeholders unrelated to the control α and the Riccati solution Z of the present theorem.
We verify the orthogonality hypothesis of claim 1 of Second-Moment Evolution for Processes of Integral Form for each pair (i,j): for 0≤s<t≤T and each j′, the Wiener-integral increment ∫0tεij′dWj′−∫0sεij′dWj′ has vanishing covariance with Ysj by claim 3 of Brownian Increments After a Time are Independent of the Model Past, because Ysj is almost surely equal to an Hs-measurable square-integrable random variable: indeed Ysj=Xsj+csj almost surely by claim 2 of Superposition Decomposition of the Controlled State and Observations; Xsj is a mean-square limit of finite linear combinations of the ξi′ and the Wrj′′ (r≤s) by claim 1 of Gaussian and Span Structure of the Linear-Gaussian State-Observation Model, all of which are Hs-measurable, so Xsj is almost surely equal to an Hs-measurable square-integrable random variable by claim 2 of The Closed Mean-Square Span of a Family of Random Variables; and csj is almost surely equal to a Gs-measurable one by claim 3 of Superposition Decomposition of the Controlled State and Observations, with Gs⊆Hs as noted in Brownian Increments After a Time are Independent of the Model Past. Both the orthogonality hypothesis and the conclusion of claim 1 of Second-Moment Evolution for Processes of Integral Form involve the processes only through covariances and expectations at fixed times, which are unchanged when a random variable is replaced by an almost surely equal one; the lemma therefore applies to our versions and gives: each Mij is continuous and
Mij(t)=Mij(0)+∫0tμij(r)dr,μij(r):=E[βriYrj]+E[Yriβrj]+Θij(r),
with μij continuous, since ∑j′εij′(r)εjj′(r)=(ε(r)ε(r)⊤)ij=Θij(r). Also Mij(0)=E[ξiξj], since Y0=ξ almost surely (the integrals over the degenerate interval vanish).
Step 2: the backward equation in indefinite form. Write ζ(r):=A(r)⊤Z(r)+Z(r)A(r)−(Z(r)B(r)+V(r))R(r)−1(Z(r)B(r)+V(r))⊤+Q(r); its entries are continuous (Sums and Products of Continuous Real-Valued Functions, with the continuity of R−1 from the statement). By claim 4 of Componentwise Estimates, Transpose Identities, and Indefinite Riemann Integrals, ∫tTζij=∫0Tζij−∫0tζij, so the backward Riccati equation reads entrywise
Zij(t)=Zij(0)+∫0t(−ζij(r))dr(0≤t≤T),
and evaluating the original equation at t=T gives Z(T)=F by the degenerate-interval convention.
Step 3: product rule. Set φ(t):=∑i,jZij(t)Mij(t). Applying claim 1 of Product Rule and Reflection for Indefinite Riemann Integrals to each pair (with the two functions there equal to Zij and Mij) and summing (linearity of the Riemann integral for continuous integrands, via Agreement of the Riemann and Lebesgue Integrals for Continuous Functions on a Closed Interval and Linearity and Monotonicity of the Lebesgue Integral),
φ(T)=φ(0)+∫0Ti,j∑(−ζij(r)Mij(r)+Zij(r)μij(r))dr.
Step 4: algebraic identification of the integrand. Fix r and drop it from the notation. By the index formulas of the dot product and matrix-vector product and linearity of the expectation, ∑i,jζijMij=E[Y⋅(ζY)], ∑i,jZijE[βiYj]=E[β⋅(ZY)], and ∑i,jZijE[Yiβj]=E[Y⋅(Zβ)], as in claim 1 of Expected Bilinear Forms: Trace Formula and Mean-Square Continuity. Since Z is symmetric, β⋅(ZY)=(Z⊤β)⋅Y=(Zβ)⋅Y=Y⋅(Zβ), so
i,j∑Zijμij=2E[Y⋅(Zβ)]+i,j∑ZijΘij=2E[Y⋅(Zβ)]+tr(ZΘ),
using claim 4 of Basic Properties of the Trace and the symmetry of Z for ∑i,jZijΘij=tr(Z⊤Θ)=tr(ZΘ). Substituting β=AY+Bα (almost surely) and using Z(AY)=(ZA)Y, Z(Bα)=(ZB)α:
E[Y⋅(Zβ)]=E[Y⋅((ZA)Y)]+E[Y⋅((ZB)α)].
Also, pointwise, Y⋅((A⊤Z)Y)=((A⊤Z)⊤Y)⋅Y=((ZA)Y)⋅Y (using (A⊤Z)⊤=Z⊤A=ZA), so E[Y⋅((A⊤Z)Y)]=E[Y⋅((ZA)Y)]. Hence, expanding ζ,
i,j∑(−ζijMij+Zijμij)=2E[Y⋅((ZB)α)]+tr(ZΘ)+E[Y⋅(ΞY)]−E[Y⋅(QY)],
where Ξ:=(ZB+V)R−1(ZB+V)⊤ (the two terms E[Y⋅((ZA)Y)] from μ cancel against −E[Y⋅((A⊤Z)Y)]−E[Y⋅((ZA)Y)] from −ζ).
Step 5: assembling the cost. By The Linear-Quadratic-Gaussian Cost Functional and Step 2 (Z(T)=F, so E[YT⋅(FYT)]=∑i,jFijMij(T)=φ(T) by claim 1 of Expected Bilinear Forms: Trace Formula and Mean-Square Continuity),
J[α]=∫0T(E[Yt⋅(QYt)]+2E[Yt⋅(Vαt)]+E[αt⋅(Rαt)])dt+φ(T).
Inserting the expression for φ(T) from Steps 3-4 and cancelling E[Y⋅(QY)], and combining 2E[Y⋅(Vα)]+2E[Y⋅((ZB)α)]=2E[Y⋅((ZB+V)α)] (componentwise distributivity),
J[α]=φ(0)+∫0Ttr(Z(t)Θ(t))dt+∫0T(E[αt⋅(Rαt)]+2E[Yt⋅((ZB+V)αt)]+E[Yt⋅(ΞYt)])dt,
all integrand splittings being justified since each summand is continuous in t (claim 2 of Expected Bilinear Forms: Trace Formula and Mean-Square Continuity) and the Riemann integral of continuous functions is linear (Agreement of the Riemann and Lebesgue Integrals for Continuous Functions on a Closed Interval, Linearity and Monotonicity of the Lebesgue Integral).
Step 6: completing the square. Fix t and write q:=αt−ΓYt. Pointwise on Ω, using RΓ=−(ZB+V)⊤ (from RR−1=I and associativity), Γ⊤=−(ZB+V)R−1 (transpose rules and symmetry of R−1, from Invertibility of Symmetric Positive Definite Matrices), and Γ⊤RΓ=(ZB+V)R−1RR−1(ZB+V)⊤=Ξ:
q⋅(Rq)=αt⋅(Rαt)−αt⋅(RΓYt)−(ΓYt)⋅(Rαt)+(ΓYt)⋅(RΓYt)=αt⋅(Rαt)+2Yt⋅((ZB+V)αt)+Yt⋅(ΞYt),
where we used −αt⋅(RΓYt)=αt⋅((ZB+V)⊤Yt)=((ZB+V)αt)⋅Yt and the symmetric computation for the third term, and (ΓYt)⋅(RΓYt)=Yt⋅(Γ⊤RΓYt), all by claim 3 of Componentwise Estimates, Transpose Identities, and Indefinite Riemann Integrals. Taking expectations, the last integrand of Step 5 equals E[q⋅(Rq)] at each t; this function of t is continuous by claim 2 of Expected Bilinear Forms: Trace Formula and Mean-Square Continuity, the components of (αt−Γ(t)Yt)t being mean-square continuous (claims 1-2 of Basic Properties of the Mean-Square Riemann Integral).
Step 7: the initial term. By claim 1 of Expected Bilinear Forms: Trace Formula and Mean-Square Continuity applied to ξ and the symmetric matrix Z(0), and since Mij(0)=E[ξiξj] (Step 1),
φ(0)=E[ξ⋅(Z(0)ξ)]=tr(Z(0)P0)+E[ξ]⋅(Z(0)E[ξ]),
P0 being exactly the covariance matrix of ξ (claim 1 of The Kalman-Bucy Filter Equation and Its Solution). Combining Steps 5-7 yields the asserted formula. □