This PR removes the deprecated aliases `Int.div := Int.tdiv` and `Int.mod := Int.tmod`. Later we will rename `Int.ediv` to `Int.div` and `Int.emod` to `Int.mod`.
16 lines
509 B
Text
16 lines
509 B
Text
example (x : Int) (h : x = 2) : Int.ediv 2 1 = x := by
|
|
simp [Int.ediv]
|
|
trace_state
|
|
simp (config := { decide := true }) [h]
|
|
|
|
example (n : Nat) : Int.ediv (Int.ofNat n) (Int.ofNat 0) = Int.ofNat (n / 0) := by
|
|
simp [Int.ediv]
|
|
|
|
example (n : Nat) : Int.ediv (Int.ofNat n) 0 = Int.ofNat (n / 0) := by
|
|
simp [Int.ediv]
|
|
|
|
example (n : Nat) : Int.mul (Int.ofNat n) (Int.ofNat 0) = Int.ofNat (n * 0) := by
|
|
simp [Int.mul]
|
|
|
|
example (n : Nat) : Int.mul (Int.ofNat n) 0 = Int.ofNat (n * 0) := by
|
|
simp [Int.mul]
|