-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
14 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
import Lean4Checker.Tests.AddFalse | ||
import Lean4Checker.Tests.AddFalseConstructor | ||
import Lean4Checker.Tests.ReduceBool | ||
import Lean4Checker.Tests.UseFalseConstructor |
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,7 @@ | ||
def foo : Bool := | ||
match IO.getRandomBytes 1 () with | ||
| .ok bs _ => bs[0]! >= 128 | ||
| _ => false | ||
theorem T1 : false = Lean.reduceBool foo := rfl | ||
theorem T2 : Lean.reduceBool foo = true := rfl | ||
theorem contradiction : False := nomatch T1.trans T2 |
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