Classify finite-type constraints

A solver accepts only finite types with rigid constructors and distinct base types Int, Bool, and Char. Classify each independent equation below. Variables are reset for every row. Enter exactly success for a solvable equation, clash for a constructor conflict, or occurs for an occurs-check failure.

Independent equationClassification
List(p) = List(Char)
Pair(p,p) = Pair(Int,Bool)
p = Pair(Int,List(p))
p = p

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: