Skip to content

Commit

Permalink
feat: Adding HackersDelight file (#457)
Browse files Browse the repository at this point in the history
  • Loading branch information
AnotherAlexHere authored Jul 12, 2024
1 parent d30ad76 commit f78035f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions SSA/Projects/InstCombine/Alive.lean
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,5 @@ import SSA.Projects.InstCombine.LLVM.Lemmas
import SSA.Projects.InstCombine.Test
-- Examples for the paper
import SSA.Projects.InstCombine.PaperExamples
-- Proofs from Hackers Delight Book
import SSA.Projects.InstCombine.HackersDelight
14 changes: 14 additions & 0 deletions SSA/Projects/InstCombine/HackersDelight.lean
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

0 comments on commit f78035f

Please sign in to comment.