Distinguish purification types for strings proof reconstruction (#7521)
This improves the success rate for strings proof reconstruction for context-dependent simplifications.
It also makes a minor modification to how EXTF inferences work. As a special case, A => B becomes A ^ ~B => false when B is already equal to false. This PR removes this behavior for the sake of consistency. (This could be explored as a more general strategy for turning facts to conflicts from any source if necessary).
The strings solver applies context-dependent simplification in various ways. This ensures that the proof reconstruction is faithful for cases of congruence + rewriting instead of substitution+rewriting, which the inferences STRINGS_EXTF and STRINGS_EXTF_N rely on.
This fixes 11 cases where proof reconstruction fails for string theory lemmas on Amazon benchmarks.