When using Data.Type.Ord, there are many facts one intuitively expects to hold that GHC is not clever enough to infer.
We rectify this situation with TotalOrder and related typeclasses that not only enable comparison of singletons, but also provide axiomata allowing one to safely prove such facts to GHC.
Due to GHC/Haskell specific details and the expression of equivalence and ordering in terms of Compare, the phrasing of the axiomata is a little different than usual—many are reduced to consistency conditions with ~ and the following definitions.
With the above at our disposal, we can prove general, reusable facts.