-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(rules): add implication normalisation rules
Adds the following normalisation rules for implication: + Contrapositive `!p -> !q ~~> q->p where p,q are safe` + Negation `!(p -> q) ~~> p/\ !q where p->q is safe` + Left distributivity: `(r->p) -> (r->q) ~~> (r -> (p ~> q))` + Import-export / uncurrying: `p -> (q->r) ~~> (p/\q) -> r` Import-export has a lower priority of 8400 to allow distributivity to apply first. For example, we want to do: ``` ((r -> p) -> (r -> q)) ~> (r -> (p -> q)) [left-distributivity] (r -> (p -> q)) ~> (r/\p) ~> q [uncurry] ``` not ``` ((r->p) -> (r->q)) ~> ((r->p) /\ r) -> q) ~> [uncurry] ```
- Loading branch information
1 parent
47c8648
commit 970bbe5
Showing
7 changed files
with
3,624 additions
and
245 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.