Add predicate functions for the CoreContext type.