Modeling Asymptotic Complexity Using ACL2

05/24/2022
by   William D. Young, et al.
0

The theory of asymptotic complexity provides an approach to characterizing the behavior of programs in terms of bounds on the number of computational steps executed or use of computational resources. We describe work using ACL2 to prove complexity properties of programs implemented in a simple imperative programming language embedding via an operational semantics in ACL2. We simultaneously prove functional properties of a program and its complexity. We illustrate our approach by describing proofs about a binary search algorithm, proving both that it implements binary search on a sorted list and that it is O(log(n)), where n is the length of the list.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
04/16/2021

{log}: Set Formulas as Programs

{log} is a programming language at the intersection of Constraint Logic ...
research
12/13/2022

A programming language characterizing quantum polynomial time

We introduce a first-order quantum programming language, named FOQ, whos...
research
11/07/2020

Cost-Aware Type Theory

Although computational complexity is a fundamental aspect of program beh...
research
08/30/2023

On Feasibility of Declarative Diagnosis

The programming language Prolog makes declarative programming possible, ...
research
09/15/2023

A Two-Level Linear Dependent Type Theory

We present a type theory combining both linearity and dependency by stra...
research
01/10/2019

PML 2 : Integrated Program Verification in ML

We present the PML 2 language, which provides a uniform environment for ...
research
05/26/2020

Understanding Lua's Garbage Collection – Towards a Formalized Static Analyzer

We provide the semantics of garbage collection (GC) for the Lua programm...

Please sign up or login with your details

Forgot password? Click here to reset