-
Notifications
You must be signed in to change notification settings - Fork 214
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement new simplifications for boolean logic (#316)
... as standardized in dhall-lang/dhall-lang#109
- Loading branch information
1 parent
5a9126b
commit d287f02
Showing
14 changed files
with
97 additions
and
29 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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ example0 = λ(x : Bool) → x && True | ||
, example1 = λ(x : Bool) → True && x | ||
, example2 = λ(x : Bool) → x && False | ||
, example3 = λ(x : Bool) → False && x | ||
, example4 = λ(x : Bool) → x && x | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ example0 = λ(x : Bool) → x | ||
, example1 = λ(x : Bool) → x | ||
, example2 = λ(x : Bool) → False | ||
, example3 = λ(x : Bool) → False | ||
, example4 = λ(x : Bool) → x | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ example0 = λ(x : Bool) → x == True | ||
, example1 = λ(x : Bool) → True == x | ||
, example2 = λ(x : Bool) → x == x | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ example0 = λ(x : Bool) → x | ||
, example1 = λ(x : Bool) → x | ||
, example2 = λ(x : Bool) → True | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ example0 = λ(x : Bool) → if x then True else False | ||
, example1 = λ(x : Bool) → λ(y : Text) → if x then y else y | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ example0 = λ(x : Bool) → x | ||
, example1 = λ(x : Bool) → λ(y : Text) → y | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ example0 = λ(x : Bool) → x != False | ||
, example1 = λ(x : Bool) → False != x | ||
, example2 = λ(x : Bool) → x != x | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ example0 = λ(x : Bool) → x | ||
, example1 = λ(x : Bool) → x | ||
, example2 = λ(x : Bool) → False | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ example0 = λ(x : Bool) → x || True | ||
, example1 = λ(x : Bool) → True || x | ||
, example2 = λ(x : Bool) → x || False | ||
, example3 = λ(x : Bool) → False || x | ||
, example4 = λ(x : Bool) → x || x | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ example0 = λ(x : Bool) → True | ||
, example1 = λ(x : Bool) → True | ||
, example2 = λ(x : Bool) → x | ||
, example3 = λ(x : Bool) → x | ||
, example4 = λ(x : Bool) → x | ||
} |