No-one in their right mind would want to invade a country where the populace is armed with these vicious bastards -
You've presented some facts but none of them are evidence for the Swiss having not been invaded because they have a regulated militia. You might as well say that having a higher than average number of cuckoo clocks per household has preventing them from being invaded because that's as much of a reason as the militia.