duality in mathematics and physics