PHOAS to de Bruijn conversion

Posted on 2025-02-13 by Oleg Grenrus agda Recently I looked again at PHOAS, and once again I concluded it's nice for library APIs, but so painful to do anything with inside those libraries. So let convert to something else, like de Bruijn. There are standalone source files if you just want to see the code: Agda: https://github.com/phadej/nbexp/blob/master/src/NbEXP/SelfContained/Conv.agda Haskell:…