Corrections for auxiliary logic.

In order to work, we have to declare some predicates as IDB.