Organic macromolecular compounds containing phosphorus as ingredients in lubricant compositions