occursdiffers
Occursdiffers is a theoretical relation used in formal language theory and logic to describe a property of occurrences within a term or expression. An occurrence is a specific position in the syntactic structure of a term, such as a node in its abstract syntax tree labeled by a symbol.
The occursdiffers relation holds between two occurrences when they refer to distinct positions in the term’s
In practice, occursdiffers is used in analyses of sharing, duplication, and binding within terms, and can appear
Examples illustrate the idea: in the term f(a, b, a), the two occurrences of a are at
See also: occurrences, occurs, unification, term rewriting, abstract syntax tree.