Expand description
Semantic transformations for logical expressions.
This module provides post-parse semantic transformations:
apply_axioms: Expands predicates with entailments and hypernymyapply_kripke_lowering: Converts modals to explicit world quantification
These transformations enrich the logical representation with inferred content.
Functionsยง
- apply_
axioms - Apply axiom expansion to a logical expression.
- apply_
kripke_ lowering - Apply Kripke lowering to transform modal operators into explicit world quantification.
- is_
privative_ adjective - Check if an adjective is privative (e.g., fake, counterfeit).
- lookup_
noun_ entailments - Get entailment predicates for a noun (e.g., bachelor -> [Unmarried, Male]).
- lookup_
noun_ hypernyms - Get hypernym predicates for a noun (e.g., dog -> [Animal, Mammal]).
- lookup_
verb_ entailment - Get verb entailment (e.g., murder -> (Kill, [Intentional])).