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

Soundness of all(..) #79

Open
bvssvni opened this issue Oct 17, 2023 · 1 comment
Open

Soundness of all(..) #79

bvssvni opened this issue Oct 17, 2023 · 1 comment

Comments

@bvssvni
Copy link
Contributor

bvssvni commented Oct 17, 2023

Currently, this just lifts the entire expression without any checks on soundness.

Needs to be investigated in detail.

@bvssvni
Copy link
Contributor Author

bvssvni commented Oct 18, 2023

It is unsound when you can prove all(a -> b):

fn test_all all(a -> b) {
    x : all(a);
    return x;
}

fn test_absurd true -> a {
    use test_all;

    x : true;
    let y = test_all(x) : a;
    return y;
}

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

No branches or pull requests

1 participant