On Prolog and the Occur Check Problem. Marriott, K. & Søndergaard, H. SIGPLAN Notices, 24(5):76–82, 1989. doi abstract bibtex It is well known that omission of the occur check in unification leads to unsound Prolog systems. Nevertheless, most Prolog systems omit the occur check because this makes unification much faster and unsoundness allegedly seldom manifests itself. We revisit the occur check problem and point to two aspects that have previously received no attention. Firstly, ``unification without the occur check'' is ambiguous, and in practice, Prolog systems vary markedly in their reaction to programs having occur check problems. Secondly, even very simple program transformations are unsafe for pure Prolog when the occur check is omitted. We conclude that the occur check problem is important, and in particular, that the current effort to standardize Prolog should address it.
@Article{Mar-Son_occur89,
author = {Kim Marriott and
Harald S{\o}ndergaard},
title = {On {Prolog} and the Occur Check Problem},
journal = {SIGPLAN Notices},
volume = {24},
number = {5},
pages = {76--82},
year = {1989},
doi = {10.1145/66068.66075},
abstract = {It is well known that omission of the occur check in
unification leads to unsound Prolog systems. Nevertheless,
most Prolog systems omit the occur check because this
makes unification much faster and unsoundness allegedly
seldom manifests itself. We revisit the occur check
problem and point to two aspects that have previously
received no attention. Firstly, ``unification without the
occur check'' is ambiguous, and in practice, Prolog systems
vary markedly in their reaction to programs having occur
check problems. Secondly, even very simple program
transformations are unsafe for pure Prolog when the occur
check is omitted. We conclude that the occur check problem
is important, and in particular, that the current effort to
standardize Prolog should address it.},
keywords = {Logic programming, Prolog, Unification},
}
Downloads: 0
{"_id":"4X2ieNhb9c2wtYNLJ","bibbaseid":"marriott-sndergaard-onprologandtheoccurcheckproblem-1989","author_short":["Marriott, K.","Søndergaard, H."],"bibdata":{"bibtype":"article","type":"article","author":[{"firstnames":["Kim"],"propositions":[],"lastnames":["Marriott"],"suffixes":[]},{"firstnames":["Harald"],"propositions":[],"lastnames":["Søndergaard"],"suffixes":[]}],"title":"On Prolog and the Occur Check Problem","journal":"SIGPLAN Notices","volume":"24","number":"5","pages":"76–82","year":"1989","doi":"10.1145/66068.66075","abstract":"It is well known that omission of the occur check in unification leads to unsound Prolog systems. Nevertheless, most Prolog systems omit the occur check because this makes unification much faster and unsoundness allegedly seldom manifests itself. We revisit the occur check problem and point to two aspects that have previously received no attention. Firstly, ``unification without the occur check'' is ambiguous, and in practice, Prolog systems vary markedly in their reaction to programs having occur check problems. Secondly, even very simple program transformations are unsafe for pure Prolog when the occur check is omitted. We conclude that the occur check problem is important, and in particular, that the current effort to standardize Prolog should address it.","keywords":"Logic programming, Prolog, Unification","bibtex":"@Article{Mar-Son_occur89,\n author = {Kim Marriott and \n\t\tHarald S{\\o}ndergaard},\n title = {On {Prolog} and the Occur Check Problem},\n journal = {SIGPLAN Notices},\n volume = {24},\n number = {5},\n pages = {76--82},\n year = {1989},\n doi = {10.1145/66068.66075},\n abstract = {It is well known that omission of the occur check in \n\t\tunification leads to unsound Prolog systems. Nevertheless,\n\t \tmost Prolog systems omit the occur check because this\n\t\tmakes unification much faster and unsoundness allegedly\n\t\tseldom manifests itself. We revisit the occur check\n\t\tproblem and point to two aspects that have previously \n\t\treceived no attention. Firstly, ``unification without the\n\t\toccur check'' is ambiguous, and in practice, Prolog systems\n\t\tvary markedly in their reaction to programs having occur\n\t\tcheck problems. Secondly, even very simple program\n\t\ttransformations are unsafe for pure Prolog when the occur\n\t\tcheck is omitted. We conclude that the occur check problem\n\t\tis important, and in particular, that the current effort to\n\t\tstandardize Prolog should address it.},\n keywords = {Logic programming, Prolog, Unification},\n}\n\n","author_short":["Marriott, K.","Søndergaard, H."],"key":"Mar-Son_occur89","id":"Mar-Son_occur89","bibbaseid":"marriott-sndergaard-onprologandtheoccurcheckproblem-1989","role":"author","urls":{},"keyword":["Logic programming","Prolog","Unification"],"metadata":{"authorlinks":{}},"html":""},"bibtype":"article","biburl":"https://people.eng.unimelb.edu.au/harald/bibbase.bib","dataSources":["yWvm3kzg5vKQAPLm7","ofmsZryxNDBSpE7j5","9aC4cxLD8D6oJ3FLN","wpkuJrZJJtqra3FbL","W7ih7WyQivP4EDh83","BNGFBQQncqevukxoe","q5pWX4XZgAS4TQBof","yb3uN577XrYa7qf57","9jmvjAEoFta6emcgS","XqcrNTrCCBr9mSd37"],"keywords":["logic programming","prolog","unification"],"search_terms":["prolog","occur","check","problem","marriott","søndergaard"],"title":"On Prolog and the Occur Check Problem","year":1989}