






Besser lernen dank der zahlreichen Ressourcen auf Docsity
Heimse Punkte ein, indem du anderen Studierenden hilfst oder erwirb Punkte mit einem Premium-Abo
Diese Seite wird in der Vorschau nicht angezeigt
Lass dir nichts Wichtiges entgehen!







Today is either Thursday or Friday On Thursdays I have to go to a lecture Today is not Friday (alternatively, On Friday I have to go to the lecture) —————————————————– ∴ I have to go to a lecture today
p → q p ————– ∴ q
(2) is irrational, there are infinitely many primes.
Table 1: Laws of boolean algebras, logic and sets Name Logic law Set theory law Boolean algebra law
Double Negation ¬¬p ≡ p A = A x = x DeMorgan’s laws ¬(p ∨ q) ≡ (¬p ∧ ¬q) A ∪ B = A ∩ B x + y = x · y ¬(p ∧ q) ≡ (¬p ∨ ¬q) A ∩ B = A ∪ B x · y = x + y Associativity (p ∨ q) ∨ r ≡ p ∨ (q ∨ r) (A ∪ B) ∪ C = A ∪ (B ∪ C) (x + y) + z = x + (y + z) (p ∧ q) ∧ r ≡ p ∧ (q ∧ r) (A ∩ B) ∩ C = A ∩ (B ∩ C) (x · y) · z = x · (y · z)
Commutativity p ∨ q ≡ q ∨ p A ∪ B = B ∪ A x + y = y + x p ∧ q ≡ q ∧ p A ∩ B = B ∩ A x · y = y · x
Distributivity p ∧ (q ∨ r) ≡ (p ∧ q) ∨ (p ∧ r) A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C) x · (y + z) = (x · y) + (x · z) p ∨ (q ∧ r) ≡ (p ∨ q) ∧ (p ∨ r) A ∪ (B ∩ C) = (A ∪ B) ∩ (A ∪ C) x + (y · z) = (x + y) · (x + z) Idempotence (p ∨ p) ≡ p ≡ (p ∧ p) A ∪ A = A = A ∩ A x + x = x = x · x Identity p ∨ F ≡ p ≡ p ∧ T A ∪ ∅ = A = A ∩ U x + 0 = x = x · 1 Inverse p ∨ ¬p ≡ T A ∪ A¯ = U x + ¯x = 1 p ∧ ¬p ≡ F A ∩ A¯ = ∅ x · x¯ = 0 Domination p ∨ T ≡ T A ∪ U = U x + 1 = 1 p ∧ F ≡ F A ∩ ∅ = ∅ x · 0 = 0
show that Z is countable, we prove that there is a bijection f: Z → N: take f (x) =
2 x x ≥ 0 1 − 2 x x < 0
It is one-to-one because f (x) = f (y) only if x = y, and it is onto because for any y ∈ N, if it is even then its preimage is y/2, if it is odd − y− 2 1. Often it is easier to give instead two one-to-one functions, from the first set to the second and another from the second to the third. Also, often instead of a full description of a function it is enough to show that there is an enumeration such that every element of, say, Z is mapped to a distinct element of N. To show that one finite set is smaller than another, just compare the number of elements. To show that one infinite set is smaller than another, in particular that a set is uncountable, use diagonalization: suppose that a there is an enumeration of elements of a set, say, 2N^ by elements of N. List all elements of 2N^ according to that enumeration. Now, construct a new set which is not in the enumeration by making it differ from the kth^ element of the enumeration in the kth^ place (e.g., if the second set contains element 2, then the diagonal set will not contain the element 2, and vice versa).