What is a quantifier-free formula defining the space of orthostochastic matrices? More precise version below.
Fix $n \in {\Bbb N}$, let ${\mathcal M}_n$ denote the space of real $n\times n$ matrices, and let the space of orthogonal matrices be
$$ {\mathcal O}_n := \left\{ O \in {\mathcal M}_n : \ O^\top = O^{-1} \right\} $$
Consider now the set of orthostochastic matrices, given by
$$ {\mathcal S}_n := \left\{ S \in \mathcal M_n:\ \exists O\in\mathcal O_n \text{ such that } \forall i,j\in\{1,\ldots,n\}, \text{ we have } S_{ij}=O_{ij}^2\right\}.$$
Although the way I have defined this set uses a quantifier ("$\exists$") in addition to field operations, the Tarski-Seidenberg theorem implies there is some quantifier-free way to define the set $\mathcal S_n$ of orthostochastic matrices. Can anybody tell me one?
For $n=1$ or $n=2$, it's easy to name one. For $n=1$, we just have $\mathcal S_n = \{1\}$, so there's nothing to show. For $n=2$, it's a standard fact that $\mathcal S_n$ is the set of bistochastic matrices: letting $e\in\mathbb R^n$ is the vector with every entry being $1$, we have
$$\mathcal S_n= \left\{M\in\mathcal M_n:\ M^\top e = Me=e \text{ and } M_{ij}\geq0 \ \forall i,j\in\{1,\ldots,n\}\right\}$$
But this characterization does not hold for $n>2$.
Is there a known formula that works for arbitrary $n$? Although Tarski-Seidenberg only tells us that such a formula exists for any one $n$, I'd be especially happy to know if there's a formula that "looks the same" in some sense for every $n$.