Formal Logic/Sentential Logic/Formal Syntax

From testwiki
Jump to navigation Jump to search

Template:Formal Logic:TOCPageNav


Formal Syntax

In The Sentential Language, we informally described our sentential language. Here we give its formal syntax or grammar. We will call our language โ„’๐’ฎ.

Vocabulary

  • Sentence letters: Capital letters 'A' – 'Z', each with (1) a superscript '0' and (2) a natural number subscript. (The natural numbers are the set of positive integers and zero.) Thus the sentence letters are:
A00, A10, ..., B00, B10, ..., ..., Z00, Z10, ...
  • Sentential connectives:
, , ¬, , 
  • Grouping symbols:
(, )

The superscripts on sentence letters are not important until we get to the predicate logic, so we won't really worry about those here. The subscripts on sentence letters are to ensure an infinite supply of sentence letters. On the next page, we will abbreviate away most superscripts and subscripts.

Expressions

Any string of characters from the โ„’๐’ฎ vocabulary is an expression of โ„’๐’ฎ. Some expressions are grammatically correct. Some are as incorrect in โ„’๐’ฎ as 'Over talks David Mary the' is in English. Still other expressions are as hopelessly ill-formed in โ„’๐’ฎ as 'jmr.ovn asgj as;lnre' is in English.

We call a grammatically correct expression of โ„’๐’ฎ a well-formed formula. When we get to Predicate Logic, we will find that only some well formed formulas are sentences. For now though, we consider every well formed formula to be a sentence.

Construction rules

An expression of โ„’๐’ฎ is called a well-formed formula of โ„’๐’ฎ if it is constructed according to the following rules.

i. The expression consists of a single sentence letter
ii. The expression is constructed from other well-formed formulae φ and ψ in one of the following ways:
ii-a.  ¬φ
ii-b.  (φψ)
ii-c.  (φψ)
ii-d.  (φψ)
ii-e.  (φψ)

In general, we will use 'formula' as shorthand for 'well-formed formula'. Since all formulae in โ„’๐’ฎ are sentences, we will use 'formula' and 'sentence' interchangeably.

Quoting convention

We will take expressions of โ„’๐’ฎ to be self-quoting and so regard

(P00Q00)

to include implicit quotation marks. However, something like

(1)(φψ)

requires special consideration. It is not itself an expression of โ„’๐’ฎ since φ and ψ are not in the vocabulary of โ„’๐’ฎ. Rather they are used as variables in English which range over expressions of โ„’๐’ฎ. Such a variable is called a metavariable, and an expression using a mix of vocabulary from โ„’๐’ฎ and metavariables is called a metalogical expression. Suppose we let φ be P00 and ψ be (Q00R00) . Then (1) becomes

('P00' ('Q00' 'R00'))

which is not what we want. Instead we take (1) to mean (using explicit quotes):

the expression consisting of '(' followed by φ followed by '' followed by ψ followed by ')' .

Explicit quotes following this convention are called Quine quotes or corner quotes. Our corner quotes will be implicit.

Additional terminology

We introduce (or, in some cases, repeat) some useful syntactic terminology.

  • We distinguish between an expression (or a formula) and an occurrence of an expression (or formula). The formula
((P00P00)¬P00)

is the same formula no matter how many times it is written. However, it contains three occurrences of the sentence letter P00 and two occurrences of the sentential connective .

  • ψ is a subformula of φ if and only if φ and ψ are both formulae and φ contains an occurrence of ψ. ψ is a proper subformula of φ if and only if (i) ψ is a subformula of φ and (ii) ψ is not the same formula as φ.
  • An atomic formula or atomic sentence is one consisting solely of a sentence letter. Or put the other way around, it is a formula with no sentential connectives. A molecular formula or molecular sentence is one which contains at least one occurrence of a sentential connective.
  • The main connective of a molecular formula is the last occurrence of a connective added when the formula was constructed according to the rules above.
  • A negation is a formula of the form ¬φ where φ is a formula.
  • A conjunction is a formula of the form (φψ) where φ and ψ are both formulae. In this case, φ and ψ are both conjuncts.
  • A disjunction is a formula of the form (φψ) where φ and ψ are both formulae. In this case, φ and ψ are both disjuncts.
  • A conditional is a formula of the form (φψ) where φ and ψ are both formulae. In this case, φ is the antecedent, and ψ is the consequent. The converse of (φψ) is (ψφ). The contrapositive of (φψ) is (¬ψ¬φ).
  • A biconditional is a formula of the form (φψ) where φ and ψ are both formulae.

Examples

(1)(¬(P00Q00)(R00¬Q00))

By rule (i), all sentence letters, including

P00, Q00, and R00 ,

are formulae. By rule (ii-a), then, the negation

¬Q00

is also a formula. Then by rules (ii-c) and (ii-b), we get the disjunction and conjunction

(P00Q00), and (R00¬Q00)

as formulae. Applying rule (ii-a) again, we get the negation

¬(P00Q00)

as a formula. Finally, rule (ii-c) generates the conditional of (1), so it too is a formula.


(2)((P00¬Q00)S00)

This appears to be generated by rule (ii-c) from

(P00¬Q00), and S00 .

The second of these is a formula by rule (i). But what about the first? It would have to be generated by rule (ii-b) from

P00¬ and Q00 .

But

P00¬

cannot be generated by rule (ii-a). So (2) is not a formula.


Template:Formal Logic:TOCPageNav