Propositional Logic Programming and Type Thoeries