Alphabet
Logical Symbols
- Logical Connectives
- Unary connective
- negation, (or logical not, logical complement)
- Binary connectives (notation: we use in for any binary connective)
- Logical disjunction
- Logical conjunction
- Material conditional (or material implication)
- logical biconditional (or material biconditional)
- -ary connective
- Unary connective
- Punctuation: '' and ''
Non-Logical Symbols
- (Proposition Variables)
also called: sentence symbols, elementary proposition (פסוק אלמנטרי)
Propositions
Definition
We define the set of all propositions generated by the set of a proposition variables
Recursive Definition
- Any string with one proposition variable is a proposition
- Any proposition preceded by is a proposition
- Any two propositions can be made into another proposition by writing one of these symbols between them, and enclosing the result in parentheses
Induction Defintion
- is the set of of elementary propositions with one symbol
- Given is defined: is the set of all strings in in additional all strings , , , and for which and are in
- A string is called a proposition if and only if, it is in one of the sets
- Depth:
- The depth of a proposition , denoted by , is the smallest number such that
- A proposition is an elementary proposition, if and only if,
- Given a proposition φ, we define its depth to be 1 + the length of the longest path of its parse tree
- for each elementary proposition , and , and for each binary connective @ and propositions and .
Necessary and sufficient conditions for a string to be a proposition
- It is a proposition
- It is construct from elementary proposition and connectives according to the allowed construction rules
- it is in one of the sets
- It has a structure tree
- It has a formation sequence
Unique Readability
The propositions are naturally divided into three types:
-
Elementary propositions
-
Negation propositions, of the form , where is a proposition. In other words, a string whose first symbol is the negation connective, and the rest of the string is also a proposition.
-
Compound propositions, which are of the form , where and are propositions.
-
The Unique Readability Theorem (2.2)
- Every proposition belongs to one of the three types we described, and to only one.
- Every compound proposition is of the form for some connective and for a pair of single propositions, and .
- The position of this connective in the string is characterized by the following: after removing the outer parentheses, it is the unique binary connective in the string such that the segment to its left has an equal number of left and right parentheses (any other binary connective before or after it has an excess of left parentheses to its left.)
-
In a negation proposition , the connective is called the main connective of the proposition and is called the main component of the proposition
-
In a compound proposition, , the connective is called the main connective of the proposition and and are called the main components of the proposition
-
(q2.6) A proper prefix of a proposition is not a proposition
Structure Tree
The unique readability theorem provides us with an algorithm that, given a string of propositional keyboard symbols, does the following:
- Determines whether the string is a proposition.
- If the string is a non-elementary proposition, the algorithm finds the main connective and main components.
- As long as the components are not elementary propositions, the algorithm continues to analyze them in the same way.
- The algorithm presents the analysis result as a tree where the given proposition’s root appears, all the sub-propositions of the given proposition are written in nodes, and the branches of each node are the main components of the proposition at that node.
Structural Induction
Proving Properties on Propositions
- (Theorem 2.1)
- Let be a property of some (or all) the strings. Given:
- Every elementary proposition has the property
- If a proposition has the property then has the property as well
- For each binary connective @, if and has the property , then has the property as well
- Then, every proposition has the property
- Let be a property of some (or all) the strings. Given:
Defining
- (2.3) Defintion using Structural Induction
- (informal version) We can define function from the set of propositions to a set
- Define for each elementary proposition
- Define (by the value of given exists)
- Define for each binary connective . (by the values of and given exist)
- (formal version) Let a function from the set of elementary propositions to the set , and let a function, and for each binary contective let , then, there only one function from the set of elementary propositions to the set , such that:
- if is an elementary proposition, then
- if , then
- if then
- (informal version) We can define function from the set of propositions to a set
- (2.4) locality of defintion using Structural Induction
- Let and be proportional languages (possibly the same), and let be a proposition in both (and therefore the elementary propositions in are in both languages). and let be a set. and let and functions defiend in structural Induction, such that,
- (1.) the functions and in the function defintions of and are the same.
- (2.) for each elementary proposition in the string .
- Then: .
- Let and be proportional languages (possibly the same), and let be a proposition in both (and therefore the elementary propositions in are in both languages). and let be a set. and let and functions defiend in structural Induction, such that,
Substitution
- We say that a string is obtained from a string by substitution if is obtained from by replacing all occurrences of a the string in by a string . We denote this by
Parentheses
- Every proposition is parentheses balanced, that is, the number of left parentheses equals the number of right parentheses.
- Let be a string representing a proposition.
- At any prefix, the number of left parentheses is greater than or equal to the number of right parentheses
- At any suffix, the number of right parentheses is greater than or equal to the number of left parentheses
- Every binary connective in a proposition sees more left parentheses to its left (and more right parentheses to its right).
Subproposition
- (2.5) is called a subproposition of if and only if it is substring of which is also a proposition
- (2.6) If and and are propositions, then is also a proposition
Formation Sequence
- A formation sequence (סדרת בנייה) is a finite sequence of propositions such that each term is obtained from the previous terms by applying one of the rules of formation of propositions.
- A formation sequence for is a formation sequence whose last term is .
- (2.9)
- (A.) A prefix of a formation sequence is also a formation sequence
- (B.) For each proposition , there exists a formation sequence that all its strings are subpropositions of .
- (C.) Every subproposition of a proposition appears in every formation sequence for the proposition.
- A string is a proposition if and only if it has a formation sequence
- A proposition is a subproposition of a proposition if and only if appears in every formation sequence for .
BNF Grammar
Normal Forms
CNF & DNF
Course Term | BNF | |
---|---|---|
קוניונקציה מרובה | ||
דיסיונקציה מרובה | ||
פסוק בסיסי | or | Literal Literal→¬Variable Literal→Variable |
Disjunction Disjunction→Literal∨Disjunction Disjunction→Literal | ||
קוניונקציה פשוטה | קוניונקציה מרובה של פסוקים בסיסיים | Conjunction Conjunction→Literal∧Conjunction Conjunction→Literal |
פסוק דיסיונקטיבי נורמלי | דיסיונקציה של קוניוקציות פשוטות | Disjunctive normal form (DNF) DNF→(Conjunction)∨DNF DNF→(Conjunction) |
Conjunctive normal form (CNF) CNF→(Disjunction)∨CNF CNF→(Disjunction) | ||
קוניונקציה פשוטה מלאה | קוניונקציה פשוטה שמופיעה בה כל פסוק אלמנטרי (לחיוב או לשלילה) בדיוק פעם אחת | Full Conjunction |
-
Notation of full conjunction:
-
In a language with the elementary propositions there are exactly full conjunctions
-
(3.5) Every proposition has an equivalent DNF (see algorithm 3.3.2.1todo )
-
A CNF is a conjunction of clauses
-
A clause is a disjunction (or rarely, conjunction) of literals