Hostname: page-component-848d4c4894-hfldf Total loading time: 0 Render date: 2024-05-08T22:48:55.562Z Has data issue: false hasContentIssue false

A (machine-oriented) logic based on pattern matching

Published online by Cambridge University Press:  05 July 2023

Tim Lethen*
Affiliation:
Department of Philosophy, University of Helsinki, Helsinki, Finland

Abstract

Robinson’s unification algorithm can be identified as the underlying machinery of both C. Meredith’s rule D (condensed detachment) in propositional logic and of the construction of principal types in lambda calculus and combinatory logic. In combinatory logic, it also plays a crucial role in the construction of Meyer, Bunder & Powers’ Fool’s model. This paper now considers pattern matching, the unidirectional variant of unification, as a basis for logical inference, typing, and a very simple and natural model for untyped combinatory logic. An analysis of the new typing scheme will enable us to characterize a large class of terms of combinatory logic which do not change their principal type when being weakly reduced. We also consider the question whether the major or the minor premisse should be used as the fixed pattern.

Type
Paper
Copyright
© The Author(s), 2023. Published by Cambridge University Press

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

References

Abelson, H. and Sussman, G. J. (1984). Structure and Interpretation of Computer Programs, The MIT Press, Cambridge, MA.Google Scholar
Bimbó, K. (2011). Combinatory Logic: Pure, Applied and Typed, CRC Press, Boca Raton.CrossRefGoogle Scholar
Bunder, M. W. (1995). A simplified form of condensed detachment. Journal of Logic, Language, and Information 4 (2) 169173.CrossRefGoogle Scholar
Herbrand, J. (1930). Recherches sur la théorie de la démonstration. Phd dissertation, University of Paris. Reprinted in: J. Herbrand, Écrits logiques, Paris: Presses Universitaires de France 1968, 35–153. English translation of Chapter 5 in: van Heijenoort, J. (ed.) From Frege to Gödel: a Source Book in Mathematical Logic, 1879–1931. Harvard University Press, Cambridge, 1967, 529567.Google Scholar
Hindley, J. R. (1997). Basic Simple Type Theory, Cambridge Tracts in Theoretical Computer Science, Cambridge University Press, Cambridge.Google Scholar
Hindley, J. R. and Seldin, P. (2008). Lambda-Calculus and Combinators – an Introduction, Cambridge University Press, Cambridge.CrossRefGoogle Scholar
Kalman, J. A. (1983). Condensed detachment as a rule of inference. Studia Logica 42 (4) 443451.CrossRefGoogle Scholar
Knight, K. (1989). Unification: A multidisciplinary survey. ACM Computing Surveys (CSUR) 21 (1) 93124.CrossRefGoogle Scholar
Lemmon, E. J., Meredith, C. A., Meredith, D., Prior, A. N. and Thomas, I. (1957). Calculi of pure strict implication . Christchurch: Canterbury University College. Reprinted in: Davis, J. W., Hockney, D. J. and Wilson, W. K. (eds.) Philosophical Logic, Reidel, Dordrecht, 1969, 215250.Google Scholar
Meredith, D. (1977). In memoriam: Carew Arthur Meredith (1904–1976). Notre Dame Journal of Formal Logic 18 (4) 513516.CrossRefGoogle Scholar
Meyer, R. K., Bunder, M. W. and Powers, L. (1991). Implementing the ‘Fool’s model’ of combinatory logic. Journal of Automated Reasoning 7 (4) 597630.CrossRefGoogle Scholar
Norvig, P. (1991). Correcting a widespread error in unification algorithms. Software: Practice and Experience 21 (2) 231233.Google Scholar
Peterson, J. G. (1978). An automatic theorem prover for substitution and detachment systems. Notre Dame Journal of Formal Logic 19 (1) 119122.CrossRefGoogle Scholar
Robinson, J. A. (1965). A machine-oriented logic based on the resolution principle. Journal of the ACM (JACM) 12 (1) 2341.CrossRefGoogle Scholar
Robinson, J. A. (1979). Logic: Form and Function – The Mechanization of Deductive Reasoning, Edinburgh University Press, Edinburgh.Google Scholar
Russell, S. and Norvig, P. (2010). Artificial Intelligence: A Modern Approach , Prentice Hall Series in Artificial Intelligence, 3rd ed., Pearson, London.Google Scholar
Schönfinkel, M. (1924). Über die Bausteine der mathematischen Logik. Mathematische Annalen 92 (3) 305316.CrossRefGoogle Scholar