Skip to content

Commit

Permalink
chore: update to nightly-2024-09-25 (#655)
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasgrosser authored Sep 25, 2024
1 parent e6e6f63 commit b24dc53
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions SSA/Projects/InstCombine/ForLean.lean
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ theorem and_add_or {A B : BitVec w} : (B &&& A) + (B ||| A) = B + A := by

@[simp] theorem msb_signExtend_of_ge {i} (h : i ≥ w) (x : BitVec w) :
(x.signExtend i).msb = x.msb := by
simp [BitVec.msb_eq_getLsbD_last]
simp [BitVec.msb_eq_getLsbD_last, getLsbD_signExtend]
split <;> by_cases (0 < i) <;> simp_all
simp [show i = w by omega]

Expand All @@ -518,16 +518,16 @@ theorem allOnes_sshiftRight {w n : Nat} :
(allOnes w).sshiftRight n = allOnes w := by
ext i
by_cases h : 0 < w
· simp [BitVec.msb_allOnes h]
· simp ; omega
· simp [BitVec.msb_allOnes h, getLsbD_sshiftRight]
· simp [getLsbD_sshiftRight]; omega

@[simp]
theorem zero_sshiftRight {w n : Nat} :
(0#w).sshiftRight n = 0#w := by
ext i
by_cases h : 0 < w
· simp [BitVec.msb_allOnes h]
· simp
· simp [BitVec.msb_allOnes h, getLsbD_sshiftRight]
· simp [getLsbD_sshiftRight]

@[simp]
theorem zero_ushiftRight {w n : Nat} :
Expand All @@ -540,7 +540,7 @@ theorem zero_ushiftRight {w n : Nat} :
theorem not_sshiftRight {b : BitVec w} :
~~~b.sshiftRight n = (~~~b).sshiftRight n := by
ext i
simp
simp [getLsbD_sshiftRight]
by_cases h : w ≤ i
<;> by_cases h' : n + i < w
<;> by_cases h'' : 0 < w
Expand Down
6 changes: 3 additions & 3 deletions lake-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"type": "git",
"subDir": null,
"scope": "leanprover-community",
"rev": "c37494a698d68c5e3711575fcb90ebf2974900ff",
"rev": "cd404b26c6ea643b9fdf5fb004d83a88c0f00f3e",
"name": "batteries",
"manifestFile": "lake-manifest.json",
"inputRev": "nightly-testing",
Expand Down Expand Up @@ -75,10 +75,10 @@
"type": "git",
"subDir": null,
"scope": "",
"rev": "08a9b5c185b952bb4a0c628361f4b2f8fe7eb623",
"rev": "f22e9cb44e572aa5c27f2b3e5136e365e36bf1c3",
"name": "mathlib",
"manifestFile": "lake-manifest.json",
"inputRev": "nightly-testing-2024-09-24",
"inputRev": "nightly-testing-2024-09-25",
"inherited": false,
"configFile": "lakefile.lean"},
{"url": "https://github.com/acmepjz/md4lean",
Expand Down
2 changes: 1 addition & 1 deletion lakefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defaultTargets = ["SSA"]
[[require]]
name = "mathlib"
git = "https://github.com/leanprover-community/mathlib4"
rev = "nightly-testing-2024-09-24"
rev = "nightly-testing-2024-09-25"

[[require]]
name = "Cli"
Expand Down
2 changes: 1 addition & 1 deletion lean-toolchain
Original file line number Diff line number Diff line change
@@ -1 +1 @@
leanprover/lean4:nightly-2024-09-24
leanprover/lean4:nightly-2024-09-25

0 comments on commit b24dc53

Please sign in to comment.