2.7 KiB
Proposition
A proposition (or assertion) is a sentence that can be a math or anything else that can be true or false. Logic use connector to create new proposition Exemple :
- P="The sky is red"
- Q="The is is not red"
- It's a negation :
Q=\daleth{P}
andP=\daleth{Q}
Connectors
-
Negation
- Def: Let P a proposition : we call negation of P a proposition or the proposition that is true when P is false and false when P is true. We denote this proposition :
daleth{P}$
-
Conjunction
-
Disjunction
-
If then (implication)
- Def: Let P and Q two propositions. We call if P then Q the proposition that is :
- Exemple
- Moustache => Nice
- Let's take
R=[P=>Q]
>P$$
Is a converse ofR=[P=>Q]
The contrapositive ofR=[P=>Q]
is[\daleth{Q} => \daleth{P}]
The both are equivalence
-
Equivalence
-
Def: Let P and Q two propositions. We say P and Q are equivalent and denote
P=>Q
when both(P=>Q) and (Q=>P) are true
In other words when(P=>Q) and (Q=>P) is true
and false if else. !aleth{(P\land{Q})}=\daleth{P}\land{\daleth{Q}}$$
>B$$
A is the sufficient condition (to B) and B is the necessary condition (to A)
A<=>B
A & B are the necessary and sufficient conditons
-
Quantifiers
We know two quantifiers : \forall \text{ and } \exists
Example: \forall{x \in{R}}, P(x)
is true whatever the values of x from R
x^2\eqslantgtr{0}
\exists{x\in{R}}, P(x)
P is true for at lease one value of R
\exists{x\in{R}}, x^2=0
\exists{x\in{R}}, x^2=1
⚠️ The order maters for every quantifiers
- The negation of
\exists{ x \in{E}} \text{ is } \forall{x\in{E}}
- The negation of
-
\forall{x\in{E}} \text{ is } \exists{ x \in{E}}