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

Is it sufficient to consider control operators? #5

Open
tomjaguarpaw opened this issue Dec 24, 2019 · 1 comment
Open

Is it sufficient to consider control operators? #5

tomjaguarpaw opened this issue Dec 24, 2019 · 1 comment

Comments

@tomjaguarpaw
Copy link
Owner

Perhaps we don't have to consider arrows as separate from control operators. Given f :: arr a b we can write e = (>>> f) :: arr e a -> arr e b. Following definition 4 (page 5) of "A new notation for arrows" we need to check that "e satisfies a ... naturality property"

e ((k ~> θ1) x1) ... ((k ~> θn) xn) = (k ~> θ) (e x1 ... xn)

For our e this amounts to showing that e ((arr k >>>) x) = (arr k >>>) (e x) which indeed holds. Thus every arrow gives rise to a control operator. On the other hand we can recover the arrow from the control operator: f = e id.

Therefore it seems that considering control operators only is sufficient.

@tomjaguarpaw
Copy link
Owner Author

Oh, wait. f is also a control operator via arr snd >>> f 😄

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