Inductive Reasoning for Coinductive Types

01/24/2023
by   Alexander Bagnall, et al.
0

We present AlgCo (Algebraic Coinductives), a practical framework for inductive reasoning over commonly used coinductive types such as conats, streams, and infinitary trees with finite branching factor. The key idea is to exploit the domain-theoretic notion of algebraic CPO to define continuous operations over coinductive types indirectly via primitive recursion on "dense" collections of their elements. This enables a convenient strategy for reasoning about algebraic coinductives by straightforward proofs by induction. We implement the AlgCo framework in Coq and demonstrate its power by verifying a stream variant of the sieve of Eratosthenes, a regular expression library based on coinductive trie encodings of formal languages, and weakest pre-expectation style semantics for coinductive sampling processes over discrete probability distributions in the random bit model.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
02/17/2023

Type-Theoretic Signatures for Algebraic Theories and Inductive Types

We develop the usage of certain type theories as specification languages...
research
01/22/2022

Beyond Nonexpansive Operations in Quantitative Algebraic Reasoning

The framework of quantitative equational logic has been successfully app...
research
06/25/2020

Generating induction principles and subterm relations for inductive types using MetaCoq

We implement three Coq plugins regarding inductive types in MetaCoq. The...
research
06/04/2020

Foundations of regular coinduction

Inference systems are a widespread framework used to define possibly rec...
research
05/20/2015

Towards Ideal Semantics for Analyzing Stream Reasoning

The rise of smart applications has drawn interest to logical reasoning o...
research
05/01/2020

Efficient lambda encodings for Mendler-style coinductive types in Cedille

In the calculus of dependent lambda eliminations (CDLE), it is possible ...
research
10/30/2018

Power Factor Correction of Inductive Loads using PLC

This paper proposes an automatic power factor correction for variable in...

Please sign up or login with your details

Forgot password? Click here to reset