 He also studied philosophical texts of the Spanish Enlightenment under the tutelage of the priest Terrazas , and aspired to implement the new ideas in his country . He wrote a thesis with strong criticism of the native slavery at the mines of Potosí , influenced by the Spanish jurist Juan de Solorzano Pereira , the foremost publisher of Indian Law , and Victoria Villalva , fiscal of the Audiencia of Charcas and defender of the indigenous cause . 
