Is this considered bad style
$$2 = \sqrt{4} < \sqrt{16} = 4?$$
It seems as though this is not strictly correct, since $2 = \sqrt{4}$ is a logical proposition which represents boolean value (true or false). A boolean value cannot be less than $\sqrt{16}$.
On the other hand, I am sure that most people will correctly interpret this as shorthand for $2 = \sqrt{4},$ $\sqrt{4} < \sqrt{16},$ and $\sqrt{16} = 4$
If $R_1, R_2, \ldots$ are binary relations, it is standard practice in mathematics to write:
$$a_1 \mathrel{R_1} a_2 \mathrel{R_2} a_3 \ldots a_{k} \mathrel{R_{k}} a_{k+1}$$
as a short hand for:
$$a_1 \mathrel{R_1} a_2 \mbox{ and } a_2 \mathrel{R_2} a_3 \ldots \mbox { and } a_{k} \mathrel{R_{k}} a_{k+1}$$
This convenient syntactic convention works because, in most mathematics, we usually write as if we are working in first-order logic, where boolean values aren't allowed as operands of relation symbols: $(1 < 2) = (3 < 4)$ isn't allowed. When you work in higher-order logic in mathematics, and in most programming languages, formulas like $(1 < 2) = (3 < 4)$ are allowed and so this convention doesn't work so smoothly.