Internalising modified realisability in constructive type theory (Logical Methods in Computer Science, 2005)