fix: `.eq_def` theorem generation with messy universes

closes #4673
2 files changed