Can you please cite and copy the exact text of the constitution which bases this?
I use this english translation of the constitution for citations:
https://www.constituteproject.org/constitution/Brazil_2017
Every point in the text is linkable.
Searching the constitution's text for article 4 gives me these:
https://www.constituteproject.org/constitution/Brazil_2017#s...
An enumeration of the republic's objectives in the context of its international relations.
https://www.constituteproject.org/constitution/Brazil_2017#s...
What appears to be some historic details concerning the transition from last century's military dictatorship to the democracy.
I still cannot find it.
Anyway...
I'm not exactly a fan of the "it's the court's interpretation" argument. It's an appeal to authority. The authority of these judges is questionable. They aren't real judges whose knowledge of law was tested by competition via concurso público. They're there due to their political connections. When it comes to correct application of the law, I'd sooner trust the judges in the lower courts than the current president's former lawyer.
I'm also not a fan of the word "interpretation". It opens the door to the selective and creative applications of the law. These judges usurped power when they started legislating instead of applying the law as written. I've had actual lawyers complain to my face about cases where these judges just made up their own interpretation instead of doing what the written text says.
I really want to see the article you speak of so that I can at least try to understand the logic they're using.