pureSimps.pure_ss : simpset
Simplification with pure_ss is analogous to rewriting with PURE_REWRITE_TAC and others. The only difference is that the theorems passed to SIMP_TAC pure_ss are interpreted as conditional rewrite rules. Though the pure_ss can’t take advantage of extra contextual information garnered through congruences, it can still discharge side conditions. (This is demonstrated in the examples below.)
|- !m n p. n <= p ==> ((m + n = p) = m = p - n)
- ASM_SIMP_TAC pure_ss [ADD_EQ_SUB] ([“x <= y”], “z + x = y”); > val it = ([([`x <= y`], `z = y - x`)], fn) : tactic_result
- SIMP_TAC pure_ss [ADD_EQ_SUB] ([], “x <= y ==> (z + x = y)”); > val it = ([([], `x <= y ==> (z + x = y)`)], fn) : tactic_result
- SIMP_TAC bool_ss [ADD_EQ_SUB] ([], “x <= y ==> (z + x = y)”); > val it = ([([], `x <= y ==> (z = y - x)`)], fn) : tactic_result