Abstract
We extend and clarify some of observations due to Barron and Jensen concerning the relation between subdifferentials and superdifferentials of a function and extend the comparison principle for semicontinuous solutions of Hamilton–Jacobi equations with convex Hamiltonians to that in infinite-dimensional Hilbert spaces.