I have just started to learn the first order logic. I have learned that one can use predicated to specify relations between specific objects (or entities).
For example: $LocatedIn(Berlin, Germany)$
I have also learned that we can make statements like that:
$\exists x_1, \forall x_2. P(x_1, x_2, c_1)$
So, we have a "statement" and then instead of concrete objects we use variables and say that the statement is true for all (or at least one) arguments.
But can we use first order logic to express the following statement:
Every person who loves everyone is good.
So, I imagine something like that:
$\forall x_1. (Love(x_1, \forall x_2) \implies Good(x_1))$
But I think it is an invalid expression (because quantifier is insider of a predicate).
You can express "$x$ loves everyone" with the formula $\forall y\, Loves(x,y)$, assuming, as we will in this example, that variables range over people only. You can express "if $x$ loves everyone then $x$ is good" with the formula $\forall y\, Loves(x,y) \to Good(x)$. [Note: the scope of $\forall y$ is only Loves(x,y), and doesn't extend to $Good(x)$.] Thus, "every person who loves everyone is good" can be represented by $$ \forall x\,(\forall y\, Loves(x,y) \to Good(x)). $$