I saw something similar that proved this statement here: Prove that the square root of a positive integer is either an integer or irrational
I was wondering how to formally write the statement "x is a perfect square or the square root of x is is irrational" in predicate logic. My attempt is this:
$\forall x\in \mathbb{Z^{\geq 0}}, (\forall a \in \mathbb{Z^{\geq 0}},\forall b \in \mathbb{Z^{\geq }}, \sqrt{x} \neq \frac{a}{b}) \lor (\exists d \in \mathbb{Z^{\geq 0}}, x = d^2)$