Thanks Kato, the 20mm rule is certainly interesting. Do you know of the year in which they were defined?
November 19, 1990 was the original signing
Remember that at that point (and for more than another decade...) the "standard" IFVs of NATO (used with a "IFV doctrine") had 20-25mm guns. I mean the Bradley, Marder, and AMX-10P.
The Warrior (with its 30mm gun) was "brand-new", with deliveries only starting 3 years earlier. And the BMP-2 on the Soviet side was also just introduced a few years earlier itself, and was basically just a well-improved BMP-1.
Personally, I have difficulty in accepting that mounting a 20mm cannon on a M113 changes its classification from an APC to an IFV, as the M113 was designed as an APC from the start, as opposed to purpose build IFV such as the Warrior and BMP. I hope this isn't an academic discussion, but maybe such definitions need to be updates to keep up with advances in military technology and innovation?
Well, that depends on what the role of a IFV and a APC entails really.
Within doctrine, the APC doesn't "fight". Its armament is self-defense only, and it generally isn't a platform
from which the infantry squad fights - it only serves to transport it into action.
The IFV however provides an actual combat capability - a fire support platform operating
with the infantry in combat, and a vehicle that at least somewhat has the ability to
fight its way
into the mission area (which, no, is not something a APC would ever do).
With me still there?
Now, with regard to armament - you don't mount a bigger gun on a vehicle just because it's bigger/better of course. The NM-135, unlike the original M113, is
designed to fight as a IFV. Its operational use is as a IFV as described above.
Now, the 20mm caliber was chosen as the "divisor" because it's the point at which the armament becomes "non-defensive". With a .50cal HMG (or a 14.5mm), you can't really shoot up enemy armoured vehicles, or lend effective penetrating fire to your infantry. Meaning with a vehicle equipped with a HMG you cannot perform the above mission to "fight with the infantry". You can defend yourself, but you can't actively, offensively fight.
With a 20mm gun (and maybe the also mentioned ATGM launcher), you're at the point where you can actually do that. 20mm APDS provides good behind-protection effects in typical infantry combat terrains, and - let's not forget that - 20mm is also "officially" the point where you're allowed to use HE/shrapnel ammunition on the enemy.