I meant to assign to my class the following homework problem:
If $u\in C^2((0,T)\times \Omega) \cap C^0([0,T]\times\bar{\Omega})$ where $\Omega$ is an open, bounded domain, is such that $\partial_t u - \triangle u \leq - \epsilon < 0$ for some constant $\epsilon > 0$, then $u$ cannot have a local maximum on the set $(0,T)\times \Omega$.
This follows from simple second derivative considerations. I made a typo, however, and asked my students to prove that
... $u$ cannot have a local maximum on the set $(0,T\color{red}{]} \times \Omega$.
Question: Is the version with the typo still true? Or is there a counterexample?
Remark: If we assume that $\nabla u$ and $\nabla^2 u$ (the spatial gradient and Hessian) both extend continuously to $\{T\} \times \Omega$, then the second derivative test argument also goes through. So any potential counterexample must be non-regular at time $T$.
Remark 2: the potential lack of regularity also means we cannot directly apply the mean value integral (e.g. that which is given in Evans' textbook).