The operation leastSort takes as arguments the metarepresentation of a
module
and the metarepresentation of a term
, and it returns
the metarepresentation of the least sort or kind of
in
,
obtained without reducing the term, that is, the memberships in the module
are used to get the information, but equations are not used to reduce the term.
op leastSort : Module Term ~> Type [special (...)] .
For example,
Maude> reduce in META-LEVEL :
leastSort(upModule('NUMBERS, false), 'p['s_['zero.Zero]]) .
result Sort: 'Nat