"The Machinist" has an ending that provides a satisfactory, or at least a believable, explanation for its mysteries and contradictions. But the movie is not about the plot, and while the conclusion explains Trevor's anguish, it doesn't account for it. The director Brad Anderson, working from a screenplay by Scott Kosar, wants to convey a state of mind, and he and Bale do that with disturbing effectiveness. The photography by Xavi Gimenez and Charlie Jiminez is cold slates, blues and grays, the palate of despair. We see Trevor's world so clearly through his eyes that only gradually does it occur to us that every life is seen through a filter.
We get up in the morning in possession of certain assumptions through which all of our experiences must filter. We cannot be rid of those assumptions, although an evolved person can at least try to take them into account. Most people never question their assumptions, and so reality exists for them as they think it does, whether it does or not. Some assumptions are necessary to make life bearable, such as the assumption that we will not die in the next 10 minutes. Others may lead us, as they lead Trevor, into a bleak solitude. Near the end of the movie, we understand him when he simply says, "I just want to sleep."