Formula Trees and Propositional Logic Flashcards
Definition: A language L of propositional (or sentential) logic consists of …
- a set PVar(L) of propositional variables: P0, P1, P2, …
- a set of Conn1(L) of unary (one) logical connectives, containing ¬ (negation)
- a set Conn2(L) of binary logical connectives, containing: ∧ (conjunction), ∨ (disjuction), ⊃ (implication)
L is the meta-variable for a formal language
Not need to distinguish between arity of connectives, speak of set Conn(L) of logical connectives, such that Conn(L) = Conn1(L) ⋃ Conn2(L)
Recursive definition of a formula tree:
- Base clause: Any propositional variable Pi is a formula tree (atomic trees)
- Inductive Clauses: If A and B are formula trees: …
- Final Clause: Only trees that are obtained from the above rules are formula trees
What are the different definition for the parts of a formula tree?
#1: Formula tree not a single propositional variable, then the top connective of the formula tree is called the main connective (also: root or top node)
#2: If the main connective is unary we say that the tree is unary; if the main connective of the formula is binary, then the tree is binary
#3: For the unary tree in the above inductive clases, subtree. For the binary trees in the above inductive clauses, A is the left subtree and B is the right subtree
Define interpretation:
mapping from the alphabet to the formula tree
Define truth value assignment:
Mapping f: PVar(L) → {T, F}
(f maps each propositional variable Pi to one of the truth values T or F)
Mapping: relation between two sets
Definition of a truth value of a formula tree:
State the cases
A would be considered a meta-variable
i. Case 1 (Atomic Formula Tree):
If A is a propositional variable, then the truth value of A if f(A)
ii. Case 2 (Unary Formula Tree):
If A is of the form …, then the trueth value of A is determined by the truth table, contingent on the value of B
*iii. Case 3 (Binary Formula Tree): *
If A is in the form …, then the truth valye of A is determined depending on the truth values of B and C by the respective truth tables.
Exercise 01:
If the truth value assignments of f maps P1 to T, P2 to F, and P3 to T, then what are the truth values of the following three formula trees?
a) T
b) T
c) T
Translating formula trees into other notation:
Prefix/ Preorder/ Polish Method:
- Visit the root
- Traverse the left subtree
- Traverse the right subtree
Start from top
More economical - no parentheses are necessary
Translating formula trees into other notation:
Infix/ Inorder/ Algebraic Method:
- Traverse the left subtree
- Visit the root
- Traverse the right subtree
Easier to read
Translating formula trees into other notation:
Postfix/ Postorder/ Endorder Method:
- Traverse the left subtree
- Traverse the right subtree
- Visit the root
Translating formula trees into other notation:
Frege’s Begriffsschrift notation:
Variant of the prefix representation is Frege’s two-dimentional notation
Isomorphic relationship with the formula trees from exercise 01
Translating formula trees into other notation:
Dot notation by Peano/Whitehead and Russell:
Isomorphic to exercise 1
What is propositional logic?
A formal language to express logical relations between propositions or statements. Can be true or false
Alphabet of propositional logic:
- Propositional Variables: P0, P1, P2, …
- Logical Connectives: ∧ (conjunction), ∨ (disjuction), ⊃ (implication), and ~ (negation)
- Parenthesis: (, ).
Since we do not want to consider all possible combinations of these symbols, we restrict ourselves to well-formed formulas (wff) are defined by the following recursive definition:
1. Base Clause: P1 is a wff for i E ℕ. These wffs are also called atomics wffs
2. Inductive clauses: IF A and B are wffs thhen so are the logic connectives between them
3. Final Clause: Only strings of symbols that are obtained by the above two rules are wffs.
Note: ‘A’ and ‘B’ are not wffs themselves, but only metalogical variables that stand for wffs
How does parenthesis relate to formulas
Clutter
To avoid clutter, leave out parentheses when its clear how the formulas are intended to be read.