4D mathematics