Suppose you have a 2-dimensional Euclidean space where one dimension goes left and right and the other dimension goes up and down where one of the units of length is the meter. Furthermore, suppose there's also a time dimension and one of the units of time is the second, and there's a gravitational field pulling down with acceleration $g$. Furthermore, suppose height is absolute. Furthermore, suppose there's a line in that plane that doesn't change with time whose direction is continuous with position on the line and going in one direction along the line, the component of your velocity going right will always be nonnegative. Now we can define speed along the line for any continuously differential movement on the line. Now let's suppose also that there's a point confined to that line of certain positive mass $m$ which follows Newtonian physics and that point always has just 2 forces acting on it, one going down with magnitude $mg$ and one acting perpendicularly to the part of the track it's on. That makes sense only when the direction of the line is differential let alone continuous at that point. When that's the case, we can show that its acceleration along the track is $-g\sin\theta$ where $\theta$ is the angle of the direction of the track above horizontal so $\theta$ is positive in parts going up and negative in parts going down and is confined between $\frac{\pi}{2}$ and $\frac{-\pi}{2}$.
Let's instead drop the criteria that the slope of the line is differentiable and require only that it's continuous and replace the criteria of the gravitational force and normal force which cannot be defined satisfying those properties with the criterion just simply that its acceleration along the track is $-g\sin\theta$. I define the acceleration along the track as the second derivative with time of how far along the line the point is. I realize that although that's always defined, the actual acceleration of the point, the derivative of its velocity with respect to time, could be undefined at some times. Let's define its potential energy as $mgh$ and it's kinetic energy as $\frac{mv^2}{2}$. Let's define its total mechanical energy as its potential energy plus its kinetic energy. My question is
Can we show that its total mechanical energy is always conserved?