To understand Pact with the devil we must go back to the documents: Legend of Theophilus (6th century); early modern demonology. Trial records and treatises reveal a great deal, provided they are read critically.
Between its earliest attestations and modern readings, Pact with the devil has been taken up, translated and sometimes simplified: separating the layers is the first task of any student.
The contract by which the witch supposedly gave up her soul in exchange for powers: for demonologists it was the heart of the crime.
Origin and sources: Legend of Theophilus (6th century); early modern demonology
To place Pact with the devil in context we have to start from Legend of Theophilus (6th century); early modern demonology: that is where the theme takes the shape the sources give it.