[Tex/LaTex] setting letter atop vdash

math-modestacking-symbols

I've got the following problem:

I want to set the letter "W" atop a "\vdash", like here:

W atop vdash

I've tried to get this result with \atop, \stackrel, and \above, but didn't get the wished result. All these put the W completely over the vdash:

W completely atop vdash

How can I get the first result?

PS: here is a sample file:

\documentclass{article}
\begin{document}
$A \stackrel{W}{\vdash} x$
\end{document} 

Best Answer

\documentclass{article}
\usepackage{stackengine}
\newcommand\letvdash[1]{\mathrel{
  \stackengine{1ex}{\vdash}{\;\;\scriptscriptstyle#1}{O}{c}{F}{T}{L}}}
\stackMath
\begin{document}
\( A\letvdash{W} x \)
\end{document}

enter image description here