Semantics of the Probabilistic Typed Lambda Calculus

Similar documents
Non-Western Theories of International Relations

Doubt-Free Uncertainty In Measurement

SpringerBriefs in Probability and Mathematical Statistics

Non-Instantaneous Impulses in Differential Equations

Dynamics and Control of Lorentz-Augmented Spacecraft Relative Motion

Springer Series on Atomic, Optical, and Plasma Physics

Solid Phase Microextraction

Dynamics Formulas and Problems

Igor Emri Arkady Voloshin. Statics. Learning from Engineering Examples

Topics in Algebra and Analysis

Advanced Calculus of a Single Variable

Lecture Notes in Mathematics 2209

SpringerBriefs in Statistics

Fundamentals of Mass Determination

UNITEXT La Matematica per il 3+2. Volume 87

Electrochemical Science for a Sustainable Society

Springer Atmospheric Sciences

SpringerBriefs in Mathematics

Multivariable Calculus with MATLAB

Fundamentals of Electrical Circuit Analysis

Particle Acceleration and Detection

Springer Proceedings in Mathematics & Statistics. Volume 206

ThiS is a FM Blank Page

Lecture Notes in Mathematics 2156

Springer Biographies

Quantum Biological Information Theory

CISM International Centre for Mechanical Sciences

Advanced Courses in Mathematics CRM Barcelona

Hiromitsu Yamagishi Netra Prakash Bhandary Editors. GIS Landslide

Astronomers Universe. More information about this series at

Publication of the Museum of Nature South Tyrol Nr. 11

Lecture Notes in Mathematics 2138

SpringerBriefs in Agriculture

Springer Series in Statistics

Statics and Influence Functions From a Modern Perspective

Generalized Locally Toeplitz Sequences: Theory and Applications

Tritium: Fuel of Fusion Reactors

Wei Gao. Editor. Graphene Oxide. Reduction Recipes, Spectroscopy, and Applications

Stochastic and Infinite Dimensional Analysis

Signaling and Communication in Plants

Springer INdAM Series

Advanced Structured Materials

Fractal Control Theory

Theory of Nonparametric Tests

Geotechnologies and the Environment

Statics and Mechanics of Structures

Challenges and Advances in Computational Chemistry and Physics

Theoretical Physics 4

Public Participation as a Tool for Integrating Local Knowledge into Spatial Planning

Differential-Algebraic Equations Forum

Statistics and Measurement Concepts with OpenStat

Radiation Therapy Study Guide

Springer Proceedings in Mathematics & Statistics. Volume 226

Progress in Mathematics 313. Jaume Llibre Rafael Ramírez. Inverse Problems in Ordinary Differential Equations and Applications

Ahsan Habib Khandoker Chandan Karmakar Michael Brennan Andreas Voss Marimuthu Palaniswami. Poincaré Plot Methods for Heart Rate Variability Analysis

Undergraduate Lecture Notes in Physics

Plant and Vegetation. Volume 14. Series editor M.J.A. Werger, Utrecht, The Netherlands

Qing-Hua Qin. Advanced Mechanics of Piezoelectricity

Bourbaki Elements of the History of Mathematics

EURO Advanced Tutorials on Operational Research. Series editors M. Grazia Speranza, Brescia, Italy José Fernando Oliveira, Porto, Portugal

40 Topics in Heterocyclic Chemistry

Modern Birkhäuser Classics

Karl-Rudolf Koch Introduction to Bayesian Statistics Second Edition

Landolt-Börnstein Numerical Data and Functional Relationships in Science and Technology New Series / Editor in Chief: W.

SpringerBriefs in Probability and Mathematical Statistics

Data Analysis Using the Method of Least Squares

SpringerBriefs in Earth System Sciences

Springer Series in Solid-State Sciences

Electroanalysis in Biomedical and Pharmaceutical Sciences

Experimental Techniques in Nuclear and Particle Physics

1000 Solved Problems in Classical Physics

Mechanics of Materials

Mathematical Formulas for Economists

Mathematical Engineering

Conference Proceedings of the Society for Experimental Mechanics Series

Springer-Verlag Berlin Heidelberg GmbH

Landolt-Börnstein / New Series

UNITEXT La Matematica per il 3+2

Nonlinear Dynamical Systems in Engineering

Lecture Notes in Mathematics Editors: J.-M. Morel, Cachan F. Takens, Groningen B. Teissier, Paris

Stochastic Optimization Methods

Trends in Mathematics

Trends in Mathematics

Hongda Wang Guohui Li Editors. Membrane Biophysics. New Insights and Methods

Astronomers Universe

Nuclear Magnetic Resonance Data

Studies in Systems, Decision and Control. Series editor Janusz Kacprzyk, Polish Academy of Sciences, Warsaw, Poland

Advanced Topics in Relation Algebras

361 Topics in Current Chemistry

Peter Orlik Volkmar Welker. Algebraic Combinatorics. Lectures at a Summer School in Nordfjordeid, Norway, June 2003 ABC

Progress in Advanced Structural and Functional Materials Design

Latif M. Jiji. Heat Convection. With 206 Figures and 16 Tables

332 Topics in Current Chemistry

Nuclear Magnetic Resonance Data

Theory of Elasticity

Polymers on the Crime Scene

Egon Krause. Fluid Mechanics

Springer Berlin Heidelberg New York Barcelona Budapest Hong Kong London Milan Paris Santa Clara Singapore Tokyo

Earthquakes and Multi-hazards Around the Pacific Rim, Vol. II

Pi: The Next Generation

Transcription:

Semantics of the Probabilistic Typed Lambda Calculus

Dirk Draheim Semantics of the Probabilistic Typed Lambda Calculus Markov Chain Semantics, Termination Behavior, and Denotational Semantics

Dirk Draheim Large-Scale Systems Group Tallinn University of Technology Tallinn, Estonia ISBN 978-3-642-55197-0 ISBN 978-3-642-55198-7 (ebook) DOI 10.1007/978-3-642-55198-7 Library of Congress Control Number: 2017932370 Springer-Verlag Berlin Heidelberg 2017 This work is subject to copyright. All rights are reserved by the Publisher, whether the whole or part of the material is concerned, specifically the rights of translation, reprinting, reuse of illustrations, recitation, broadcasting, reproduction on microfilms or in any other physical way, and transmission or information storage and retrieval, electronic adaptation, computer software, or by similar or dissimilar methodology now known or hereafter developed. The use of general descriptive names, registered names, trademarks, service marks, etc. in this publication does not imply, even in the absence of a specific statement, that such names are exempt from the relevant protective laws and regulations and therefore free for general use. The publisher, the authors and the editors are safe to assume that the advice and information in this book are believed to be true and accurate at the date of publication. Neither the publisher nor the authors or the editors give a warranty, express or implied, with respect to the material contained herein or for any errors or omissions that may have been made. The publisher remains neutral with regard to jurisdictional claims in published maps and institutional affiliations. Printed on acid-free paper This Springer imprint is published by Springer Nature The registered company is Springer-Verlag GmbH Germany The registered company address is: Heidelberger Platz 3, 14197 Berlin, Germany

Preface Today s information systems operate in probabilistic environments. Programs need to react to probabilistic events. Therefore, a rigorous understanding of probabilistic program behavior becomes ever more important. Probabilistic programming is relevant in its own right, as a means to implement randomized algorithms. This book takes a foundational approach to the semantics of probabilistic programming. It deals with the probabilistic typed lambda calculus, which is the typed lambda calculus with recursion plus probabilistic choice. We elaborate a Markov chain semantics for the probabilistic lambda calculus. As part of this operational semantics, we define a reduction semantics and an evaluation semantics in terms of Markov chain hitting probabilities. The Markov chain semantics unlocks probability theory and Markov chain theory to be used in reasoning about probabilistic programs. Also, we introduce the notions of reduction graphs and reduction trees. Reduction graphs and reduction trees are not part of but rather accompany the Markov chain semantics. They unlock results from graph theory. These prove useful, e.g., in reasoning about termination behavior. On the basis of this, we investigate the termination behavior of probabilistic programs. We introduce the notions of termination degree, bounded termination and path stoppability and investigate their mutual relationships. Path stoppability characterizes a broadened class of termination and allows for the computation of program runs that are otherwise considered as non-terminating. Furthermore, we elaborate a denotational semantics for the probabilistic lambda calculus. The domains of this denotational semantics are probabilistic pre-distributions as base domains and ω-continuous function spaces as highertype domains. We show the basic correspondence between the denotational semantics and the established Markov chain semantics. Tallinn, November 2016 Dirk Draheim V

Contents 1 Introduction... 1 1.1 Motivation... 3 1.2 The Probabilistic Lambda Calculus........................ 5 1.3 Termination Behavior of Probabilistic Programs............. 9 1.4 DenotationalSemantics... 11 1.5 ChapterOutlineandFurtherRemarks... 14 2 Preliminary Mathematics... 17 2.1 Probability Theory...................................... 18 2.2 MarkovChains... 23 2.3 GraphTheory... 33 2.4 Inductive Definitions..................................... 39 2.5 Miscellaneous... 59 3 Syntax and Operational Semantics... 65 3.1 Syntax of the Probabilistic Lambda Calculus................ 66 3.2 Operational Semantics of the Typed λ-calculus... 73 3.3 The Probabilistic Operational Semantics................... 76 3.4 ImportantReadings... 91 4 Termination Behavior... 93 4.1 IntroductoryExamplesofTerminationBehavior... 96 4.2 Bounded and Unbounded Termination..................... 101 4.3 ProgramExecutionsandProgramRuns...103 4.4 TheReductionGraph...107 4.5 CentralGraphCoverLemmas...115 4.6 Path Stoppability....................................... 120 4.7 ProgramReductionTrees...127 4.8 Characteristics of Bounded Termination.................... 131 VII

VIII Contents 5 Denotational Semantics...135 5.1 DomainsandDenotations...136 5.2 Well-DefinednessoftheDenotationalSemantics...145 5.3 SemanticCorrespondence...157 5.4 Important Readings on Domains and Probabilism........... 189 References...193 Index...211

http://www.springer.com/978-3-642-55197-0