chore: cleaning up imports (#8314)
This commit is contained in:
parent
77302b6572
commit
aa647f3cd6
6 changed files with 7 additions and 3 deletions
|
|
@ -516,7 +516,7 @@ theorem msb_neg {w : Nat} {x : BitVec w} :
|
|||
rw [(show w = w - 1 + 1 by omega), Int.pow_succ] at this
|
||||
omega
|
||||
|
||||
@[simp] theorem BitVec.setWidth_neg_of_le {x : BitVec v} (h : w ≤ v) : BitVec.setWidth w (-x) = -BitVec.setWidth w x := by
|
||||
@[simp] theorem setWidth_neg_of_le {x : BitVec v} (h : w ≤ v) : BitVec.setWidth w (-x) = -BitVec.setWidth w x := by
|
||||
simp [← BitVec.signExtend_eq_setWidth_of_le _ h, BitVec.signExtend_neg_of_le h]
|
||||
|
||||
/-! ### abs -/
|
||||
|
|
|
|||
|
|
@ -7,7 +7,8 @@ module
|
|||
|
||||
prelude
|
||||
import Init.Data.UInt.Basic
|
||||
import Init.Data.String
|
||||
import Init.Data.String.Basic
|
||||
import Init.Data.ByteArray.Basic
|
||||
universe u
|
||||
|
||||
instance : Hashable Nat where
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ Authors: Dany Fabian, Sebastian Ullrich
|
|||
module
|
||||
|
||||
prelude
|
||||
import Init.Data.String
|
||||
import Init.Data.String.Basic
|
||||
import Init.Data.Array.Basic
|
||||
import Init.Data.SInt.Basic
|
||||
import Init.Data.Vector.Basic
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ import Init.System.IOError
|
|||
import Init.System.FilePath
|
||||
import Init.System.ST
|
||||
import Init.Data.Ord
|
||||
import Init.Data.String.Extra
|
||||
|
||||
open System
|
||||
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ prelude
|
|||
import Init.Data.Ord
|
||||
import Init.Data.SInt.Lemmas
|
||||
import Init.Data.Vector.Lemmas
|
||||
import Init.Data.String.Lemmas
|
||||
|
||||
/-!
|
||||
# Type classes related to `Ord`
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ Authors: Mac Malone
|
|||
-/
|
||||
prelude
|
||||
import Init.Data.Ord
|
||||
import Init.Data.String.Lemmas
|
||||
|
||||
namespace Lake
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue