A common proof for the principle of explosion (also known as ex falso quodlibet)
$$ p, \neg p \vdash q $$
utilizes disjuncive syllogism, but I am trying to prove the principle of explosion using only the primitive rules of propositional logic. I have seen some proofs online as follows:
$\{ 1 \} \:\:\:\: $ $1. p \:\:\:\:\:\:\:\:\:\:\:\:\:\:$ premise
$\{ 2 \} \:\:\:\:$ $2. \neg p \:\:\:\:\:\:\:\:\:\:\:$ premise
$\{ 3 \} \:\:\:\:$ $3. \neg q \:\:\:\:\:\:\:\:\:\:\:$ assumption for RAA
$\{ 1,2 \}$ $4. p \wedge \neg p \:\:\:\:$ $1,2$ &I
$\{ 1,2 \}$ $5. \neg \neg q \:\:\:\:\:\:\:\:$ $3,4$ RAA
$\{ 1,2 \}$ $6. q \:\:\:\:\:\:\:\:\:\:\:\:\:\:$ $5$ DNE
However, I have the understanding that RAA (proof by contradiction) requires the contradiction (on line $4$) to depend on the assumption (on line $3$) in order to infer the negation of the assumption (on line $5$). But the dependency numbers associated with line $4$ do not include the assumption on line $3$, so I have trouble understanding why this proof is correct. Can someone clear this up for me? Thanks!
Although it is appropriate to talk over a specified system, there are some threads of ideas running through the variety of systems.
With this reservation remarked, it can be said that there are two assumption discharge rules:
Conditional introduction: Assume $\phi$, derive $\psi$ and $\phi\rightarrow\psi$.
Negation introduction: Having derived $\psi$ and $\neg\psi$ (in the question expressed as $p\wedge\neg p$ ), assume $\phi$ and derive $\neg\phi$.
The conjunction $p\wedge\neg p$ is to state that a contradiction has occurred. However, not every system requires this step.