Topology and chemistry of competing interactions in tetravalent lanthanides