English

A Note on Occur-Check

Logic in Computer Science 2021-09-20 v1 Programming Languages

Abstract

Most known results on avoiding the occur-check are based on the notion of "not subject to occur-check" (NSTO). It means that unification is performed only on such pairs of atoms for which the occur-check never succeeds in any run of a nondeterministic unification algorithm. Here we show that this requirement is too strong. We show how to weaken it, and present some related sufficient conditions under which the occur-check may be safely omitted. We show examples for which the proposed approach provides more general results than the approaches based on well-moded and nicely moded programs (this includes cases to which the latter approaches are inapplicable).

Cite

@article{arxiv.2109.08278,
  title  = {A Note on Occur-Check},
  author = {Włodzimierz Drabent},
  journal= {arXiv preprint arXiv:2109.08278},
  year   = {2021}
}

Comments

In Proceedings ICLP 2021, arXiv:2109.07914

R2 v1 2026-06-24T06:03:29.247Z