On the theory of Lagrangian duality