I am intrigued about two points given in an answer to a similar question (https://physics.stackexchange.com/a/38198/262985).
On one hand, it is stated that wavefunctions inside the well (excluding its boundaries) are $C^1$, and may have a discontinuity at the well boundaries (which I take to mean that either the function, or its derivative may be discontinuous there). Is there a simple/published proof?
On the other hand, an example of a discontinuous wavefunction is given as $Sign(x)$ inside the well. It is later dismissed as having an infinite kinetic energy. The second derivative (proportional to the kinetic energy operator) is $2 delta'(x)$ - twice the derivative of the Dirac distribution. If I integrate the product of this second derivative of the wavefunction with the wavefunction itself, the result, which I take to be proportional to the expectation of the kinetic energy, is zero (according to Wolfram calculator), i.e., not unbounded. what is the catch?