Let
p = a variable is not declared
q = there is a syntax error in the fifth line
r = there is a missing semicolon
s = there is a mistake in variable name
Then we can translate given sentences as:
(1)
(2)
(3)
(4)
By disjunction introduction ii can be written as:
(5)
Combining (3) and (5) we have
_______
(by modus tollens) (6)
Combining (1) and (6) we have
________
(by disjunctive syllogism) (7)
By combining (7) and (4) we have:
( ) — a variable is not declared AND there is a mistake in variable name
Comments