feat: Add Chapter 6
This commit is contained in:
parent
d5a19e0d69
commit
76456b2c21
3 changed files with 89 additions and 0 deletions
18
trans/chap6.str
Normal file
18
trans/chap6.str
Normal 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
|
||||
|
|
@ -13,6 +13,7 @@ imports
|
|||
prop-laws
|
||||
prop-eval2
|
||||
prop-desugar
|
||||
chap6
|
||||
|
||||
rules // Debugging
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue