Here the SMT solver called by euclid_finish is bypassing the termination check. @loganrjmurphy Any idea on how this can be fixed? I'm thinking about either preventing euclid_apply from using the theorem itself or preventing SMT solvers from using local lemmas with universally quantified variables.