I would like to define a command similar to \section that places Greek letters in the right order in an equation. Furthermore I want the option to label a Greek letter to use it later and I would like to give parts of equations names to use them later. e.g.
\begin{equation}
\greekvar + 4 + \frac{1}{N} + \greekvar{specialvar} + d{\int_0^\infty x^2\mathrm{d}x\label{specialintegral}}
\end{equation}
If $\greekref{specialvar}$ is 0 then $d=1$ and $\ref{specialintegral}$ is active.
and the result should be the same as of:
\begin{equation}
\alpha + 4 + \frac{1}{N} + \beta + d\int_0^\infty x^2\mathrm{d}x
\end{equation}
If $\alpha$ is 0 then $d=1$ and $\int_0^\infty x^2\mathrm{d}x$ is active.
If possible I would like to use commands like I proposed. Help appreciated. As far as Greek numbering is considered I found some kind of solution though it does not work in mathmode.

\greekvar{specialvar}to expand to\betain your code, but also want\greekref{specialvar}to expand to\alpha. How is this supposed to work? How would you refer to the\beta? – jub0bs Nov 19 '13 at 23:45