ó <¿CVc@snddlmZmZmZmZmZmZmZmZm Z m Z m Z m Z ddd„Zd„ZdS(iÿÿÿÿ( t AllExpressiont AndExpressiontApplicationExpressiontEqualityExpressiontExistsExpressiont IffExpressiont ImpExpressiontNegatedExpressiont OrExpressiontVariableExpressiontskolem_functiontunique_variablecCsÈ|dkrtƒ}n|dkr0tƒ}nt|tƒr–t|j|t|jgƒB|t|jgƒBƒ}|j|jtt d|ƒƒƒSt|t ƒrËt|j ||ƒt|j ||ƒ@St|t ƒrtt|j ||ƒt|j ||ƒƒSt|tƒr@tt|j ||ƒt|j ||ƒƒSt|tƒr§tt|j ||ƒt|j ||ƒƒtt|j ||ƒt|j ||ƒƒ@St|tƒrº|St|tƒr#|j}t|tƒrQt|j ||t|jgƒBƒ}|r&|j|jt|ƒƒStt d|ƒƒ}|j|j|ƒSqÄt|t ƒrtt|j ||ƒt|j ||ƒƒSt|t ƒrÄt|j ||ƒt|j ||ƒ@St|tƒrút|j ||ƒt|j ||ƒ@St|tƒratt|j ||ƒt|j ||ƒƒtt|j ||ƒt|j ||ƒƒ@St|tƒrt|St|tƒr–t|j||ƒSt|tƒrýt|j |t|jgƒB|t|jgƒBƒ}|j|jtt d|ƒƒƒSt|tƒr|Std|ƒ‚n¡t|tƒr¡t|j||t|jgƒBƒ}|rv|j|jt|ƒƒStt d|ƒƒ}|j|j|ƒSn#t|tƒr´|Std|ƒ‚dS(sO Skolemize the expression and convert to conjunctive normal form (CNF) tignores'%s' cannot be skolemizedN(tNonetsett isinstanceRt skolemizettermtvariabletreplaceR R RtfirsttsecondRtto_cnfRRRRR RRt Exception(t expressiont univ_scopetused_variablesRtnegatedtskolem_constant((sd/private/var/folders/cc/xm4nqn811x9b50x1q_zpkmvdjlphkp/T/pip-build-FUwmDn/nltk/nltk/sem/skolemize.pyRs€    5" &6"%cCs‚t|tƒr;t|j|ƒ}t|j|ƒ}||@St|tƒrvt||jƒ}t||jƒ}||@S||BSdS(sI Convert this split disjunction to conjunctive normal form (CNF) N(RRRRR(RRtr_firsttr_second((sd/private/var/folders/cc/xm4nqn811x9b50x1q_zpkmvdjlphkp/T/pip-build-FUwmDn/nltk/nltk/sem/skolemize.pyRXsN(tnltk.sem.logicRRRRRRRRRR R R R RR(((sd/private/var/folders/cc/xm4nqn811x9b50x1q_zpkmvdjlphkp/T/pip-build-FUwmDn/nltk/nltk/sem/skolemize.pyt sRJ