Lime adds calcium ions and increases the pH which shifts the distribution of carbonate alkalinity from bicarbonate (HCO31) to carbonate (CO32) alkalinity. When the concentrations of calcium and carbonate ions exceed the solubility product, calcium carbonate precipitate is formed.