(述語論理、限量子)
http://www.sw.it.aoyama.ac.jp/2014/Math1/lecture6.html
© 2005-14 Martin J. Dürst 青山学院大学
Laws for equivalence and implication.
For each of the 16 Boolean functions of two Boolean variables A
and B (same as problem 1 of last week), find the shortest formula
using only NAND.
You can use NAND with an arbitrary number of arguments, but you cannot use T or
F.
Hint: Start with simple formulæ using NAND and check which function they represent.
Draw logic circuits of the following three Boolean formulæ:
[都合により削除]
With propositions, related statements have to be made separately
Examples:
Today it is sunny. Tomorrow it is sunny. The day after tomorrow, it is
sunny.
2 is even. 5 is even.
We can express "If today is sunny, then tomorrow will also be sunny." or "If 2 is even, then 3 is not even".
But we cannot express "If it's sunny on a given day, it's also sunny on the
next day." or "If x is even, then x+2 is also even.".
The problem with propositions can be solved by introducing predicates.
In the same way as predicates, propositions are objectively true or false.
A predicate is a function (with 0 or more arguments) that returns true or false.
If the value of an argument is undefined, the result (value) of the predicate is unknown.
A predicate with 0 arguments is a proposition.
sunny(today), sunny(tomorrow), sunny(yesterday), even(2), even(5), ...
Generalization: sunny(x), even(y), ...
Using predicates, we can express new things:
Similar to propositions, predicates can be true or false.
But predicates can also be unknown/undefined, for example if they contain variables.
Also, even if a predicate is undefined (e.g. even(x)),
a formula containing this predicate can be
defined (true or false; e.g. even(x) → even(x+2))
Examples:
Example: ∀n∈ℕ: even (n) → even(n+2)
Readings:
General form: ∀x: P (x)
∀ is the A of "for All", inverted.
Readings in Japanese:
Example: ∃y∈ℕ: odd (y)
Readings:
General form: ∃y: P (y)
∃ is the mirrored form of the E in "there Exists".
Readings in Japanese:
Deadline: October 30, 2014 (Thursday), 19:00.
Format: A4 single page (using both sides is okay; NO cover page), easily readable handwriting (NO printouts), name (kanji and kana) and student number at the top right
Where to submit: Box in front of room O-529 (building O, 5th floor)
Problem 1: Prove/check the following laws using truth tables:
Problem 2: Prove transitivity of implication (((A→B)
∧ (B→C)) ⇒ (A→C)) by
formula manipulation.
Hint: Show that ((A→B) ∧
(B→C)) → (A→C) is a tautology
by simplifying it to T.
For each simplification step, indicate which law you used.
Deadline: November 13, 2014 (Thursday), 19:00.
Format: A4 single page (using both sides is okay; NO cover page; an additional page is okay if really necessary, but staple the pages together at the top left corner), easily readable handwriting (NO printouts), name (kanji and kana) and student number at the top right
Where to submit: Box in front of room O-529 (building O, 5th floor)
Problem 1: Show that the Wolfram axiom of Boolean logic is a tautology (you can use either a truth table or formula manipulation).
Problem 2: For ternary (three-valued) logic, create truth tables for conjunction, disjunction, and negation. The three values are T, F, and ?, where ? stands for "maybe true, maybe false, we don't know".
Hint: What's the result of "?∨T"? ? can be T or F, but in both cases the result will be T, so ?∨T=T.
Problem 3: For each of the laws 8-11 of "Laws for Quantifiers", imagine concrete examples and explain it. For laws 9 and 11, give examples for both why the implication works one way and why the implication does not work the other way.