Real-time recognition of the inclusion relation