Replace irrelevance with Prop#2998
Conversation
|
One annoyance when implementing this change is that I could not simply use |
|
Thanks for looking into this! It looks like CI is failing because the README files are a separate Agda library, and also will need In addition to As a further point of discussion, do we want to mark things that are provably but not necessarily "obviously" propositional, like |
|
@Taneb Make |
|
So for other uses of irrelevance for
|
|
Regarding instance search for |
|
Doesn't |
I don't see any direct use of irrelevance in that file, so I don't think so? |
|
Oh right, I forgot that that one came from before |
|
|
||
| -- Irrelevant types are Recomputable | ||
|
|
||
| irrelevant-recompute : Recomputable (Irrelevant A) |
There was a problem hiding this comment.
So the removal of this function seems to be the biggest change, as far as 'breaking changes' go. Though if this is new to v2.4, it is fine, since that is as-yet unreleased.
|
And, of course, the build failed because |
As discussed in agda/agda#8557, I made an attempt at replacing the use of irrelevance for the definition of the empty type with
Prop. It seems to work rather nicely, with the main disadvantage being that--propneeds to be enabled in basically every file (I haven't yet checked which ones exactly, just enabled it globally for now). On the other hand, this would allow the standard library to adopt the--no-irrelevanceflag once agda/agda#8575 is merged.I'm curious to hear what the standard library developers think of this potential change, in particular @MatthewDaggitt @jamesmckinna @fredrikNordvallForsberg