Mathematics has nothing to do with laws of physics. Even if the laws of physics[0] were different, these mathematical[1] truths would remain the same.
[0] Laws of physics don't actually exist. They're shorthand generalizations about features of particulars. The notion of some kind of abstract disembodied "laws" that somehow "govern" everything is absurd.
[1] For clarify: mathematics is a field that studies such things.