Closed dharmatech closed 4 years ago
The example as shown in the book:
example {m n : ℕ} (h : n = 1) (h' : 0 = m) : (f m n) * m = m := by simp [h, h'.symm, f]
doesn't actually require all three items passed to simp. It only requires two:
simp
example {m n : ℕ} (h : n = 1) (h' : 0 = m) : (f m n) * m = m := by simp [h, h'.symm]
These two work as well:
example {m n : ℕ} (h : n = 1) (h' : 0 = m) : (f m n) * m = m := by simp [f, h'.symm]
If we change the goal as follows, all three appear to be required:
example {m n : ℕ} (h : n = 1) (h' : 0 = m) : (f m n) = n := by simp [h, h'.symm, f]
The example as shown in the book:
doesn't actually require all three items passed to
simp
. It only requires two:These two work as well:
If we change the goal as follows, all three appear to be required: