Write a such senetence $\phi$ in the first order logic that: $$G \models \phi \text{ iff } G \text{ is connected} $$
We consider only finite graphs. When it comes to infinite graphs it is obvious that FO cannot express that fact.
$$\forall p_1 \, \forall p_2 \, p_1 \neq p_2 \implies \exists n \, \exists p_2 \, \cdots \, \exists p_{n-1} \bigwedge_{1 \le i < n} e(p_i, p_{i+1})$$
Is correct? Why, why not?