unicode_fol_kit.standard_translation¶
- unicode_fol_kit.standard_translation(formula, world='w')[source]¶
Translate a propositional modal
formulainto a classical FOL Node.worldnames the free current-world variable threaded through the translation (default"w"); the result is a plain first-order formula in which propositional atomsAbecomeA(world)and each modality becomes a quantification over a fresh world variable bounded by an accessibility predicate (see the module docstring for the exact scheme and the fixed predicate names). The returned Node uses only classical FOL constructs, so it can be handed toto_z3/to_prover9/to_tptp/ the Tarski evaluator.Hybrid constructs translate too:
Nominal ibecomes the world-equalityworld = nom_iandAt(i, φ)becomesST(φ)anchored at the constantnom_i(the"nom_"prefix keeps nominal constants disjoint from user constants — see the module docstring).- Raises:
NotImplementedError – on
Until(not first-order definable), any object-level quantifier (first-order modal logic is out of scope for v1), a Łukasiewicz node, or a lambda node.- Parameters:
- Return type: