Text this: Idempotents in intensional type theory