Dependently typed abstract intervals