If an antonym is a word opposite in meaning to another, and a synonym is a word exactly or nearly the same in meaning as another word.
Does this mean that antonym is the antonym of synonym?
Yes. The clues are in the Greek prefixes:
anti- against, opposite, in answer to (antipodal, antiphony)
syn-, sym- with, together, same (synonym, sympathy)