For example, http://www.aa.com/i18nForward.do?p=/customerService/customer...
American specifically prohibits the practices commonly known as:
Back to Back Ticketing: The combination of two or more roundtrip excursion fares end to end for the purpose of circumventing minimum stay requirements.
And yes, there are automated algorithms to detect that (although both tickets would need to be on the same airline for those algorithms to work, and the fact that MHT/BOS/PVD are different airports may be enough to get around that in your case)
A : 11/20 : SFO - MHT
B : 11/25 : PVD - SFO
C : 12/20 : SFO - PVD
D : 12/30 : BOS - SFO
And you bought these in round-trip pairs, AD was one pair and BC was another pair. Which might be cheaper than buying AB and CD, depending on what's available, especially if the tickets are from different airlines.
Shouldn't those sites that compare a bunch of airlines have software that figures this out for you automatically?
The first ticket was: 11/20 SFO - MHT 12/30 BOS - SFO
And the second: 11/25 PVD - SFO 12/20 SFO - PVD