[Tex/LaTex] One more question regarding “function restriction”

math-modemath-operators

This question is in connection with How to typeset function restrictions

There, egreg gives a satisfactory answer (at least for me)

The problem is that I'd like to do the same thing with \restriction as delimiter instead of |, but somehow I can't figure out how to do that.

Best Answer

You can say (requires amssymb, of course)

\renewcommand{\restriction}{\mathord{\upharpoonright}}

and the result will be as in the second line in the following picture, while the first line represents what you get now

enter image description here

Related Question