Under the Treaty of Pavia , Emperor Louis IV gave the Palatinate to his brother during his stay in Italy . Under the Treaty of Pavia , Emperor Louis IV granted during his stay in Italy the Palatinate to his brother Duke Rudolph 's descendants .