agda-stdlib icon indicating copy to clipboard operation
agda-stdlib copied to clipboard

Very dependent map

Open JacquesCarette opened this issue 1 year ago • 3 comments

Closes #833 .

The names, of course, are up for debate! (And, now that I think of it, I should probably add a property or two of them in this same PR).

JacquesCarette avatar Apr 24 '24 00:04 JacquesCarette

Re: naming Is it possible to reconcile the name choices for this PR, and the general principles in #278 ?

jamesmckinna avatar Apr 24 '24 02:04 jamesmckinna

I guess this would push towards naming the first one simply map? Except that Data.Product.Base already has such a thing, and it is much less dependent.

My feeling is that #278 deals with the case of "normally dependent" naming -- here the functions really are absurdly dependent. So they seem like they'd need their own, new column. Interestingly, the various type families in dep-map are left implicit, and Agda seems happy enough with that. Having said that, I tried to apply dep-map to non-dependent cases, and it all became a giant yellow party.

In other words, we don't need the results of @gallais 's #278 experiment to know that we can't make these very-dependent version the 'default' with the most basic name.

JacquesCarette avatar Apr 24 '24 13:04 JacquesCarette

Thanks - these are all great suggestions. (The h i actually come from me cutting and pasting from elsewhere in stdlib, but I'll accept the blame for not relabeling). Will implement as soon as I have a moment.

JacquesCarette avatar Apr 25 '24 12:04 JacquesCarette

I think we're there now! Would you be happy to merge @MatthewDaggitt ?

jamesmckinna avatar May 16 '24 05:05 jamesmckinna