On the Versatility of Open Logical Relations Continuity, Automatic Differentiation, and a Containment Theorem

被引:12
|
作者
Barthe, Gilles [1 ,4 ]
Crubille, Raphaelle [4 ]
Dal Lago, Ugo [2 ,3 ]
Gavazzo, Francesco [2 ,3 ,4 ]
机构
[1] MPI Secur & Privacy, Bochum, Germany
[2] Univ Bologna, Bologna, Italy
[3] INRIA Sophia Antipolis, Sophia Antipolis, France
[4] IMDEA Software Inst, Madrid, Spain
关键词
Lambda Calculus; Logical Relations; Continuity Analysis; Automatic Differentiation; DOMAIN THEORY;
D O I
10.1007/978-3-030-44914-8_3
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Logical relations are one among the most powerful techniques in the theory of programming languages, and have been used extensively for proving properties of a variety of higher-order calculi. However, there are properties that cannot be immediately proved by means of logical relations, for instance program continuity and differentiability in higher-order languages extended with real-valued functions. Informally, the problem stems from the fact that these properties are naturally expressed on terms of non-ground type (or, equivalently, on open terms of base type), and there is no apparent good definition for a base case (i.e. for closed terms of ground types). To overcome this issue, we study a generalization of the concept of a logical relation, called open logical relation, and prove that it can be fruitfully applied in several contexts in which the property of interest is about expressions of first-order type. Our setting is a simply-typed lambda-calculus enriched with real numbers and real-valued first-order functions from a given set, such as the one of continuous or differentiable functions. We first prove a containment theorem stating that for any collection of real-valued first-order functions including projection functions and closed under function composition, any well-typed term of first-order type denotes a function belonging to that collection. Then, we show by way of open logical relations the correctness of the core of a recently published algorithm for forward automatic differentiation. Finally, we define a refinement-based type system for local continuity in an extension of our calculus with conditionals, and prove the soundness of the type system using open logical relations.
引用
收藏
页码:56 / 83
页数:28
相关论文
共 13 条
  • [1] The logical strength of the uniform continuity theorem
    Berger, Josef
    [J]. LOGICAL APPROACHES TO COMPTATIONAL BARRIERS, PROCEEDINGS, 2006, 3988 : 35 - 39
  • [2] Logical Ontology Validation Using an Automatic Theorem Prover
    vor der Brueck, Tim
    Stenzhorn, Holger
    [J]. ECAI 2010 - 19TH EUROPEAN CONFERENCE ON ARTIFICIAL INTELLIGENCE, 2010, 215 : 491 - 496
  • [3] An open mapping theorem without continuity and linearity
    Li Ronglu
    Zhong Shuhui
    Swartz, C.
    [J]. TOPOLOGY AND ITS APPLICATIONS, 2010, 157 (13) : 2086 - 2093
  • [4] AUTOMATIC-CONTINUITY AND OPENNESS OF CONVEX RELATIONS
    BORWEIN, JM
    [J]. PROCEEDINGS OF THE AMERICAN MATHEMATICAL SOCIETY, 1987, 99 (01) : 49 - 55
  • [5] Automatic Classification of Containment and Support Spatial Relations in English and Dutch
    Lockwood, Kate
    Lovett, Andrew
    Forbus, Ken
    [J]. SPATIAL COGNITION VI: LEARNING, REASONING, AND TALKING ABOUT SPACE, 2008, 5248 : 283 - 294
  • [6] AUTOMATIC LOGICAL NAVIGATION AMONG RELATIONS USING STEINER TREES
    LIN, DK
    [J]. PROCEEDINGS : FIFTH INTERNATIONAL CONFERENCE ON DATA ENGINEERING, 1989, : 582 - 588
  • [7] Quantitative BT-Theorem and automatic continuity for standard von Neumann algebras
    Fidaleo, Francesco
    Zsido, Laszlo
    [J]. ADVANCES IN MATHEMATICS, 2016, 289 : 1236 - 1260
  • [8] RADICAL BANACH-ALGEBRAS AND AUTOMATIC-CONTINUITY - OPEN QUESTIONS
    BACHAR, JM
    BADE, WG
    CURTIS, PC
    DALES, HG
    THOMAS, MP
    [J]. LECTURE NOTES IN MATHEMATICS, 1983, 975 : 460 - 470
  • [9] An inverse mapping approach for process systems engineering using automatic differentiation and the implicit function theorem
    Alves, Victor
    Kitchin, John R.
    Lima, Fernando V.
    [J]. AICHE JOURNAL, 2023, 69 (09)
  • [10] OpenAD/F: A modular open-source tool for automatic differentiation of Fortran codes
    Utke, Jean
    Naumann, Uwe
    Fagan, Mike
    Tallent, Nathan
    Strout, Michelle
    Heimbach, Patrick
    Hill, Chris
    Wunsch, Carl
    [J]. ACM TRANSACTIONS ON MATHEMATICAL SOFTWARE, 2008, 34 (04):