library for [BTA5.agda] and [BTA6.agda]