Detect a cycle hidden by earlier bindings

A compiler's finite-type solver processes these constraints in the displayed order. Arrow(X,Y) denotes a function from X to Y, and all constructors are rigid:


a=List(b),b=Arrow(c,Int),c=Pair(Bool,a).\begin{aligned} a&=\mathrm{List}(b),\\ b&=\mathrm{Arrow}(c,\mathrm{Int}),\\ c&=\mathrm{Pair}(\mathrm{Bool},a). \end{aligned}


After processing the first two equations, fully propagate their bindings into the right side of the third equation. Give that right-side expression using Pair, List, and Arrow notation. Then identify the outcome by entering success, constructor clash, or occurs check failure.

Your answers

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Unification Questions: