The distinction between predicative and impredicative definitions is important in mathematics. As first approximation, impredicativity means circularity. Let me give you an example of an impredicative definition.
Let $V$ be a vector-space over a field $K$, and $S \subseteq V$ a set of vectors. The ${span}$ of $S$ is the intersection of all sub-vector-spaces $V'$ of $V$ that also contain $S$.
$$ \operatorname{span}(S) = \bigcap \{V'\ |\ S \subseteq V', V'\ \text{is a sub-vector-space of}\ V\} $$
In a set theory like ZF(C), this definition is impredicative because $\operatorname{span}(S)$ is itself a member of $\{V'\ |\ S \subseteq V',\ \text{is a sub-vector-space of}\ V\}$. In some sense this definition is circular. In this particular case, we can easily get around this impredicativity, for example by defining
$$ \operatorname{span}(S) = \{\Sigma _{i=1}^{n} k_i.v_i\ |\ n \geq 0, k_i \in K, v_i \in S\} $$
but it's not always that easy. For example in ZF(C) the natural numbers are often defined as follows.
$$ \mathbb{N} = \bigcap \{S \ |\ S\ \text{is an inductive set}\} $$
where $S$ set is inductive if it contains $0$ and is closed under successor. Clearly, $\mathbb{N}$ is itself inductive.
Such circularities are not considered problematic in classical mathematics, in the sense that no contradictions have ever been derived from such impredicative definitions. Nevertheless, impredicate definitions don't always sit well with constructive mathematics. This leads to my question: is it always easy to see if a definition is (im)predicative? More precisely:
Is it decidable if a formula $F$ is predicative in a theory $T$?
I'm most interested in the case where the theory $T$ is some set theory.
Note that I have not formally defined (im)predicativity. Such a definition itself appears to be difficult, but I would be happy to hear about answers to my question for any of the extant formal or informal notions of (im)predicativity.