There are objects that are external and pseudo-independent from the mind but ultimately they cannot be absolutely independent of the subject. This is from Kant’s Copernican Revolution and his Refutation of Idealism.
It is the same for math and logic. They are objective to an extent but not absolutely objective, i.e. they do not exist independent of the collective consensus of humanity.