In medieval educational theory the trivium consisted of grammar, rhetoric, and logic