[Tex/LaTex] How to typeset a long vdash with symbols on top and bottom

math-modesymbols

Essentially, I am trying to typeset a symbol in math mode that looks like this: Long vdash with symbols on top and bottom. Is there any way I can do this easily with a package or do I have to fiddle around with my own commands?

I tried vdash^*_M, but this leads to a vdash that is too short and with the * and M misplaced.

Best Answer

You can use the turnstile package:

\documentclass{article}
\usepackage{turnstile}

\begin{document}

$x\sststile{M}{*}y$ $x\sdtstile{M}{*}y$

\end{document}

enter image description here

You can also look at https://tex.stackexchange.com/a/29091/4427 for a slightly different realization.