So, foreigners with guns can prevent the people's right to declare independence.
Where is that legal?
Link?
Every word of that is wrong.
First, the Jewish people are not foreigners in their own homeland.
Second, it wasn't (and isn't) guns which gave the Jewish people the right to self-determination in their own homeland -- it is the inherent right of all peoples to self-determination and sovereignty. The guns only became necessary when hostile Arabs decided to prevent the Jewish people from exercising their inherent, inviolable right to self-determination, as confirmed and written in international law by the international community from 1920 onward. In fact, you are (again) inverting the truth. It is the Arabs who are STILL (!) attempting to use guns and violence to reverse and erase the actual, declared and recognized independence of Israel. With absolutely zero effect, except to entrench the Jewish peoples need for safety and security.
Third, no one is preventing the Arab Palestinians from declaring independence. In fact, they HAVE declared independence, in 1988. Their declaration is complete. And look! no one prevented it. In fact, Hamas can declare independence in Gaza today, tomorrow or next week. They meet the necessary criteria of: government, people, territory and treating with other states.
And to answer your question about legality: the accepted legal standard in the world where different, distinct ethnic/cultural groups within a territory are each vying for self-determination and sovereignty is to partition the territory. In other words, the accepted legal standard is that self-determination trumps territorial integrity. Witness former Ottoman Empire, Yugoslavia, Czechoslovakia, Sudan, etc, etc, etc. Its only the Arab Palestinians who insist on special treatment. Why is that, do you think?