Formal frameworks for cost analysis of programs have been widely studied in the unary setting and, to a limited extent, in the relational setting. However, many of these frameworks focus only on the cost aspect, largely side-lining functional properties that are often a pre-requisite for cost analysis, thus leaving many interesting programs out of their purview. In this paper, we show that elegant, simple, expressive proof systems combining cost analysis and functional properties can be built by combining already known ingredients: higher-order refinements and cost monads. Specifically, we derive two syntax-directed proof systems, $R^C$ and $U^C$, for relational and unary cost analysis, by adding a cost monad to a (syntax-directed) logic of higher-order programs. We study the metatheory of the systems, show that several nontrivial examples can be verified in them, and prove that existing frameworks for cost analysis (RelCost and RAML) can be embedded in them.
Thu 11 Jan Times are displayed in time zone: (GMT-07:00) Tijuana, Baja California change
|13:40 - 14:05|
|14:05 - 14:30|
Lexicographic Ranking Supermartingales: An Efficient Approach to Termination of Probabilistic Programs
|14:30 - 14:55|
|14:55 - 15:20|