In Macbeth's book 'The Mechanics of Proof,' the author provides a tactic called addarith
to eliminate the need to write calc
proofs for facts that can be derived from addition and subtraction. For example,
example {x : ℤ} (h1 : x + 4 = 2) : x = -2 := by addarith [h1]
Is an equivalent already part of mathlib4? If so, how would I find it?
(I wasn't able to find it in either the prelude or searching, but I haven't developed enough familiarity and good search patterns yet.)