Reasoning about “reasoning about reasoning”: semantics and contextual equivalence for probabilistic programs with nested queries and recursion

نویسندگان

چکیده

Metareasoning can be achieved in probabilistic programming languages (PPLs) using agent models that recursively nest inference queries inside queries. However, the semantics of this powerful, reflection-like language feature has defied an operational treatment, much less reasoning principles for contextual equivalence. We give formal to a core PPL with continuous distributions, scoring, general recursion, and nested Unlike prior work, presence recursion makes it impossible stratify definition sampling-based measure-theoretic semantics—the two must defined mutually recursively. A key yet challenging property we establish is programs have well-defined meanings: limits exist step-indexed measures they induce. Beyond semantics, offer relational making construct step-indexed, biorthogonal logical-relations model. soundness theorem establishes logical relatedness implies demonstrate usefulness by proving novel equivalences practical relevance—in particular, game-playing decisionmaking agents. mechanize our technical developments leading proof Coq assistant. Nested are important theoretically underdeveloped linguistic PPLs; first them provide sound

برای دانلود باید عضویت طلایی داشته باشید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Reasoning about probabilistic sequential programs

A complete and decidable Hoare-style calculus for iteration-free prob-abilistic sequential programs is presented using a state logic with truth-functional propositional (not arithmetical) connectives.

متن کامل

Reasoning about reasoning by nested conditioning: Modeling theory of mind with probabilistic programs

A wide range of human reasoning patterns can be explained as conditioning in probabilistic models; however, conditioning has traditionally been viewed as an operation applied to such models, not represented in such models. We describe how probabilistic programs can explicitly represent conditioning as part of a model. This enables us to describe reasoning about others’ reasoning using nested co...

متن کامل

Action Semantics Reasoning about Functional Programs

This paper develops the functional part of a theory of action semantics for reasoning about programs. Action notation, the specification language of action semantics, is given an evaluation semantics and operational techniques from process theory and functional programming are applied in the development of a versatile action theory. The power of the theory is demonstrated by means of action sem...

متن کامل

Reasoning about probabilistic sequential programs 1

A complete and decidable Hoare-style calculus for iteration-free probabilistic sequential programs is presented using a state logic with truth-functional propositional (not arithmetical) connectives.

متن کامل

Reasoning About States of Probabilistic Sequential Programs

A complete and decidable propositional logic for reasoning about states of probabilistic sequential programs is presented. The state logic is then used to obtain a sound Hoare-style calculus for basic probabilistic sequential programs. The Hoare calculus presented herein is the first probabilistic Hoare calculus with a complete and decidable state logic that has truth-functional propositional (...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

ژورنال

عنوان ژورنال: Proceedings of the ACM on programming languages

سال: 2022

ISSN: ['2475-1421']

DOI: https://doi.org/10.1145/3498677