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

Implement function input check typing rule for new syntax #47

Open
jlvargasme opened this issue Aug 16, 2022 · 0 comments
Open

Implement function input check typing rule for new syntax #47

jlvargasme opened this issue Aug 16, 2022 · 0 comments
Assignees
Labels
FTSCS 2022 Implementation needed for FTSCS 2022 paper

Comments

@jlvargasme
Copy link
Collaborator

let add (x : {v : float | v < 0 }) (y : {v : float | v < 0 }) : { v : float | v >= 0} = x * x + y*y

Once the function is called, for example,
let s = add 1 (-.3)

We want to verify that "not ( (x = 1 and y = -3) -> (x < 0 and y < 0))"

In this example, the check should fail since 1 !< 0.

@jlvargasme jlvargasme added the FTSCS 2022 Implementation needed for FTSCS 2022 paper label Aug 16, 2022
@SharmPranjal SharmPranjal self-assigned this Aug 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FTSCS 2022 Implementation needed for FTSCS 2022 paper
Projects
None yet
Development

No branches or pull requests

2 participants