Skip to content
This repository has been archived by the owner on Jun 9, 2021. It is now read-only.

Commit

Permalink
added implies__eq rule as a temporary fix, to do what scDefRewriteRul…
Browse files Browse the repository at this point in the history
…es will eventually handle...
  • Loading branch information
Eddy Westbrook committed May 30, 2018
1 parent 2268a80 commit f160b98
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions prelude/Prelude.sawcore
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,10 @@ axiom xor__eq :: (b1 b2::Bool) ->
implies :: Bool -> Bool -> Bool;
implies = \ (a::Bool) (b::Bool) -> or (not a) b;

-- FIXME: this rule should be derived by scDefRewriteRules
implies__eq :: (a b::Bool) -> Eq Bool (implies a b) (or (not a) b);
implies__eq a b = Refl Bool (implies a b);

-- Decidable Boolean equality, also known as iff
primitive boolEq :: Bool -> Bool -> Bool;
axiom boolEq__eq :: (b1 b2::Bool) ->
Expand Down

0 comments on commit f160b98

Please sign in to comment.