Measure Construction by Extension in Dependent Type Theory with Application to Integration