Intensional computation with higher-order functions

被引:1
作者
Jay, Barry [1 ]
机构
[1] Univ Technol Sydney, Ctr Artificial Intelligence, Sydney, NSW, Australia
关键词
Intensional computation; Higher-order functions; SF-calculus; Foundations of computation;
D O I
10.1016/j.tcs.2019.02.016
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
Intensional computations are those that query the internal structure of their arguments. In a higher-order setting, such queries perform program analysis. This is beyond the expressive power of traditional term rewriting systems, such as lambda-calculus or combinatory logic, as they are extensional. In such settings it has been necessary to encode or quote the program before analysis. However, there are intensional calculi, specifically confluent term rewriting systems, that can analyse higher-order programs within the calculus proper, without quotation; there are even programs that produce the Goedel numbers of their program argument This paper summarizes the current situation. Highlights include the following observations. We have known since 2011 that the simplest intensional calculus, SF-calculus, supports arbitrary queries of closed normal forms, including equality, pattern-matching, searching and self-interpretation. Recent work, verified using the Coq proof assistant, has shown that all recursive programs can be represented as closed normal forms in SF-calculus, and even in combinatory logic. Thus, we can here deduce that SF-calculus (but not combinatory logic) can define queries of programs. These results are compatible with direct support for lambda-abstraction. Although these results conflict with the traditional understanding of expressive power of combinatory logic and lambda-calculus, as developed by Church and Kleene, our recent publication has shown that their approach is compromised by its reliance on encodings. To drive the point home, this paper uses a non-standard encoding to lambda-define a trivial solution of the Halting Problem. (C) 2019 Elsevier B.V. All rights reserved.
引用
收藏
页码:76 / 90
页数:15
相关论文
共 33 条
[1]  
Baader F., 1999, Term Rewriting and All That
[2]  
Barendregt H., 1991, J. Funct. Program, V1, P229
[3]  
Barendregt H.P., 1984, The Lambda Calculus - Its Syntax and Semantics, volume 103 of Studies in Logic and the Foundations of Mathematics, V103
[4]   Typed Self-Evaluation via Intensional Type Functions [J].
Brown, Matt ;
Palsberg, Jens .
ACM SIGPLAN NOTICES, 2017, 52 (01) :415-428
[5]  
Bruce KimB., 2002, Foundations of Object-Oriented Languages: Types and Semantics
[6]   An unsolvable problem of elementary number theory [J].
Church, A .
AMERICAN JOURNAL OF MATHEMATICS, 1936, 58 :345-363
[7]  
Church A., J SYMBOLIC LOGIC, V2, P42, DOI DOI 10.2307/2268808
[8]  
Curry H.H., 1958, Combinatory Logic, VI
[9]   A modal analysis of staged computation [J].
Davies, R ;
Pfenning, F .
JOURNAL OF THE ACM, 2001, 48 (03) :555-604
[10]  
Girard J-Y., 1989, TRACTS THEORETICAL C