Well-founded recursion with copatterns and sized types