feat: Add Chapter 6

This commit is contained in:
Glen Whitney 2021-01-19 22:09:21 -08:00
parent d5a19e0d69
commit 76456b2c21
3 changed files with 89 additions and 0 deletions

18
trans/chap6.str Normal file
View file

@ -0,0 +1,18 @@
module chap6
imports prop-laws prop-eval2 signatures/-
rules
SwapArgs : Or(e1,e2) -> Or(e2,e1)
SwapBoth : Or(e1,e2) -> Or(e2,e1)
SwapBoth : And(e1,e2) -> And(e2,e1)
ExMid: And(Not(x),x) -> False()
ExMid: And(x,Not(x)) -> False()
strategies
better-dnf =
innermost(DefI <+ DefE <+ ExMid <+ DAOL <+ DAOR <+ DN <+ DMA <+ DMO); eval-down

View file

@ -13,6 +13,7 @@ imports
prop-laws
prop-eval2
prop-desugar
chap6
rules // Debugging