use of sorted walk for proving consistency/lemmas