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

Modeling of functions #53

Open
bvssvni opened this issue Oct 6, 2020 · 0 comments
Open

Modeling of functions #53

bvssvni opened this issue Oct 6, 2020 · 0 comments

Comments

@bvssvni
Copy link
Contributor

bvssvni commented Oct 6, 2020

I am gravitating towards using a straightforward way of modeling functions:

true : bool
false : bool
(and(true, true), true)
(and(false, X), false) :- X : bool.
(and(X, false), false) :- X : bool.

This can prove (and(false, false), false).

The type is used as the role, and the tuple is used as a proof that and(false, false) = false, even thought the actual expression would be bool(and(false, false)) = false.

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