Historia Brittonum
The fight against the terrible boar Twrch Trwyth certainly has antecedents in Celtic tradition, namely Arthur's boar-hunt with his hound Cafall, whose footprint is discussed in the "Mirabilia" appended to the "Historia Brittonum".