(* Title: Deriving class instances for datatypes Author: Christian Sternagel and René Thiemann <christian.sternagel|rene.thiemann@uibk.ac.at> Maintainer: Christian Sternagel and René Thiemann License: LGPL *) section ‹Comparisons› subsection ‹Comparators and Linear Orders› theory Comparator imports Main begin text ‹Instead of having to define a strict and a weak linear order, @{term "((<), (≤))"}, one can alternative use a comparator to define the linear order, which may deliver three possible outcomes when comparing two values.›