-
Notifications
You must be signed in to change notification settings - Fork 246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
containment _⊆_ generalization #1084
Comments
If you need to use both notions simultaneously, you can always import I'd rather have the short name that can be used when things are not ambiguous. |
Addressing the second point first:
My question would be why is the subset relation over binary relations the correct notion of "general containment"? We also have subset relations over unary relations (predicates) and indeed in certain contexts you can even view a function from Basically we seek to optimise the common case, and in the uncommon case then you can either qualify the module, or manually rename it to your desired disambiguation. As implication vs containment, I don't really have an opinion. That's simply the way the library was set up many years ago. It's a pretty crucial component of the library so we'd need a strong reason for renaming it. |
Thank you, your answers were very informative.
I think it would be good to expand with this kind of information the style-guide, a how-to guide or similar so that demands like the one in this reddit post could be covered:
Is it possible to assist the user in building her own set of naming conventions, or this falls out of the scope of the library? Until now, I just found the naming conventions section of the style guide. |
I think adding it to the style guide is a good idea. I've added it to my list of things to add, which will get flushed before the release of |
I saw that in
Relation.Binary.Core
is suggested (without expressing it formally) that the containment_⊆_
can be viewed as a synonym of the implication_⇒_
agda-stdlib/src/Relation/Binary/Core.agda
Lines 43 to 46 in 99367e2
Then in
Data.List.Relation.Binary.Sublist.Setoid
the symbol of containment_⊆_
is used to express containment restricted to Lists.agda-stdlib/src/Data/List/Relation/Binary/Sublist/Setoid.agda
Lines 40 to 41 in 99367e2
Should not
_⊆_
be reserved to express general containment and then notate the specific containments in another way, eg,_⊆ₗᵢₛₜ_
?The text was updated successfully, but these errors were encountered: