This is pretty big PR that upstreams all of Std.Data.Int.Init in one go. So far lemmas have seen minimal changes needed to adapt to Lean core environment. --------- Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
11 lines
197 B
Text
11 lines
197 B
Text
example (n : Nat) (i : Int) : n + i = i + n := by
|
|
rw [Int.add_comm]
|
|
|
|
def f1 (a : Int) (b c : Nat) : Int :=
|
|
a + (b - c)
|
|
|
|
def f2 (a : Int) (b c : Nat) : Int :=
|
|
(b - c) + a
|
|
|
|
#print f1
|
|
#print f2
|