Package com.articulate.sigma.trans
Class Modals
java.lang.Object
com.articulate.sigma.trans.Modals
-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddAccrelnDef(KB kb) Add the signature for the Kripke accessibility relationstatic StringbaseFunctor(String head) Return the base functor name by stripping a trailing "__" suffix. static voiddoTQM10Tests(KB kb) Tests based on ~/workspace/sumo/tests/TQM10.kif Uses same KB instance as main methodstatic Stringstatic Stringstatic FormulahandleHOL3pred(Formula f, KB kb, Integer worldNum) Handle the predicates given in regHOL3pred, which have a parameter followed by a formula.static FormulahandleHOLpred(Formula f, KB kb, Integer worldNum) Handle predicates in regHOLpred that take an individual and a formula argument, e.g.static FormulahandleModalAttribute(Formula f, KB kb, Integer worldNum) Handle the predicate modalAttribute: (modalAttribute F M) is read as: "F holds in all worlds accessible via modality M".static voidstatic FormulaprocessModals(Formula f, KB kb) static FormulaprocessRecurse(Formula f, KB kb, Integer worldNum)
-
Field Details
-
formulaPreds
-
dualFormulaPreds
-
regHOL3pred
-
regHOLpred
-
modalAttributes
-
RIGID_RELATIONS
-
MODAL_RELATIONS
-
RESERVED_MODAL_SYMBOLS
-
allowedHeads
-
noWorld
-
-
Constructor Details
-
Modals
public Modals()
-
-
Method Details
-
handleHOL3pred
Handle the predicates given in regHOL3pred, which have a parameter followed by a formula. -
handleHOLpred
Handle predicates in regHOLpred that take an individual and a formula argument, e.g. (confersObligation USGovernment ?A F). We rewrite them into a Kripke-style implication using accreln: (P A F) ==> (=> (accreln P A ?W_{n-1} ?W_n) F') where F' is recursively processed and world-indexed, and we introduce a fresh world variable ?Wn. -
handleModalAttribute
Handle the predicate modalAttribute: (modalAttribute F M) is read as: "F holds in all worlds accessible via modality M". We rewrite: (modalAttribute F M) into (=> (accrelnP M ?W_{n-1} ?W_n) F') where F' is recursively processed and world-indexed, and we introduce a fresh world variable ?Wn. -
processRecurse
-
baseFunctor
Return the base functor name by stripping a trailing "__" suffix. E.g. "partition__7" -> "partition", "disjointDecomposition__4" -> "disjointDecomposition". If there is no such suffix, returns the input unchanged. -
addAccrelnDef
Add the signature for the Kripke accessibility relation -
processModals
-
getTFFHeader
-
getTHFHeader
-
doTQM10Tests
Tests based on ~/workspace/sumo/tests/TQM10.kif Uses same KB instance as main method -
main
-