Literature.
[1] Ján Komara. Specification and Verification of Programs. Online.
[2] Ján Kľuka. Úvod do deklaratívneho programovania. Online.
[3] Ján Komara. Recursive Functions. Online.
[CL] Remark. The module Mlogicp in the file mlogicp.cl contains the syntax of propositional tableau rules.
[CL] Remark. The module Mlogicpx in the file mlogicpx.cl contains the syntax of tableau rules for propositional tableaux with axioms. The module Mlogicd in the file mlogicd.cl contains the syntax of derived tableau rules.
Remark. The following logical problems are from the cases solved by the famous inspector G. Lestrade of Scotland Yard.
Exercise. Investigation by Inspector Lestrade brought up the following facts:
(1) The robbery was done by at least by , , or .
(2) always works with a companion.
(3) is not guilty.
Problem: Is guilty?
Formalization.
The constants , a represent the suspects.
The predicate holds if is guilty.
The axioms A1, A2 a A3 arithmetize the facts (1), (2) a (3). Our goal is to prove that the claim is a tautological consequence of these axioms.
Exercise. (1 point) The merchant McGregor was robbed. There were four suspects , , , and . The following facts were unearthed by Inspector Lestrade:
(1) If is guilty, then was his companion.
(2) If is guilty, then at least one of and is not guilty.
(3) If is guilty, then so are and .
(4) If is not guilty, then is guilty.
Decide the guiltiness of each person involved.