Specified a difficulty and a set of premises, trouble-solving cuts down to searching for just a proof tree whose root node is labelled by an answer of the trouble and whose leaf nodes are labelled by premises or axioms. In the case of Horn clauses, challenge-solving search may be performed by reasoning forwards from the premises or backwards from t