I'm defining a boolean algebra in latex and I need to overline a whitespace to introduce the NOT operator.
This is the latex code I used
$$\mathcal{A} = (\mathcal{B},+,\cdot, \overline{ })$$
The problem is that instead of showing an overlined whitespace it shows nothing, as if there was no overline.
EDIT: I've just tried replacing \overline{} with \overline{\ } and
an overlined has appeared, but it is not at the right height. It seams more like an underscore than an overscore.
This is the result:


\overline{\phantom{x}}– egreg Sep 05 '19 at 19:46