Skip to Content.
Sympa Menu

maude-help - [[maude-help] ] question on preregularity

maude-help AT lists.cs.illinois.edu

Subject: Maude-help mailing list

List archive

Chronological Thread  
  • From: Lorenzo Capra <capra AT di.unimi.it>
  • To: maude-help AT lists.cs.illinois.edu
  • Subject: [[maude-help] ] question on preregularity
  • Date: Thu, 16 Nov 2023 15:42:37 +0100

Dear Maude users
I have a simple question about preregularity of terms built using
nested generic modules.
For example, I am using the built-in LIST{X} together with my own
BAG{X} module (which defines multisets):
a Bag{String} term, e.g., is defined as a formal sum
1 . "a" + 2 . "b"
I need to use also multisets of lists, i.e., terms of sort
Bag{List{String}} like
1 . "a" "b" + 2 . "c"
but I guess that in this case some terms fail to be preregular:

1 . "a"
seemingly doesn't have a least sort, because (due to the suborting
String < List{String}) it may be considered both of sort
Bag{String}
and of sort
Bag{List{String}}
(covariance doesn'hold, I believe, but I'm not sure 100%).

Am I missing something?
In the case I'm not, may you kindly suggest to me how to manage this?
Using another LIST implementation where X$Elt is not a subsort of List{X}?

Thank you very much
Lorenzo Capra



Archive powered by MHonArc 2.6.24.

Top of Page