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

Clean up code in BinProduct. #1159

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Clean up code in BinProduct. #1159

wants to merge 3 commits into from

Conversation

anuyts
Copy link
Contributor

@anuyts anuyts commented Oct 21, 2024

No description provided.

@maxsnew
Copy link
Collaborator

maxsnew commented Oct 21, 2024

  1. I don't think ×C-sym is a good naming convention, I prefer Sym. You can always use qualified imports to make it explicit which Sym you are going for. IMO this ultimately reduces proliferation of long qualifiers.
  2. The Yoneda embedding is already defined as YO in Cubical.Categories.Yoneda

@anuyts
Copy link
Contributor Author

anuyts commented Oct 25, 2024

  • Thanks for pointing me to YO, I had missed that somehow.

  • The lemma Sym has not followed a pre-existent naming convention already adopted by ×C-assoc. Whatever is decided, both should follow the same naming scheme.

  • One would probably want to use _×C_ unqualified, so one would need an unqualified import as well. Then either the file should be imported as

    open import Cubical.Categories.Constructions.BinProduct using ({-bunch of stuff that's clearly product-related-})
    import Cubical.Categories.Constructions.BinProduct as ×C

    or we need to put everything that can get a shorter name by not mentioning it is product-related in a named submodule.

    The file https://github.com/agda/cubical/blob/master/NAMING.md doesn't commit to any approach.

  • Given that categories are big records with eta-equality, often bearing complicated equality proofs, they often perform very badly as implicit arguments and produce poor interactive-mode guidance. So I would still suggest to make these arguments to Sym/×C-sym explicit as is the case in ×C-assoc.

@anuyts anuyts changed the title Yoneda embedding. Clean up code in BinProduct. ~Yoneda embedding.~ Clean up code in BinProduct. Oct 25, 2024
@anuyts anuyts changed the title ~Yoneda embedding.~ Clean up code in BinProduct. Clean up code in BinProduct. Oct 25, 2024
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

Successfully merging this pull request may close these issues.

2 participants