well formed formula DMS by Komal rokade.pptx

170 views 10 slides Jul 10, 2024
Slide 1
Slide 1 of 10
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10

About This Presentation

Discrete Mathematics structure


Slide Content

Well-Formed Formula(WFF) BY Ms. Komal V Rokade .

Well-Formed Formula(WFF) Well-Formed Formula(WFF)  is an expression consisting of variables( capitalletters ),parentheses, and connective symbols. An expression is basically a combination of operands & operators and here operands and operators are the connective symbols.

Below are the possible Connective Symbols: ¬ (Negation) ∧ (Conjunction) ∨ (Disjunction) ⇒ (Rightwards Arrow) ⇔ (Left-Right Arrow)

Statement Formulas 1.  Statements that do not contain any connectives are called  Atomic  or  Simple  statements and these statements in themselves are  WFFs .  For example, P, Q, R, etc. 2.  Statements that contain one or more primary statements are called  Molecular  or  Composite  statements.  For example, 

3. If P and Q are two simple statements, then some of the Composite statements which follow WFF standards can be formed are: ->    ¬P  ->    ¬Q  ->    (P ∨ Q)  ->    (P ∧ Q) ->    (¬P ∨ Q)  ->    ((P ∨ Q) ∧ Q) ->    (P ⇒ Q) ->    (P ⇔ Q) ->    ¬(P ∨ Q) ->    ¬(¬P ∨ ¬Q)

Rules of the Well-Formed Formulas 1 .A Statement variable standing alone is a  Well-Formed Formula(WFF) .  For example – Statements like P, ∼P, Q, ∼Q are themselves Well Formed Formulas. 2. If ‘P’ is a WFF then ∼P is a formula as well. 3. If P & Q are WFFs, then (P∨Q), (P∧Q), (P⇒Q), (P⇔Q), etc. are also WFFs.

Example Of Well Formed Formulas:

Examples which may seem like a WFF but they are not WFF (P) , ‘P’ itself alone is considered as a WFF by Rule 1 but placing that inside parenthesis is not considered as a WFF by any rule. ¬P ∧ Q , this can be either (¬P∧Q) or ¬(P∧Q) so we have ambiguity in this statement and hence it will not be considered as a WFF. Parentheses are mandatory to be included in Composite Statements.

((P ⇒ Q)) , We can say (P⇒Q) is a WFF and let (P⇒Q) = A, now considering the outer parentheses, we will be left with (A), which is not a valid WFF. Parentheses play a really important role in these types of questions. (P ⇒⇒ Q) , connective symbol right after a connective symbol is not considered to be valid for a WFF. ((P ∧ Q) ∧)Q) , conjunction operator after (P∧Q) is not valid.

((P ∧ Q) ∧ PQ) , invalid placement of variables(PQ). (P ∨ Q) ⇒ (∧ Q) , with the Conjunction component, only one variable ‘Q’ is present. In order to form an operation inside a parentheses minimum of 2 variables are required.