-
Notifications
You must be signed in to change notification settings - Fork 234
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
Conversion from Vec equality to heterogeneous equality #36
Comments
So, do you think the library functions (e.g. not examples with |
On 20.09.2014 04:15, Paolo G. Giarrusso wrote:
A very general "yes, if they follow the reasoning and naming style of
The other stuff is going to Data.Vec.Equality, or? Please make a pull request (and take special care to pick identifiers Thanks! Andreas Abel <>< Du bist der geliebte Mensch. Department of Computer Science and Engineering |
Thank you! Your guesses are mostly right — except for ≅-to-subst-≡ which I'd also place in |
This is the prototype for the fix to agda/agda-stdlib#36 --- I had it lying around here uncommitted. IIRC, this got stuck on picking good method names (and then we forgot).
A little late, but I've just added these into the library with commit 13a0620 |
to-≡
fromData.Vec.Equality
converts from vector equality to homogeneous equality, but only once you've done the work of casting the arguments so that they have the same length. That seems enough work that it'd be worth it having it in the stdlib, together withto-≡
.I certainly want
to-≅
. Part of the problem shows up also for≅-to-≡
— see≅-to-subst-≡
for an alternative.Here's an example of the functions I'd like to have and some example:
This code also lives at
https://gist.github.com/Blaisorblade/87d7d50167704603e682
The text was updated successfully, but these errors were encountered: