Logic 1 Flashcards
Declarative sentences
A sentence which evaluates to true or false
Propositional logic
Logical formulas created through variables and connectives.
Truth tables
Evaluations of formulas for every value of the variables
Valuation
A single combination of T/F values for a formula.
Satisfability
At leaast one valuation for the formula is true
Unsatisfability
No true valuations for the formula.
Operator precedence
1) ¬
2) ∧ ∨
3) → ↔
Semantic Equivalences (6)
1) ¬¬p ≡ p
2) p ∧ / ∨ r ≡ r ∧ / ∨ p
3) ¬(p ∧ r) ≡ ¬p ∨ ¬r / ¬(p ∨ r) ≡ ¬p ∧ ¬r
4) p ∧ / ∨ p ≡ p
5) (p ∧ / ∨ r) ∧ / ∨ s ≡ p ∧ / ∨ (r ∧ / ∨ s)
6) p → r ≡ ¬p ∨ r
Associativity (2)
1) Conjunction, disjunction and XOR are associative
2) Implication is not associative
Tautology
Every valuation of a formula is TRUE.
Contradiction
Every valuation of a formula is false.