The operation completeName takes as arguments the metarepresentation
of a module
and the metarepresentation of a sort
or a kind
. When its second argument is the metarepresentation of a sort
, it
returns the same metarepresentation of
. But if its second argument is the
metarepresentation of a kind
, then it returns the metarepresentation of the
complete name of
in
, i.e., the metarepresentation of the
comma-separated list of the maximal elements of the corresponding connected
component.
op completeName : Module Type ~> Type [special (...)] .
For example,
Maude> reduce in META-LEVEL :
completeName(upModule('NUMBERS, false), 'Zero) .
result Sort: 'Zero
Maude> reduce in META-LEVEL :
completeName(upModule('NUMBERS, false), '`[Zero`]) .
result Kind: '`[NatSeq`,NatSet`]