The question is to prove this in the axiomatic system S:
$$(\forall x)(\forall y)((A_x \rightarrow R_{xy}) \rightarrow \neg A_y) \vdash (\forall x)(R_{xx} \rightarrow \neg A_x) $$
The problem is, I don't have any idea how to begin. The axioms about quantors can be used, in addition to the following axioms, but for this example I don't know with which axiom to start first:
$A\rightarrow (B \rightarrow A)$
$(A\rightarrow (B\rightarrow C)) \rightarrow ((A\rightarrow B)\rightarrow (A\rightarrow C))$
$(\lnot A\rightarrow \lnot B)\rightarrow (B\rightarrow A)$
Hint
1) $(∀x)(∀y) \ ((Ax → Rxy) → ¬Ay)$ --- premise
2) $(Ax → Rxx) → ¬Ax$ --- from Ax: $\forall x \alpha \to \alpha[t/x]$ and 1) by modus ponens twice
3) $Rxx$ --- assumed [a]
4) $Rxx \to (Ax \to Rxx)$ --- Ax.1
5) $Ax \to Rxx$ --- from 3) and 4) by mp
6) $¬Ax$ --- from 5) and 2) by mp
7) $Rxx \to ¬Ax$ --- from 3) and 6) by Deduction Th
To be more "formal", we have to omit 1) and 3), and step 2) is:
2') $(∀x)(∀y) \ ((Ax → Rxy) → ¬Ay), Rxx \vdash (Ax → Rxx) → ¬Ax$
while step 4) is:
4') $\vdash Rxx \to (Ax \to Rxx)$
and so on :
5') $(∀x)(∀y) \ ((Ax → Rxy) → ¬Ay), Rxx \vdash Ax \to Rxx$
6') $(∀x)(∀y) \ ((Ax → Rxy) → ¬Ay), Rxx \vdash ¬Ax$
from which, by Deduction Th : if $\Gamma, \alpha \vdash \beta$, then $\Gamma \vdash \alpha \to \beta$, where $\Gamma = \{ \ (∀x)(∀y) \ ((Ax → Rxy) → ¬Ay) \ \}$ :
and finally: