I am currently studying the Hamiltonian formulation of GR and I have problems understanding this definition of primary constraint.
In the textbooks, primary constraint occurs when a momentum conjugate by definition is not invertible for the corresponding velocity, but primary constraint reads $$\phi(p,q)=0,$$ which does not contain spatial derivative of $q$, namely $\partial_iq$.
My question is then if the conjugate momentum by definition gives you a formula as $$\phi(p,q,\partial_iq)=0$$ can we call it a primary constraint?