Theory S4
theory S4
imports Modal0
begin
axiomatization where
lstar0: "|L>" and
lstar1: "$G |L> $H ⟹ []P, $G |L> []P, $H" and
lstar2: "$G |L> $H ⟹ P, $G |L> $H" and
rstar0: "|R>" and
rstar1: "$G |R> $H ⟹ <>P, $G |R> <>P, $H" and
rstar2: "$G |R> $H ⟹ P, $G |R> $H" and
boxR:
"⟦$E |L> $E'; $F |R> $F'; $G |R> $G';
$E' ⊢ $F', P, $G'⟧ ⟹ $E ⊢ $F, []P, $G" and
boxL: "$E,P,$F,[]P ⊢ $G ⟹ $E, []P, $F ⊢ $G" and
diaR: "$E ⊢ $F,P,$G,<>P ⟹ $E ⊢ $F, <>P, $G" and
diaL:
"⟦$E |L> $E'; $F |L> $F'; $G |R> $G';
$E', P, $F' ⊢ $G'⟧ ⟹ $E, <>P, $F ⊢ $G"
ML ‹
structure S4_Prover = Modal_ProverFun
(
val rewrite_rls = @{thms rewrite_rls}
val safe_rls = @{thms safe_rls}
val unsafe_rls = @{thms unsafe_rls} @ [@{thm boxR}, @{thm diaL}]
val bound_rls = @{thms bound_rls} @ [@{thm boxL}, @{thm diaR}]
val aside_rls = [@{thm lstar0}, @{thm lstar1}, @{thm lstar2}, @{thm rstar0},
@{thm rstar1}, @{thm rstar2}]
)
›
method_setup S4_solve =
‹Scan.succeed (fn ctxt => SIMPLE_METHOD (S4_Prover.solve_tac ctxt 2))›
lemma "⊢ []P ⟶ P" by S4_solve
lemma "⊢ [](P ⟶ Q) ⟶ ([]P ⟶ []Q)" by S4_solve
lemma "⊢ (P --< Q) ⟶ []P ⟶ []Q" by S4_solve
lemma "⊢ P ⟶ <>P" by S4_solve
lemma "⊢ [](P ∧ Q) ⟷ []P ∧ []Q" by S4_solve
lemma "⊢ <>(P ∨ Q) ⟷ <>P ∨ <>Q" by S4_solve
lemma "⊢ [](P ⟷ Q) ⟷ (P >-< Q)" by S4_solve
lemma "⊢ <>(P ⟶ Q) ⟷ ([]P ⟶ <>Q)" by S4_solve
lemma "⊢ []P ⟷ ¬ <>(¬ P)" by S4_solve
lemma "⊢ [](¬ P) ⟷ ¬ <>P" by S4_solve
lemma "⊢ ¬ []P ⟷ <>(¬ P)" by S4_solve
lemma "⊢ [][]P ⟷ ¬ <><>(¬ P)" by S4_solve
lemma "⊢ ¬ <>(P ∨ Q) ⟷ ¬ <>P ∧ ¬ <>Q" by S4_solve
lemma "⊢ []P ∨ []Q ⟶ [](P ∨ Q)" by S4_solve
lemma "⊢ <>(P ∧ Q) ⟶ <>P ∧ <>Q" by S4_solve
lemma "⊢ [](P ∨ Q) ⟶ []P ∨ <>Q" by S4_solve
lemma "⊢ <>P ∧ []Q ⟶ <>(P ∧ Q)" by S4_solve
lemma "⊢ [](P ∨ Q) ⟶ <>P ∨ []Q" by S4_solve
lemma "⊢ <>(P ⟶ (Q ∧ R)) ⟶ ([]P ⟶ <>Q) ∧ ([]P ⟶ <>R)" by S4_solve
lemma "⊢ (P --< Q) ∧ (Q --< R) ⟶ (P --< R)" by S4_solve
lemma "⊢ []P ⟶ <>Q ⟶ <>(P ∧ Q)" by S4_solve
lemma "⊢ []A ⟶ A" by S4_solve
lemma "⊢ []A ⟶ [][]A" by S4_solve
lemma "⊢ []A ⟶ <>A" by S4_solve
lemma "⊢ <>[](<>A ⟶ []<>A)" by S4_solve
lemma "⊢ <>[](<>[]A ⟶ []A)" by S4_solve
lemma "⊢ []P ⟷ [][]P" by S4_solve
lemma "⊢ <>P ⟷ <><>P" by S4_solve
lemma "⊢ <>[]<>P ⟶ <>P" by S4_solve
lemma "⊢ []<>P ⟷ []<>[]<>P" by S4_solve
lemma "⊢ <>[]P ⟷ <>[]<>[]P" by S4_solve
lemma "⊢ []P ∨ []Q ⟷ []([]P ∨ []Q)" by S4_solve
lemma "⊢ ((P >-< Q) --< R) ⟶ ((P >-< Q) --< []R)" by S4_solve
lemma "⊢ [](P ∧ Q) ⟷ []P ∧ []Q" by S4_solve
lemma "⊢ <>(P ∨ Q) ⟷ <>P ∨ <>Q" by S4_solve
lemma "⊢ <>(P ⟶ Q) ⟷ ([]P ⟶ <>Q)" by S4_solve
lemma "⊢ [](P ⟶ Q) ⟶ (<>P ⟶ <>Q)" by S4_solve
lemma "⊢ []P ⟶ []<>P" by S4_solve
lemma "⊢ <>[]P ⟶ <>P" by S4_solve
lemma "⊢ []P ∨ []Q ⟶ [](P ∨ Q)" by S4_solve
lemma "⊢ <>(P ∧ Q) ⟶ <>P ∧ <>Q" by S4_solve
lemma "⊢ [](P ∨ Q) ⟶ []P ∨ <>Q" by S4_solve
lemma "⊢ <>P ∧ []Q ⟶ <>(P ∧ Q)" by S4_solve
lemma "⊢ [](P ∨ Q) ⟶ <>P ∨ []Q" by S4_solve
end