Stream: Coq users

Topic: ✔ Counting operations used by a function


view this post on Zulip Malcolm Sharpe (Sep 09 2022 at 03:36):

Let's say I want to prove a bound on the number of a certain operation used by a function (such as proving a bound on the number of comparisons used by a sorting algorithm). What techniques/libraries should I be considering for doing that?

view this post on Zulip Paolo Giarrusso (Sep 09 2022 at 04:05):

Bounds about a specific algorithm are one kind of problem; bounds about a class of algorithms are a different problem. https://coq.discourse.group/t/trying-to-prove-sort-algorithm-correctness-for-specific-n-in-search-for-hints/1076/11?u=blaisorblade is relevant to the second.

view this post on Zulip Mukesh Tiwari (Sep 09 2022 at 09:29):

@Malcolm Sharpe Have a look at this thread [1].

[1] https://sympa.inria.fr/sympa/arc/coq-club/2022-07/msg00008.html

view this post on Zulip Malcolm Sharpe (Sep 09 2022 at 16:38):

Thanks for the links. My conclusions:

(This made me curious what's the most accessible library for monads in Coq, and that seems to be coq-ext-lib, which is in coq-platform.)

view this post on Zulip Notification Bot (Sep 09 2022 at 16:38):

Malcolm Sharpe has marked this topic as resolved.

view this post on Zulip John Wiegley (Sep 09 2022 at 16:54):

I’d like to offer that I’m working on a new sub-library for my category-theory library that aims to make Monads very easy to work with in Coq, while leveraging the power of the larger library when proving that some construction is, in fact, a lawful Monad.


Last updated: Apr 16 2024 at 13:01 UTC