Skip to content
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

Find better new symbol for ; (relational composition) #2303

Open
jamesmckinna opened this issue Feb 27, 2024 · 6 comments
Open

Find better new symbol for ; (relational composition) #2303

jamesmckinna opened this issue Feb 27, 2024 · 6 comments

Comments

@jamesmckinna
Copy link
Contributor

jamesmckinna commented Feb 27, 2024

Responding to my query on #2301 , @Taneb wrote:

`;` is (according to agda-mode's "Information about the character at point" tool) a Greek question mark, which is written with `\;`, but there's a dozen characters with that and it's the 11th in the list.

I don't think we should be using that character, it's identical to the semicolon graphically (it's even normalized to the semicolon by Unicode) and bound to cause confusion. But I don't have a suggestion for what to use instead. EDIT: `⨾` (first in the list of `\;` but also \z;`) is "Z NOTATION RELATION COMPOSITION" per the Unicode standard. So it's at least semantically appropriate

Originally posted by @Taneb in #2301 (comment)

I too had queried that info, finding that the symbol is written with \;, but not as far as finding it's the 11th in the list.

I would prefer to use the symbol which exhibits REL as the prototypical bicategory, namely $\otimes$, but I have had push back for suggesting that usage in other settings in the past... but here I think it does make sense, and ushers in the use of the left- and right- linear lollipops for the corresponding adjoints...

@jamesmckinna jamesmckinna changed the title Find better new symbol for ; Find better new symbol for ; (relational composition) Feb 27, 2024
@silentstormm
Copy link

silentstormm commented Mar 2, 2025

⨾ U+2A3E : Z NOTATION RELATIONAL COMPOSITION shows up as the first suggestion for \;, doesn't seem to be used anywhere else and is intended for this exact purpose, is there any reason not to use it here?

@Taneb
Copy link
Member

Taneb commented Mar 2, 2025

Yes, that's the symbol I suggested in the linked PR

@JacquesCarette
Copy link
Contributor

Personally I much prefer U+02A1F , i.e.

02A1F ⨟ # \zcmp mathop oz = \semi (oz), = \fatsemi (stmaryrd), Z NOTATION SCHEMA COMPOSITION

which I believe is also available in newer agdas.

@MatthewDaggitt
Copy link
Contributor

@JacquesCarette what do you see as the difference between your symbol and the one suggested by @silentstormm above?

@JacquesCarette
Copy link
Contributor

U+02A1F is larger than U+2A3E which I've found to act as a nice visual delimiter. It also has the advantage of having been in a standard latex package for longer.

@jamesmckinna
Copy link
Contributor Author

jamesmckinna commented Mar 7, 2025

What are the 'natural' symbols for the right adjoints to these candidate 'semicolon' symbols for composition? (Maybe de Moor and Bird came up with 'reasonable' names for them in Algebra of Programming?)

(otherwise, giving in to the temptation to repeat myself: why not \otimes, which has the advantage of having been in standard LaTeX packages for a lot longer... I'm not sure that Z notation is necessarily a good guide to choices we might commit to in stdlib? especially if such notation doesn't then lend itself to the additional structure/operations associated with relational composition)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants