UpValues
UpValues[f]
gives a list of transformation rules corresponding to all upvalues defined for the symbol f.
Details and Options

- You can specify the upvalues for f by making an assignment of the form UpValues[f]=list.
- The list returned by UpValues has elements of the form HoldPattern[lhs]:>rhs.
Examples
open allclose allScope (2)
Properties & Relations (3)
HoldPattern is used to protect the rules from their own definitions:
Definition and Information display upvalues but do not return them as values:
UpValues returns a value that can be used in a program:
Evaluation of an expression involves applying matching upvalues:
Text
Wolfram Research (1991), UpValues, Wolfram Language function, https://reference.wolfram.com/language/ref/UpValues.html (updated 1996).
BibTeX
BibLaTeX
CMS
Wolfram Language. 1991. "UpValues." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 1996. https://reference.wolfram.com/language/ref/UpValues.html.
APA
Wolfram Language. (1991). UpValues. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/UpValues.html