Verification

The date transformations and calculations are verified relative to a intuitive specification of next_date.

It is proved that the following diagrams commute:

GregorianDateTransformationOrdinaleDateTransformationModified Julian Day
dt=> dateToOrdinalDate =>odt=> fromOrdinalDate =>mjd
⇓ next_dateproof⇓ next_dateproof⇓ add 1
dt<= ordinalDateToDate <=odt<= toOrdinalDate <=mjd