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

Positivity Check for Data Definition #838

Closed
SchrodingerZhu opened this issue Dec 19, 2022 · 1 comment · Fixed by #848
Closed

Positivity Check for Data Definition #838

SchrodingerZhu opened this issue Dec 19, 2022 · 1 comment · Fixed by #848
Assignees
Milestone

Comments

@SchrodingerZhu
Copy link
Contributor

data Dead : Set

open data Cat : Set
  | meow : (Cat → Dead) → Cat

def catIsDead : Cat → Dead
  | meow f => f (meow f)

def catIsAlive : Cat
  => meow catIsDead
  
def catIsBothDeadAndAlive: Dead
  => catIsDead catIsAlive
@mio-19 mio-19 self-assigned this Dec 21, 2022
@ice1000 ice1000 added this to the v0.27 milestone Dec 21, 2022
@bors bors bot closed this as completed in e2690a9 Dec 21, 2022
@mio-19 mio-19 reopened this Dec 26, 2022
@mio-19
Copy link
Contributor

mio-19 commented Dec 26, 2022

continue in #849

@mio-19 mio-19 closed this as completed Dec 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants