India declared a strong first-innings lead and dismissed Sri Lanka cheaply, setting a 372-run target for victory as the fourth day progressed in Galle.