πŸŽ“ Computer Science & Engineering Portal

Master Engineering Disciplines with Structured Notes

Comprehensive academic lecture notes, exam-oriented unit summaries, laboratory manuals, and previous year question papers designed strictly for university students.

πŸ“‘

University Syllabi

AKTU & AICTE aligned semester guidelines.

πŸ“

Exam Question Papers

Previous 5 years solved university papers.

πŸ’‘

Lab Manuals & Viva

Practical codes with outputs & interview Qs.

Core Subjects & Units Hub

Click on any specific unit to immediately view its lecture notes below

Viewing All Lectures

Well-Formed Formula for Predicate Logic

Propositional logic uses a symbolic β€œlanguage” to represent the logical structure, or form, of a compound proposition. Like any language, this symbolic language has rules of syntaxβ€”grammatical rules for putting symbols together in the right way. Any expression that obeys the syntactic rules of propositional logic is called a well-formed formula, or WFF.

Fortunately, the syntax of propositional logic is easy to learn. It has only three rules:

  1. Any capital letter by itself is a WFF.
  2. Any WFF can be prefixed with β€œ~”. (The result will be a WFF too.)
  3. Any two WFFs can be put together with β€œβ€’β€, β€œβˆ¨β€, β€œβŠƒβ€, or β€œβ‰‘β€ between them, enclosing the result in parentheses. (This will be a WFF too.)

Example
Here are some examples of well-formed formulas, along with brief explanations how these formulas are formed in accordance with the three rules of syntax:
WFFexplanation
Aby rule 1
~Aby rule 2, since A is a WFF
~~Aby rule 2 again, since ~A is a WFF
(~A β€’ B)by rule 3, joining ~A and B
((~A β€’ B) βŠƒ ~~C)by rule 3, joining (~A β€’ B) and ~~C
~((~A β€’ B) βŠƒ ~~C)by rule 2, since ((~A β€’ B) βŠƒ ~~C) is a WFF
In contrast, here are a few formulas that are not well-formed:
non-WFFexplanation
A~the ~ belongs on the left side of the negated proposition
(A)parentheses are only introduced when joining two WFFs with β€’, ∨, βŠƒ, or ≑
(A β€’ )there’s no WFF on the right side of the β€’
(A β€’ B) βŠƒ C)missing paranthesis on the left side
(A β€’ βŠƒ B)cannot be formed by the rules of syntax

The last connective introduced by rule 2 or 3 is called the main connective of the WFF. The main connective represents the logical structure of the compound proposition as a whole. For example, if the main connective is a β€œ~”, the proposition as a whole is a negation. If the main connective is a β€œβ€’β€, the proposition is a conjunction, and so on.

Propositions joined by the main connective are called its components or component propositions. Components may themselves be compound propositions, made up of simpler components. Some components have special names. In a conjunction, the components joined by the β€œβ€’β€ (dot) are called its conjuncts. In a disjunction, the propositions joined by the β€œβˆ¨β€ (wedge) are called disjuncts. In a conditional, the component to the left of the β€œβŠƒβ€ (horseshoe) is called the antecedent and the component to the right is called the consequent.


Example:

The proposition (A β€’ ~B) is a conjunction because its main connective is the dot. The propositions A and ~B are its conjuncts.

The proposition (~A ∨ (B ≑ C)) is a disjunction because its main connective is the wedge. The propositions ~A and (B ≑ C) are its disjuncts.

The proposition ((A ∨ B) βŠƒ (C β€’ D)) is a conditional because its main connective is the horseshoe. The proposition (A ∨ B) is its antecedent and (C β€’ D) is its consequent.

Labels: ,

Discussion & Queries (<$I18NNumComments$>):

<$CommentPager$>
<$I18NAtCommentTimeWithPermalink$>, <$I18NCommentAuthorSaid$>

<$BlogCommentBody$>

<$BlogCommentDeleteIcon$>
<$CommentPager$>