Pope John Paul II
Dominum et Vivificantem §28
Dominum et Vivificantem: On the Holy Spirit in the Life of the Church and the World
28 Here we wish to concentrate our attention principally on this mission of the Holy Spirit, which is "to convince the world concerning sin," but at the same time respecting the general context of Jesus' words in the Upper Room. The Holy Spirit, who takes from the Son the work of the Redemption of the world, by this very fact takes the task of the salvific "convincing of sin." This convincing is in permanent reference to "righteousness": that is to say to definitive salvation in God, to the fulfillment of the economy that has as its center the crucified and glorified Christ. And this salvific economy of God in a certain sense removes man from "judgment," that is from the damnation which has been inflicted on the Sill or Satan, "the prince of this world," the one who because of his sin has become "the ruler of this world of darkness." And here we see that, through this reference to "judgment," vast horizons open up for understanding "sin" and also "righteousness." The Holy Spirit, by showing sin against the background of Christ's Cross in the economy of salvation (one could say "sin saved"), enables us to understand how his mission is also "to convince" of the sin that has already been definitively judged ("sin condemned").
Source: Dominum et Vivificantem (Vatican.va)