Text this: Theorem proving and logic programming with constrains