I am studying predicate logic and I have a problem understanding its semantics. I am reading "Logic for computer scientists" by Uwe Schoning and the passage I have a problem with is this:
If $F$ has the form $F=P(t_1,\dots,t_k)$ where $t_1\dots t_k$ are terms and $P$ is a predicate symbol of arity $k$, then its semantics are defined by $$\mathcal{A}(F) =\begin{cases}1& \text{ if } (\mathcal{A}(t_1),\dots,\mathcal{A}(t_k)\in P^{\mathcal{A}}\\ 0& \text{ otherwise}\end{cases}$$
Here $\mathcal{A}$ is a structure and $P^{\mathcal{A}} = I_{\mathcal{A}(P)}$ is described as below: Predicate logic structure pair
I think I kinda get what structure is about, my problem is about the first picture. I didn't get what does it mean. Does it mean that if we had a predicate symbol, the value of that predicate symbol is true if all its terms are defined by that structure? If so then if for example we have $P^2(x,f(x))$ and both $x$ and $f(x)$ are defined then $P$ is true regardless? That doesn't seem right!
I tried googling and reading other documents but it confused me more. I'll be happy if someone explains the predicate logic semantics to me in a clear and simple way with a few examples. Thanks in advance