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

Shallow embedding of ArrayPut and ArrayTake #383

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

amblafont
Copy link
Contributor

This PR implements the shallow embedding of ArrayPut, which is enough to compile the shallow embedding the led driver..

This PR also implements the shallow embedding of ArrayTake, but it couldn't be tested, as it seems the compilation of ArrayTake is not yet implemented (yielding TODO fvIP: PArrayTake unimplemented)

@zilinc
Copy link

zilinc commented Sep 10, 2020

Many of the missing things are on my wip-reftypes branch. Since on master there's no typechecking for array operations, many things were left out as they weren't needed or didn't make sense.

array_map2 : "('a ⇒ 'b ⇒ 'a × 'b) ⇒ 'a list ⇒ 'b list ⇒ ('a list × 'b list)" is defined in isabelle. But cogent pairs are compiled to some record, thus necessating to insert coercions before and after calling this map2
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

Successfully merging this pull request may close these issues.

2 participants