For people that end up in this question looking for set-like interval library, I find portion library to be very helpful.