Modal Logic
From Wiki Notes @ WuJiewen.com, by Jiewen Wu
Contents |
Syntax
The basic modal logic is defined using a set of propositional letters
, and a unary operator
. A well-formed formula is then given by the rule
,
where p ranges over elements of
. A dual operator of
is
:
.
Semantics
Modal logic can be interpreted using possible world semantics, at the level of frames and models.
A frame is a pair
, where W is a non-empty set of worlds, and R is a binary relation on W, e.g.,
. A model is a pair
, where
is a frame for the logic and V is a function that assigns to each propositional letter p a subset of W, e.g., V is a map
. V is to address our frames with contingent information. Only statements deserve the description logical if they are invariant under changes of contingent information. Hence we further define satisfiable and valid.
Satisfiable
A formula
is satisfiable at world w in
if the following holds. We only show some of the formulas.
iff w
V(p).
iff for all v
W such that wRv (i.e. v is an R-successor of w, or w is related to v by the binary relation R), we have
.
iff for some v
W such that wRv, we have
.
Satisfaction is local, meaning that formulas are evaluated inside models, at some particular state/world w.
A formula is globally true in a model
, denoted as
if it is satisfied at all states/worlds in
.
Valid
A formula is valid in a frame
if it is true at every state in every model that can be build upon the frame, i.e.,
. Note that this kind of validity is often called
-valid, and when a formula is valid on all frames, it is valid as the notion we are familiar with in propositional logic. Fro example,
is valid on all frames.
Proof Theory
System K
a Hilbert-style system K is built on boolean Hilbert System by adding an extra, the distribution, axiom K:
- Axiom K:
Since K is an axiom, it is the same as other three axioms such that all instances of K are tautologies, and can be used freely in proofs. For system K, we also have the duality mentioned before
.
Modus ponens is still used in K, and we introduce another rule, the necessity rule or the generalization rule:
- NEC: Given
, we can prove
.
Important Notes
Modus ponens preserves validity, global truth and satisfiability. However, the NEC rule only preserves validity and global truth, it does NOT preserve satisfiability. When p is true in some state, we cannot conclude that p is true at all R-accessible states, i.e.,
is not valid. We can only use NEC rule on all tautologies
.
K is sound because all its axioms are valid and all the rules of inference preserve validity. K is also complete: if a formula is valid, then it is K-provable.
Linear-time Temporal Logic
Temporal Logic
The basic temporal language is an extension to the basic modal logic. It is defined using two unary operators F and P. F
is interpreted as
will be true at some future time, while p
means
was true at some past time. Their duals are written as G and H respectively, meaning it is always going to be the case and it always has been the case.
Interesting assertions can be made about time in this logic. For instance,
means whatever has happened will always have happened, and
shows that we are thinking of time as dense: between any two instants there is always a third.
