LFCS Seminar: Tuesday 01 December: Cass Alexandru

Title: Intrinsically correct & total functional programming using locally contractive functors
 
Abstract: The definition of recursive algorithms in verified total functional
programming engenders two proof obligations: partial correctness
and termination.
 
Often, partial correctness properties already entail facts from
which termination follows.
 
We exploit such cases through a novel way to define recursive
algorithms such that they are intrinsically correct and terminating.
 
Following the paradigm of structured recursion (Hinze et al. POPL
2015), we separate the recursion behavior of divide-and-conquer
algorithms from their recursive steps, which can be expressed
categorically as (co)algebras for a functor.
 
We give conditions under which functors for intrinsically correct
algorithms are locally contractive (Birkedal et al. LMCS 2012), and
show how termination of algorithms for such functors holds
intrinsically.