Implemented grounding rules for existential quantifiers