- Fully Parenthesized Propositions (with 5 operators, 2 constants)
<proposition> ::= T | F | <identifier> | ( ¬ <proposition> ) | ( <proposition> ∧ <proposition> ) | ( <proposition> ∨ <proposition> ) | ( <proposition> ⇒ <proposition> ) | ( <proposition> = <proposition> )
Here, for clarity, we distinguish expressions T, F with their values true, false
- Constant Propositions:
- T -> true, F -> false
- ∧, ∨, ¬, ⇒, =: via truth table
- composition: repeatly applying 1 and 2
- Evalutaion Propositions in a State.
- A state is a function s: { identifiers } => { true, false }
- A proposition e is well-defined in s if every identifiern in e is in the domain of s.
- <s,e> = eval_s(e) := eval(e by replacing ids with their values in s)
- A tautology is a proposition e that is true in every state in which it is well-defined.
for all s in which id(e) ⊂ domain(s), <s, e> = true
- A proposition represents, or describes, the set of states in which it is true. Conversely, for any set of states containing only identifiers associated with true/false, we can derive a proposition that represents that state set. Examples:
- T represents the set of all states (U).
- F represents the set of no states (∅).
- α: (b ∧ c ∧ d) represents the set A = {{ (b, true), (c, true), (d, true) }}.
- β: (b ∧ c ∧ d) ∨ (¬b ∧ c ∧ ¬ d) represents the set B of two states:
- { (b, true), (c, true), (d, true) } and
- { (b, false), (c, true), (d, false) }.
- If α => β we say the following equivalent statements:
- α is stronger than β;
- β is weaker than α;
- β's set of states includes α's (and possible more)
F => α => β => T ∅ ⊂ A ⊂ B ⊂ U
- The Laws of Equivalence
- Propositions E1 and E2 are equivalent if E1 = E2 is a tautology. In this case, E1 = E2 is called an equivalence.
- Examples of equivalences are the following laws:
- Commutative Laws: E1 ∧ E2 = E2 ∧ E1, ... (reordering
and
,or
,equals
) - Associative Laws: *E1 ∧ E2 ∧ E3 = *, ... (allowing dispense with parentheses)
- Distributive Laws
- De Morgan's Laws
- Law of Negation
- Law of the Excluded Middle: E1 ∨ ¬E1 = T
- Law of Contraditction: E1 ∧ ¬E1 = F
- Law of Implication
- Law of Equality
- Laws of or-simplification
- Laws of and-simplification
- Laws of Identity
- Commutative Laws: E1 ∧ E2 = E2 ∧ E1, ... (reordering
- The Rules of Substitution and Transitivity