-
Notifications
You must be signed in to change notification settings - Fork 239
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
Get rid of inconsistent ∙-cong
name in algebra hierarchy?
#1544
Comments
That con could be a really big one. So I headed over to So I started writing this comment being quite against it (because of the con), and when I went digging for data... didn't find it. This could be worse in code bases "out there", I don't know. But internally to the library itself, this doesn't look like a big deal. |
Anecdotally, I also rarely use them together. As I'm very keen on having small modules that do one thing, either I'm working with setoid based equality from some algebraic structure or I'm working with propositional equality. However, it may have a greater impact on people who tend to throw everything together in bigger files... |
Middle ground: why not |
What happens in your proposed scheme to the properties |
They would become |
|
For whatever reason (but see numbers below), I'm going to press on my proposal to rename to
[figures approximate, based on rubbish |
Opening a related issue for v2.0-rc1... |
Revisiting this, I am (now) conscious that the opposite choice is already made regarding the name of the homomorphism property in Correspondingly, congruence for So I'm tempted to conclude that we should, in fact, retain the name This seems to arise from the v1.5 deprecations in UPDATED: seemingly only 15 uses of such |
I do believe we should close this one, since it is about going in the 'wrong' direction. |
Yup agreed |
Every other property in the algebraic (not to mention in
Relation.Binary
etc.) structures are simply namedassoc
/comm
etc. unless the structure contains two operators in which case they are prepended with the operator name(s).The exception to this rule is the congruence proof which is incongruously named
∙-cong
.agda-stdlib/src/Algebra/Structures.agda
Line 36 in b09525c
We should have a discussion about whether we should rename this to simply
cong
in version 2.0.As I see it:
Pros
\.
\cdot
or\bub
in certain fonts)Cons
cong
fromRelation.Binary.PropositionalEquality
a lot.The text was updated successfully, but these errors were encountered: