A function $f$ is defined in the following way:
Let $A, B$ be sets. A function $f$ from $A$ to $B$ is a subset of $A\times B$ ($\forall_x(x \in A \implies x \in B)$) that satisfies $$\forall x,y,y'\,\bigl((x,y)\in f \land (x,y')\in f\implies y=y'\bigr). $$
The truth value of the "statement" $x \in A$ depends on whether $x$ is in $A$ or not. We define a sentence as a statement that is either true or false. And here we have a statement that its truth value depends on x, so what is the formal definition of a statement that its value depends on a free variable $x$? You might say that it is a predicate, but the definition of a predicate is based on that of relation, which themselves are defined using a statement of the form $x \in A$ as a relation is a subset of a Cartesian product (and "inclusion/subset" is defined using the statement $x \in A$) - it seems that we define a predicate which is a relation, but the definition of a relation has a predicate in it ($x \in A$), so it seems that we have a loop. How do we resolve this (that's what I meant in the original question when I asked "where do we start from?")? Are we not defining what a predicate such as $x \in A$ means formally in the beginning?
Do we begin with an informal notion of a predicate, which we define as a statement that can be true or false depending on the value of a variable $x$, and then use this informal definition to define what relations and functions are? What is the informal starting point, and what is a consequence that we base our formal definitions and structures from? Do we start with an informal definition of a predicate, or do we even treat functions informally to define predicates formally? Or is there another way to explain or propose a solution?
I understand that there is a difference between a predicate and a predicate symbol. I also understand that we define an interpretation function $I$ that $I(Pred) \subset D^M$ - sends $Pred$ to a specific relation. But when we define a relation there is a predicate in the definition of a relation, $x \in D$. I understand that we define the functions and relations using set theory, and that we have to use a background/ambient language which is set theory since we use functions and relations ($I, Pred^M$). But we use logic to define these concepts (relations, functions, predicates) - we use $x \in D$, quantifiers and logical connectives.
By "intuition/informal" I don't mean something vague like a gut feeling. I mean that we understand, in an informal but "precise" (as far as we human can) way, what is meant when we say "$ x \in A $", or "if...then...", "and", "or", "for all", etc. We use these notions "informally" (as we start from them with our understanding of what they mean) — but clearly — to define what a relation or function is, and then use those to construct the formal framework of logic.
(I'm not talking here about the syntax — I understand that when we talk about syntax, we treat symbols purely as symbols, with no additional meaning, and focus on forming well-formed formulas.)
I read How to avoid perceived circularity when defining a formal language? and the linked questions and answers there, but I still don't understand. I tried to read in Enderton's or Mendelson's books, but it only got me more confused. I would be grateful if someone could clarify things. Thank you!