Why logic?
### What is logic?
**In philosophy:** Logic was formed to "formalise correct argumentation and deduction".
**In mathematics:** Rules of logic are used to distinguish between correct and incorrect mathematical arguments (otherwise known as proofs).Propositions
Proposition
A proposition is a **declarative sentence** of which we can meaningfully ask whether it is true $(T)$ or false $(F)$.
Sample syntax:
Link to original
- Propositional / boolean random variables:
- Discrete random variables (finite or infinite) Given is one of "" is a proposition
- Continuous random variables (bounded or unbounded) ; ;
- Notations for true: .
- Notations for false: .
For example:
- Today is Monday.
Not declarative:
- Hi, how are you?
Propositional Logic
Propositional logic is the area of logic which deals with propositions, it is sometimes referred to as boolean logic.
Link to original
- We use propositional variables, denoted as lower case letters ( or ) to denote propositions whose structure we don’t want to analyse further.
- We build compound expressions called formulas, denoting compound propositions. They are built from logical connectives and parentheses.
We can define a formula as a compound expression made up of propositions, logical connectives and parentheses.