Symmetries In Physics, Metaphysics, And Logic