Seol mar théacs é seo: Formalizing Medieval Logical Theories