partial implementation of KappaAbs/KappaApp in Coq code