Say I want to prove the axiom(s) of collection from the axiom(s) of replacement. If you have the axiom of foundation, then you can use Scott's trick to do this.
But suppose I'm working in a context without the axiom of foundation. How can I prove it then? It certainly seems like it ought to be possible using the axiom of choice instead. In particular, if you allow the axiom of global choice, it's quite easy. And if it's possible with global choice, it certainly ought to be possible with ordinary local choice! And yet so far I have not been able to make it work (again, without using the axiom of foundation).
How can you prove collection from replacement, without using foundation, and just using ordinary, local choice?
Thanks all!