Logic Flashcards
What is a proposition?
A proposition is a declarative sentence that is either true or false, but not both.
What is a compound proposition?
Many mathematical statements are constructed by combining one or more existing propositions; new propositions, called compound propositions, are formed from existing propositions using logical operators.
What will the truth table look like if p and q are in conjunction?
TFFF. The conjunction of p and q, denoted by p ∧ q, is the proposition “p and q”. The conjunction p ∧ q is true when both p and q are true and is false otherwise. The ∧ operator for the two propositions p and q can also be understood as min(p,q) where true is represented with 1 and false is represented with 0.
What will the truth table look like if p and q are in disconjunction?
TTTF. The disjunction of p and q, denoted by p ∨ q, is the proposition “p or q.” The disjunction p ∨ q is false when both p and q are false and is true otherwise. The ∨ operator for the two propositions p and q can also be understood as max(p, q) where true is represented with 1 and false is represented with 0.
What will the truth table look like if p and q are in an or-statement (the proposition that is true when exactly one of p and q is true and is false otherwise)?
FTTF. The exclusive or of p and q, denoted by p ⊕ q, is the proposition that is true when exactly one of p and q is true and is false otherwise. The ⊕ operator for the two propositions p and q can also be understood as sum(p, q) == 1 where true is represented with 1 and false is represented with 0
What will the truth table look like if p and q are in a conditional statement?
TFTT. The conditional statement p =⇒ q is the proposition “if p, then q.” The conditional statement p =⇒ q is false when p is true and q is false, and true otherwise. In the conditional statement p =⇒ q, p is called the hypothesis (or antecedent or premise), and q is called the conclusion (or consequence). The =⇒ operator for the two propositions p and q can also be understood as max(¬(p),q) where true is represented with 1 and false is represented with 0. The statement p =⇒ q is called a conditional statement because p =⇒ q asserts that q is true on the condition that p holds. A conditional statement is also called an implication. The truth table for the conditional statement p =⇒ q is shown in table above. Note that the statement p =⇒ q is true when both p and q are true and when p is false (no matter what the truth value of q is).
What will the truth table look like if p and q are in a biconditional statement?
TFFT. The biconditional statement p ⇐⇒ q is the proposition “p if and only if q.” The biconditional statement p ⇐⇒ q is true when p and q have the same truth values, and is false otherwise. Biconditional statements are also called bi-implications. The ⇐⇒ operator for the two propositions p and q can also be understood as |(p − q)| == 0 where true is represented with 1 and false is represented with 0.
What is a tautology?
A compound proposition that is always true, no matter what the truth values of the propositional variables that occur in it, is called a tautology.
What is a compound proposition that is always false called?
A contradiction.
What is a contingency?
A compound proposition that is neither a tautology nor a contradiction is called a contingency.
When is a compound proposition considered logically equivalent?
The compound propositions p and q are called logically equivalent if p ⇐⇒ q is a tautology. The notation p ≡ q denotes that p and q are logically equivalent.
Why are the two logical equivalences known as De Morgan’s laws are particularly important?
They tell us how to negate conjunctions and how to negate disjunctions. In particular, the equivalence ¬(p ∨ q) ≡ ¬p ∧ ¬q tells us that the negation of a disjunction is formed by taking the conjunction of the negations of the component propositions. Similarly, the equivalence ¬(p ∧ q) ≡ ¬p ∨ ¬q tells us that the negation of a conjunction is formed by taking the disjunction of the negations of the component propositions.
Use De Morgan’s laws to express the negations of “Miguel has a cellphone and he has a laptop computer”
Let p be “Miguel has a cellphone” and q be “Miguel has a laptop computer.” Then “Miguel has a cellphone and he has a laptop computer” can be represented by p ∧ q. Because of the first of De Morgan’s laws, we can express the negation of our original statement as
“Miguel does not have a cellphone or he does not have a laptop computer.”
Use De Morgan’s laws to express the negations of “Heather will go to the concert or Steve will go to the concert.”
Let r be “Heather will go to the concert” and s be “Steve will go to the concert.” Then “Heather will go to the concert or Steve will go to the concert” can be represented by r ∨ s. Because of the second of De Morgans laws, we can express the negation of our original statement as
“Heather will not go to the concert and Steve will not go to the concert.”
When is a compound proposition satisfiable?
A compound proposition satisfiable if there is an assignment of truth values to its variables that makes it true.