Let I be a non-empty, compact interval (closed and bounded). A partition of
I is a finite collection {I1,I2,…,In} of almost disjoint,
non-empty, compact sub-intervals whose union is I.
A partition is determined by the endpoints of all sub-intervals:
a=x0<x1<⋯<xn=b.
A partition can be denoted by:
its intervals - P={I1,I2,…,In}
the endpoints of its intervals - P={x0,x1,…,xn}