On book "A modern introduction to quantum field theory" by Maggiore, page 133, he mentions that $S(x-y)$ defined as: $$S_{ab}(x-y)\equiv\langle 0|T\{\Psi_a(x)\bar\Psi_b(y)\}|0\rangle$$ it's the Green's function of the Dirac operator: $$(i\not\partial_x -m)_{ab}S_{bc}(x-y) = i\delta^4(x-y)\delta{ac}$$
To me it's not obvious from that definition of $S(x-y)$ that it's the Green's function of the Dirac operator.
So am I missing some concept that makes such deduction immediate?
Below the sketch of the (long) calculations I had to do to get it, which makes me suspect that I have taken an unnecessarily long or even wrong path:
$$ S_{ab}(x-y) = \langle 0|\theta(x^0-y^0) \Psi_a(x)\bar\Psi_b(y) - \theta(y^0-x^0) \bar\Psi_b(y)\Psi_a(x) | 0 \rangle ~~~~~(1)$$
use the explicit formula for $\Psi$, $\bar\Psi$ and the identity $\sum_{s=1,2} u_a^s(p)\bar u_b^s(p)= (\not p + m )_{ab}$ to get
$$ \langle 0|\Psi_a(x)\bar\Psi_b(y)|0\rangle = \int {{d^3p}\over{(2\pi)^3}}{{1}\over{2E_p}}e^{-ip(x-y)}(\not p +m)_{ab}~~~~~(2) $$
$$ \langle 0|\bar\Psi_b(y)\Psi_a(x)|0\rangle = \int {{d^3p}\over{(2\pi)^3}}{{1}\over{2E_p}}e^{ip(x-y)}(\not p -m)_{ab}~~~~~(3) $$
substitute $(2)$ and $(3)$ in $(1)$ $$ S_{ab}(x-y) = \int {{d^3p}\over{(2\pi)^3}} {{1}\over{2E_p}} \left(\theta(x^0-y^0)e^{-ip(x-y)}(\not p +m)_{ab} + \theta(y^0-x^0)e^{ip(x-y)}(-\not p +m)_{ab} \right) ~~~~~(4)$$
I have been stuck here for long till I realized to use the following identity valid for $f(p)$ polynomial (it comes from complex residual calcolous, see Srednicki pag.269)
$$ \int {{d^4p}\over{(2\pi)^4}}{{i}\over{p^2-m^2+i\epsilon}}e^{-ip(x-y)}f(p) = \int {{d^3p}\over{(2\pi)^3 2E_p}}\left(\theta(x^0-y^0)e^{-ip(x-y)}f(p)+\theta(y^0-x^0)e^{ip(x-y)}f(-p)\right) ~~~~~(5)$$
to get
$$ S_{ab}(x-y) = \int {{d^4p}\over{(2\pi)^4}}{{i}\over{p^2-m^2+i\epsilon}}e^{-ip(x-y)}(\not p +m)_{ab} ~~~~~(6)$$
which can be rewritten
$$ S_{ab}(x-y)=(i\not\partial_x + m)_{ab} \int {{d^4p}\over{(2\pi)^4}}{{i}\over{p^2-m^2+i\epsilon}}e^{-ip(x-y)} ~~~~(7)$$
now using $(i\not\partial_x -m)_{ab} (i\not\partial_x + m)_{bc} = -(\square_x + m^2)_{ac}$ I have
$$(i\not\partial_x -m)_{ab}S_{bc}(x-y) = -(\square_x + m^2)_{ac} \int {{d^4p}\over{(2\pi)^4}}{{i}\over{p^2-m^2+i\epsilon}}e^{-ip(x-y)}\\ = \left(\int {{d^4p}\over{(2\pi)^4}}ie^{-ip(x-y)}\right) \delta_{ac} = i\delta^4(x-y)\delta_{ac} $$