I have a question about the redundancy of the axiom schema of specification that mentioned in the Wikipedia article Zermelo–Fraenkel set theory. I am sure that in some formulations of ZFC, this axiom actually follows from the axiom schema of replacement and the axiom of the empty set. However, in the formulation in the article above, it seems not to be true, contrary to what is stated in the article. I cannot prove that my suspicion is true because it is too difficult for me. I found one related article but it doesn't completely prove my suspicion. Let me explain in detail.
In the article, the axiom schema of specification is written as:
$$\textsf{SPE}\ \forall z \forall w_1 \forall w_2 \dots \forall w_n \exists y \forall x [ x \in y \Leftrightarrow ((x \in z) \land \varphi(x, w_1, w_2, \dots, w_n, z))]$$
where $\varphi$ is any formula in the language of ZFC with all free variables among $x, y, w_1, \dots, w_n$ ($y$ is not free in $\varphi$),
and the axiom schema of replacement is written as:
$$\textsf{REP}\ \forall A \forall w_1 \forall w_2 \dots \forall w_n[\forall x (x \in A \Rightarrow \exists ! y\ \varphi) \Rightarrow \exists B \forall x(x \in A \Rightarrow \exists y (y \in B \land \varphi))]$$
where $\varphi$ is any formula in the language of ZFC whose free variables are $x, y, A, w_1,\dots, w_n$ so that in particular $B$ is not free in $\varphi$.
And the axiom of the empty set is not formulated in the article, but it should be written as:
$$\textsf{EMP}\ \exists X \forall x [\lnot(x \in X)].$$
For the discussion below, I want to introduce another formulation of the axiom schema of replacement. Let the following formulation written as $\textsf{REP'}$, the apodosis of which is different from that of $\textsf{REP}$:
$$\textsf{REP'}\ \forall A \forall w_1 \forall w_2 \dots \forall w_n[\forall x (x \in A \Rightarrow \exists ! y\ \varphi) \Rightarrow \exists B \forall y(\exists x (x \in A \land \varphi) \Leftrightarrow y \in B)],$$
where $\varphi$ is any formula in the language of ZFC whose free variables are $x, y, A, w_1,\dots, w_n$ so that in particular $B$ is not free in $\varphi$.
Also let the axioms other than $\textsf{SPE}$ and $\textsf{REP}$ in the article (Axiom of extensionality, Axiom of pairing, Axiom of union, Axiom of infinity, Axiom of power set, Axiom of well-ordering ($\textsf{AC}$)) written as $\textsf{ZFC'}$.
Now we can move to the point of my question. I am sure that all the axioms which $\textsf{SPE}$ generates are theorems of $\textsf{ZFC'} + \textsf{REP'}$. One can prove it in the almost same way as in the Wikipedia article Axiom schema of replacement. However, I suspect that $\textsf{SPE}$ is indepent from $\textsf{ZFC'} + \textsf{REP}$ (more accurately, "some of the axioms which $\textsf{SPE}$ generates are"), in contrast to what is stated in the article:
In some other axiomatizations of ZF, this axiom is redundant in that it follows from the axiom schema of replacement and the axiom of the empty set.
(With the limitation of "In some other axiomatizations of ZF", I should not say that it is clearly incorrect even if my suspicion is true, but I think that it should be replaced by more accurate explanation.) The reason is that essentially, the proof of $\textsf{REP} \vdash \textsf{REP'}$ seems to depend on $\textsf{SPE}$.
It exceed my capability to prove that a proposition or propositions are independent from an axiom system. Then I would like someone to prove or disprove this. I would like to know it is related to whether $\textsf{AC}$ is assumed (I think it is unrelated).
Also I found an article which seems to present an result which almost proves my suspicion. In IN PRAISE OF REPLACEMENT, it is stated that
Levy showed that Extensionality, Empty Set, Pairing, Union, Power Set, a parameter-free version of Separation, and $\text{R}^\leftarrow$ together do not imply Replacement.
where $\text{R}^\leftarrow$ refers what is almost same as $\textsf{REP}$. However, I cannot prove my original question even with this fact (in other words, I cannot prove that the axiom of infinity and axiom of choice are unrelated), so I would like help.
If my suspicion is true, I believe that the explanation of the redundancy should be replaced by something like "$\textsf{SPE}$ is redundant if $\textsf{REP}$ was $\textsf{REP'}$ and $\textsf{EMP}$ was also assumed".
Thank you.