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

Feature request: [D] as notation for class of D #3268

Open
mahrud opened this issue May 29, 2024 · 2 comments
Open

Feature request: [D] as notation for class of D #3268

mahrud opened this issue May 29, 2024 · 2 comments

Comments

@mahrud
Copy link
Member

mahrud commented May 29, 2024

Very frequently in math, given an object (say divisor) D and an equivalence relation D~D', we denote the equivalency class with [D]. I think it would be cool if we could define methods on [T], for instance:

[Divisor] := D -> -* the class of D in the class group *-

How hard would this be?

Related: #1978


As a potentially far fetched extension, allowing (a,b] and [a,b) to produce half open intervals would be useful (both [a,b] and (a,b) work fine and can be interpreted appropriately by methods, so that's not a concern).

@pzinn
Copy link
Contributor

pzinn commented Jun 4, 2024

funny, I had the same thought for a different reason, I wanted to define q-numbers, something like

[ZZ] := n -> (q^n-1)//(q-1)

@mahrud
Copy link
Member Author

mahrud commented Jun 4, 2024

We'd have to be careful that this doesn't break I^[n] for frobenius powers, but otherwise it seems fine to me!

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

No branches or pull requests

2 participants