eolas/Logic/Syntax_of_sentential_logic.md

65 lines
2.4 KiB
Markdown
Raw Normal View History

2022-04-23 13:26:53 +01:00
---
2022-08-20 13:00:04 +01:00
categories:
2022-09-06 13:26:44 +01:00
- Mathematics
tags: [logic]
2022-04-23 13:26:53 +01:00
---
2022-09-06 13:26:44 +01:00
2022-04-23 13:26:53 +01:00
## Syntax of formal languages versus semantics
2022-09-06 13:26:44 +01:00
> The syntactical study of a language is the study of the expressions of the language and the relations among them _without regard_ to the possible interpretations or 'meaning' of these expressions.
2022-04-23 13:26:53 +01:00
Syntax is talking about the order and placement of propositions relative to connectives and what constitutes a well-formed expression in these terms. Semantics is about what the connectives mean, in other words: truth-functions and truth-values and not just placement and order.
## Formal specification of the syntax of the language of Sentential Logic
### Vocabulary
Sentences in SL are capitalised Roman letters (non-bold) with or without natural number subscripts. We may call these sentence letters. For example:
2022-09-06 13:26:44 +01:00
```plain
2022-04-23 13:26:53 +01:00
P, Q, R...P1, Q1, R1...
2022-09-06 13:26:44 +01:00
```
2022-04-23 13:26:53 +01:00
The connectives of SL are the five truth-functional connectives:
2022-09-06 13:26:44 +01:00
```
2022-04-23 13:26:53 +01:00
~, &, v, ⊃, ≡
2022-09-06 13:26:44 +01:00
```
2022-04-23 13:26:53 +01:00
The punctuation marks of SL consist in the left and right parentheses:
2022-09-06 13:26:44 +01:00
```
2022-04-23 13:26:53 +01:00
( )
2022-09-06 13:26:44 +01:00
```
2022-04-23 13:26:53 +01:00
### Grammar
1. Every sentence letter is a sentence.
1. If **P** is a sentence then **~P** is a sentence.
1. If **P** and **Q** are sentences, then **(P & Q)** is a sentence
1. If **P** and **Q** are sentences, then **(P v Q)** is a sentence
1. If **P** and **Q** are sentences, then **(P ⊃ Q)** is a sentence
1. If **P** and **Q** are sentences, then **(P ≡ Q)** is a sentence
1. Nothing is a sentence unless it can be formed by repeated application of clauses 1-6
### Additional syntactic concepts
We also distinguish:
2022-09-06 13:26:44 +01:00
- the **main connective**
- **immediate sentential components**
- **sentential components**
- **atomic components**
2022-04-23 13:26:53 +01:00
2022-09-06 13:26:44 +01:00
These definitions provide a formal specification of the concepts of atomic and molecular sentences _introduced earlier_.
2022-04-23 13:26:53 +01:00
1. If **P** is an atomic sentence, **P** contains no connectives and hence does not have a main connective. **P** has no immediate sentential components.
1. If **P** is of the form **~Q** where **Q** is a sentence, then the main connective of **P** is the tilde that occurs before **Q** and **Q** is the immediate sentential component of **P**.
1. If P is of the form:
1. **Q & R**
1. **Q v R**
1. **Q ⊃ R**
1. **Q ≡ R**
where **Q** and **R** are sentences, then the main connective of **P** is the connective that occurs between **Q** and **R** and **Q** and **R** are the immediate sentential components of **P**.