Class KripkeStructure<T>
java.lang.Object
org.episteme.core.mathematics.logic.modal.KripkeStructure<T>
Represents a Kripke structure for modal logic semantics.
A Kripke structure consists of a set of worlds and an accessibility relation between them.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRelation(String fromWorld, String toWorld) Adds an accessibility relation from one world to another.voidAdds a possible world to the structure.getAccessibleWorlds(String worldName) Returns the set of worlds accessible from the given world.booleanChecks if a proposition is true in a specific world.voidSets a proposition as true in a specific world.
-
Constructor Details
-
KripkeStructure
public KripkeStructure()
-
-
Method Details
-
addWorld
Adds a possible world to the structure.- Parameters:
worldName- the name of the world
-
addRelation
-
setTrue
-
isTrue
-
getAccessibleWorlds
-