I have a question related to the connection between the S-Matrix elements and the path integral formalism. In order to formulate the question, I will just work with a scalar field theory for simplicity.
Let us assume that we are given an action $S[\phi]$. In the path integral formalism, we can now define the generating functional \begin{equation} Z[J] \propto \int \mathcal{D}\phi ~ e^{i S[\phi] + \int d^4x~ \phi(x) J(x)} \end{equation} and calculate arbitrary vacuum expectation values \begin{equation} \left<0| \phi(x_1) \ldots \phi(x_n) | 0 \right> \end{equation} using functional derivatives with respect to the source $J$. I also know how to calculate vacuum expectation values in the "canonical quantization formalism" (Wick's theorem etc.). So far so good.
Usually, we are not interested in vevs but rather in S-matrix elements such as $\left<p_1, \ldots, p_n|q_1, \ldots, q_m \right>$ where $p_i$ and $q_j$ are outgoing and ingoing particle momenta. Furthermoe, the transition between $S$-matrix elements and vevs is also clear to me: this is just given by the LSZ reduction formula. So in principle, we are now good to go: we can calculate everything in the path integral formalism and eventually relate this to actual matrix elements using the LSZ formula.
Now come my actual questions:
It seems that there is a more direct relation between the S-matrix elements and the path integral formalism. In fact, on the Wikischolar article about the Slavnov-Taylor identities (written by Dr. Slavnov himself) it is stated that the $S$ matrix can be written as $S = Z[0]$. Where does this come from and how is it to interpret? I am confused because I thought that $S$ was rather a matrix (whose entries, i.e. matrix elements are numbers) and $Z[0]$ is just a number (an evaluated integral). So to me, thsi reads like "matrix = number"... Furthermore, if this equation holds true, how can we obtain the $S$ matrix elements from there?
Even more confusingly, there seems to be another relation to the $S$-matrix element. I have found this in Weinberg Vol. II, chapter 15.7 around equation (15.7.27). There, we have an action that is of the form $I + \delta I$ (the context is here that $I$ is the gauge fixed action of a non-Abelian gauge theory and $\delta I$ is the change due to a small variation in the gauge-fixing condition, but this does not really matter here). It says then: It is a fundamental physical requirement that matrix elements between physical states should be independent of our choice of the gauge-fixing condition, or in other words, of $\delta I$. The change in any matrix element $\langle\alpha|\beta\rangle$ due to a change $\delta I$ in $I$ is \begin{equation} \delta \langle\alpha|\beta\rangle ~\propto ~\langle\alpha|\delta I|\beta\rangle. \end{equation} So now, there seems to be even a relation between the action and the $S$-matrix elements. How does this fit into the entire picture?
My QFT exam is coming up, so thanks a lot for your answers!