Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
@DanDoel I don't think I understand what you are saying there. Do you agree that even in an intuitionistic meta-theory, the set $\{0,1\}$ and the set $\{\varnothing,\{1\}\}$ are isomorphic? In that case the important point is that we don't get to assume we have proofs about statements like $M(p) = y$. Re-interpreting the co-domain of $M$ in some other form seems like a matter of style.
I tried to semi-formalize the first part of your answer, as far as I understood it, and updated my question with the results. Can you let me know if I said anything wrong, or if I didn't get your meaning properly? Thanks.