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

Projections for the principal fields of records #23

Open
WhatisRT opened this issue Oct 28, 2022 · 0 comments
Open

Projections for the principal fields of records #23

WhatisRT opened this issue Oct 28, 2022 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers
Milestone

Comments

@WhatisRT
Copy link
Collaborator

As @Soupstraw pointed out, it's sometimes confusing to read something like proj₁, since it's not always clear if we're projecting out from something we think of as a pair, or if we're projecting away a proof. Related to this is the issue that we sometimes have records that have a 'principal' field, like the Carrier field in many algebraic structures for example. It would be nice to have a consistent way of projecting away less relevant parts of a record, for example with the following typeclass:

record HasDowncast {a b} (A : Set a) (B : Set b) : Set (a ⊔ b) where
  field _↓ : A  B
@WhatisRT WhatisRT added enhancement New feature or request good first issue Good for newcomers labels Oct 28, 2022
@WhatisRT WhatisRT added this to the Apr - Jul milestone Apr 21, 2023
@williamdemeo williamdemeo modified the milestones: Apr - Jul, Nov - Feb Oct 30, 2023
@WhatisRT WhatisRT modified the milestones: Nov - Feb, Feb - Apr Feb 5, 2024
@WhatisRT WhatisRT modified the milestones: Feb - Apr, May - Jul May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants