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

Question about "Calculating Implementations" #1

Open
bolt12 opened this issue Dec 10, 2020 · 0 comments
Open

Question about "Calculating Implementations" #1

bolt12 opened this issue Dec 10, 2020 · 0 comments

Comments

@bolt12
Copy link
Owner

bolt12 commented Dec 10, 2020

@smatting kindly took the time to write a document with some questions, which I link here.

First of all thanks for the questions!

You can get Functor implementation for s for free by using using two facts

  • the Homomorhism Property for mu: mu (fmap f s) = fmap f (mu s)
  • mu and mu' are inverse

Is that correct?

Yes, that's exactly it! The original DD paper has a section about it that goes into more detail, but basically if you are able to have a computable inverse (mu') you can calculate a solution much more easily!

Does this mean f would only get applied to head?
Isn't that an incorrect Functor implementation for a stack?

Good eye! That was indeed an error in my post which I have already fixed! Thanks for pointing it out. I forgot to propagate the fmap and it lead to a wrong calculation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant