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

On Irrelevance vs Prop #652

Closed
JacquesCarette opened this issue Mar 16, 2019 · 3 comments
Closed

On Irrelevance vs Prop #652

JacquesCarette opened this issue Mar 16, 2019 · 3 comments

Comments

@JacquesCarette
Copy link
Contributor

@jespercockx hints in agda/agda#543 that we might be able to replace some uses of irrelevance with Prop. So I have two questions,

  1. Is Prop likely to become standard enough to use in the standard library?
  2. Would Prop be sufficient to get the 'equalities' wanted in a library like the categories one? [Some constructions on Natural Transformations need some categories to be equal in a proof-irrelevant way, which is currently achieved using irrelevance].
    I want to start the (incremental) process of moving categories into stdlib, and this is one of the blocking big-design decisions.
@gallais
Copy link
Member

gallais commented Mar 16, 2019

Some related discussion in #645:

  • a use-case for Prop I find interesting
  • @nad rightfully points out that some people may not want to use all of the agda features

I guess the second point doesn't apply quite as much to your project: the use of
Prop would be fairly circumscribed to that part of the library as opposed to
Data.Empty which is all encompassing.

@MatthewDaggitt
Copy link
Contributor

  1. Is Prop likely to become standard enough to use in the standard library?

As @gallais says above, I think that if they are kept to the category theory portion of the library then there is no problem in using them if they turn out to be a feature that drastically simplifies the code.

  1. Would Prop be sufficient to get the 'equalities' wanted in a library like the categories one?

From my limited understanding, yes, but I'm sure there are people more qualified to answer that one.

@MatthewDaggitt
Copy link
Contributor

Closing this as I think it's been answered.

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

3 participants