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

Flatten on intervals seems incorrect #143

Open
dorchard opened this issue Mar 13, 2020 · 0 comments
Open

Flatten on intervals seems incorrect #143

dorchard opened this issue Mar 13, 2020 · 0 comments
Assignees

Comments

@dorchard
Copy link
Member

@rls42 and I just stumbled across this:

badFlat : forall {a : Type} . (a [5..5]) [0..1] -> a [0..5]
badFlat [[x]] = [x]

This doesn't sound right... the result could be used 3 times say, but the input says that either is used or not used (first layer of boxing) and inside there is something that is used exactly 5 times.

According to our ICFP paper this kind of flattening shouldn't happen, so its the implementation that is wrong here rather than the theory.

@dorchard dorchard self-assigned this Mar 13, 2020
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