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

Dependent Pairs Syntax unsoundly ignores refinements #2274

Open
nikivazou opened this issue Mar 21, 2024 · 0 comments
Open

Dependent Pairs Syntax unsoundly ignores refinements #2274

nikivazou opened this issue Mar 21, 2024 · 0 comments

Comments

@nikivazou
Copy link
Member

For example, the below is SAFE:

{-@ neg :: x:{v:Int | 0 <= v} -> (y::{v:Int | 0 <= v}, {v:() | y < x}) @-}
neg :: Int -> (Int, ())
neg x = (x - 1, ())

But also the below (i.e., refinements are totally ignored)

{-@ neg :: x:{v:Int | 0 <= v} -> (y::{v:Int | false}, {v:() | y < x}) @-}
neg :: Int -> (Int, ())
neg x = (x - 1, ())
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