Seol mar théacs é seo: An algebraic normal form for regular events.