-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Adding HackersDelight file (#457)
- Loading branch information
1 parent
d30ad76
commit f78035f
Showing
2 changed files
with
16 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
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,14 @@ | ||
import Init.Data.BitVec.Basic | ||
import Init.Data.BitVec.Lemmas | ||
import Init.Data.BitVec.Bitblast | ||
|
||
namespace HackersDelight | ||
|
||
namespace Ch1 | ||
|
||
theorem neg_eq_not_add_one {x : BitVec w} : - x = ~~~ x + 1 := by | ||
apply BitVec.neg_eq_not_add | ||
|
||
end Ch1 | ||
|
||
end HackersDelight |