If Eyal is happy, Anat is tall; and if Anat is tall, Haggai is cute.
If Eyal is happy, Haggai is cute.
0
1
0
1
0
0
1
3c
If I am vegan, then I eat quinoa and do not eat shawarma.
I do not eat quinoa only if I am not vegan, and I also do not eat shawarma
if I am vegan.
4
The next exercise deals with cards that have a symbol on both sides—an English
letter on one side and a natural number on the other. Four cards are placed on the
table, showing the symbols A, P, 2, and 3. Which cards should be flipped to check
the statement ”If there is one of the letters AEIOU on one side of the card, then on
the other side, there is an even number”? Justify well (why the cards you suggested
need to be flipped, and why the other cards do not need to be checked).
If there is a letter A on one side, then on the other is a natural number. If it's even, the statement holds, if not, the statement is false, thus we have to flip this card.
If there is a letter P on one side, then on the other is a natural number, if it's odd, the statement holds, if it's even, the statement still holds, thus we don't have to flip that card.
If there is a number 2 on one side, then on the other is a letter. If it's one of A,E,I,O or U, the statement holds, if it's not, the statement still holds, thus we don't have to flip this card.
If there is a number 3 on one side, then on the other is a letter. If it's not one of A,E,I,O or U, the statement holds, if it is, the statement is false, thus we have to flip this card.
5a
If I am tired or hungry, then I am irritable.
If I am not irritable, then I am not tired.
Conclusion: I am tired if and only if I am irritable.
0
1
1
1
1
1
0
0
Alternative proof:
5b
If the sun is shining, then all the roosters are crowing.
If my rooster, Kuki, is crowing, then the sun is shining.
Conclusion: The sun shines if and only if all the roosters are crowing
0
0
0
1
1
1
1
1
0
0
1
1
0
0
1
1
0
1
0
1
1
1
0
0
0
1
1
1
0
0
0
1
1
0
0
0
1
0
0
1
1
0
1
0
1
0
0
1
1
1
0
1
1
1
1
1
1
1
1
1
1
1
1
1
Alternative proof:
Let p, q be two statements such that the statement p → q has the value ”true.” In
this case, we say that p is a sufficient condition for q, and q is a necessary condition
for p. Formalize each of the following sections using appropriate predicates. In all
sections, the ”world” is the natural numbers; there is no need to state this.
6a
For every natural number n, the statement ”the number n is prime” is a sufficient condition for ”the number n is odd.”
6b
For every natural number n, the statement ”the number n is prime and greater than 2” is a sufficient and necessary condition for ”the number n is odd.”
6c
For every natural number n, the statement ”the number n is divisible by 4” is a sufficient condition for ”the number n is even.”
6d
For every natural number n, the statement ”the number n is even” is a necessary condition for ”the number n is divisible by 4.”