Degrees of comparison theory