Recently, I am trying to gather together a consistent 'foundation of mathematics' from several sources/books/scripts which satisfies me as a 'working mathematician'.
When, for example, I want to start with set theory, I have to formulate the axioms of ZF (or ZFC). For this - in particular for the axiom schema of specification - I need what is apparently called First order logic (cf. also my question here on stack exchange).
When I want to write down what the definition of first order logic is, I do not understand what a predicate is, and by 'is' I mean what it is formally. There is the common example of
All humans are mortal
Socrates is human
therefore Socrates is mortal
where the used predicates $P$ are $\mathrm{IsMortal}$ an $\mathrm{IsHuman}$. So for example if you plug in $\mathrm{Socrates}$ then $\mathrm{IsMortal}(\mathrm{Socrates})$ is $\mathrm{true}$ - or say is $1$. Formally, a predicate (or perhaps better: the semantic of a predicate, see below) looks to me like a function $$ P\colon \mathrm{Everything}\to \{0,1\} $$ but there are two problems: $\mathrm{Everything}$ is not a set and even if it were, we are here BEFORE introducting ZFC and defining what a set is. If we already had the set theory of ZFC in place, we were able to formulate what a function $\varphi: A \to \{0,1\}$ is: A subset $\varphi\subseteq A\times\{0,1\}$ such that for all $a\in A$ there exists a $t\in \{0,1\}$ with $(a,t)\in \varphi$ and this $t$ is unique for the $a$.
In first-order logic there is a distinction between syntax and semantic, fine. Even though it feels a little uncomfortable to me to define the syntax of first-order logic without the notion of a set, I am fine with this. OK, now we know what a '(well-formed) formula' is but this has no meaning: Just a string of symbols. In particular, we can write $P$ for some predicate - but just as a symbol.
I guess, my question then is about the semantics:
What is a predicate (or the semantic of a predicate) in first-order logic, formally?
Do I really have to describe what (the semantic of) a predicate is by writing 'in english words' what a function $P:\mathrm{Everything}\to \{0,1\}$ would be if this concept already existed? For example the $\mathrm{IsMortal}$-predicate would be in a semantic (sorry, I struggle with the correct wording here) to specify for all $x\in \mathrm{Everything}$ whether $\mathrm{IsMortal}(x)$ is true or is false.
In particular, the notion of a 'function' $P:\mathrm{Everything}\to \{0,1\}$ (which even does not exist, strictly speaking) would be more fundamental than the notion of a set. This is very unsatisfactory to me. I hope I was able to describe my problem that it becomes understandable. Thanks for any help.