SUBST_MATCH : (thm -> thm -> thm)
A |- u=v A' |- t -------------------- SUBST_MATCH (A|-u=v) (A'|-t) A u A' |- t[v/u]
- val thm1 = SPECL [Term `m:num`, Term `n:num`] arithmeticTheory.ADD_SYM; > val thm1 = |- m + n = n + m : thm
- SUBST_MATCH thm1 (ASSUME (Term `(n + 1) + (m - 1) = m + n`)); > val it = [.] |- m - 1 + (n + 1) = m + n : thm - SUBST_MATCH thm1 (ASSUME (Term `!n. (n + 1) + (m - 1) = m + n`)); > val it = [.] |- !n. n + 1 + (m - 1) = m + n : thm