The trivium comprised the three subjects taught first in medieval universities: grammar, rhetoric, and logic