• Aucun résultat trouvé

Episode 03 – Formal logic

N/A
N/A
Protected

Academic year: 2022

Partager "Episode 03 – Formal logic"

Copied!
63
0
0

Texte intégral

(1)

Episode 03 – Formal logic

European section – season 2

Episode 03 – Formal logic

(2)

a is not even.

Episode 03 – Formal logic

(3)

a is not even.

True if the proposition is false and false if the proposition is true.

Episode 03 – Formal logic

(4)

a is not even.

True if the proposition is false and false if the proposition is true.

¬(2|a)

Episode 03 – Formal logic

(5)

a is not even.

True if the proposition is false and false if the proposition is true.

¬(2|a)

Episode 03 – Formal logic

(6)

a is even and b is divisible by 4.

Episode 03 – Formal logic

(7)

a is even and b is divisible by 4.

True only if both propositions are true.

Episode 03 – Formal logic

(8)

a is even and b is divisible by 4.

True only if both propositions are true.

(2|a) ∧ (4|b)

Episode 03 – Formal logic

(9)

a is even and b is divisible by 4.

True only if both propositions are true.

(2|a) ∧ (4|b)

Episode 03 – Formal logic

(10)

a is even or b is divisible by 4.

Episode 03 – Formal logic

(11)

a is even or b is divisible by 4.

True as soon as one of the two propositions is true.

Episode 03 – Formal logic

(12)

a is even or b is divisible by 4.

True as soon as one of the two propositions is true.

(2|a) ∨ (4|b)

Episode 03 – Formal logic

(13)

If a is even then b is divisible by 4.

Episode 03 – Formal logic

(14)

If a is even then b is divisible by 4.

True except if the second proposition can be false while the first property is true.

Episode 03 – Formal logic

(15)

If a is even then b is divisible by 4.

True except if the second proposition can be false while the first property is true.

(2|a) → (4|b)

Episode 03 – Formal logic

(16)

If a is even then b is divisible by 4.

True except if the second proposition can be false while the first property is true.

(2|a) → (4|b)

Episode 03 – Formal logic

(17)

a is even if and only if b is divisible by 4.

Episode 03 – Formal logic

(18)

a is even if and only if b is divisible by 4.

True if whenever one of the proposition is true, the other is also true, and whenever one proposition is false, the other is also false.

Episode 03 – Formal logic

(19)

a is even if and only if b is divisible by 4.

True if whenever one of the proposition is true, the other is also true, and whenever one proposition is false, the other is also false.

(2|a) ↔ (4|b)

Episode 03 – Formal logic

(20)

a is even if and only if b is divisible by 4.

True if whenever one of the proposition is true, the other is also true, and whenever one proposition is false, the other is also false.

(2|a) ↔ (4|b)

Episode 03 – Formal logic

(21)

A logical proposition and its negation

Definition (Truth value)

For any proposition p, we will write 0 if it’s false and 1 if it’s true.

Episode 03 – Formal logic

(22)

A logical proposition and its negation

Definition (Truth value)

For any proposition p, we will write 0 if it’s false and 1 if it’s true.

The truth table of the proposition p gives all the possibilities about the truth of p.

Episode 03 – Formal logic

(23)

A logical proposition and its negation

Definition (Truth value)

For any proposition p, we will write 0 if it’s false and 1 if it’s true.

The truth table of the proposition p gives all the possibilities about the truth of p.

Definition (Negation)

The negation of a proposition p, noted by the logical operator¬and the word not, is true when p is false. In other words,¬p is the contrary of p.

Episode 03 – Formal logic

(24)

A logical proposition and its negation

Definition (Truth value)

For any proposition p, we will write 0 if it’s false and 1 if it’s true.

The truth table of the proposition p gives all the possibilities about the truth of p.

Definition (Negation)

The negation of a proposition p, noted by the logical operator¬and the word not, is true when p is false. In other words,¬p is the contrary of p.

p ¬q

0 1

1 0

Episode 03 – Formal logic

(25)

A logical proposition and its negation

Definition (Truth value)

For any proposition p, we will write 0 if it’s false and 1 if it’s true.

The truth table of the proposition p gives all the possibilities about the truth of p.

Definition (Negation)

The negation of a proposition p, noted by the logical operator¬and the word not, is true when p is false. In other words,¬p is the contrary of p.

p ¬q

0 1

1 0

Example

The negation of the proposition “the door is closed” is “the door is not closed”.

Episode 03 – Formal logic

(26)

The main logical operators

Definition (Conjunction)

The conjunction of two propositions p and q, noted by the logical operator∧and the word and, is true when both propositions are true. In other words, pq is true when p and q are true.

Episode 03 – Formal logic

(27)

The main logical operators

Definition (Conjunction)

The conjunction of two propositions p and q, noted by the logical operator∧and the word and, is true when both propositions are true. In other words, pq is true when p and q are true.

p q pq

0 0 0

0 1 0

1 0 0

1 1 1

Episode 03 – Formal logic

(28)

The main logical operators

Definition (Conjunction)

The conjunction of two propositions p and q, noted by the logical operator∧and the word and, is true when both propositions are true. In other words, pq is true when p and q are true.

p q pq

0 0 0

0 1 0

1 0 0

1 1 1

Example

The conjunction of the propositions “I like chocolate” and “there’s some chocolate in the kitchen” is “I like chocolate and there’s some chocolate in the kitchen”.

Episode 03 – Formal logic

(29)

Definition (Disjunction)

The disjunction of two propositions p and q, noted by the logical operator∨and the word and, is true when at least one of the

propositions is true. In other words, pq is true when at least p or q is true. Beware, the logical disjunction is true when both propositions are true. It’s different from the exclusive disjunction, often used in the common langage, as in

“cheese or dessert”, “open or closed”.

Episode 03 – Formal logic

(30)

Definition (Disjunction)

The disjunction of two propositions p and q, noted by the logical operator∨and the word and, is true when at least one of the

propositions is true. In other words, pq is true when at least p or q is true. Beware, the logical disjunction is true when both propositions are true. It’s different from the exclusive disjunction, often used in the common langage, as in

“cheese or dessert”, “open or closed”.

p q pq

0 0 0

0 1 1

1 0 1

1 1 1

Episode 03 – Formal logic

(31)

Definition (Disjunction)

The disjunction of two propositions p and q, noted by the logical operator∨and the word and, is true when at least one of the

propositions is true. In other words, pq is true when at least p or q is true. Beware, the logical disjunction is true when both propositions are true. It’s different from the exclusive disjunction, often used in the common langage, as in

“cheese or dessert”, “open or closed”.

p q pq

0 0 0

0 1 1

1 0 1

1 1 1

Example

The disjunction of the propositions “ABCD is a rectangle” and “ABCD is a diamond” is “ABCD is a rectangle or a diamond”. Note that both propositions may be true at the same time.

Episode 03 – Formal logic

(32)

Definition (Conditional)

The conditional of p and q, noted by the logical operator→and the words if . . . then . . . , is always true except if p is true and q is false.

Episode 03 – Formal logic

(33)

Definition (Conditional)

The conditional of p and q, noted by the logical operator→and the words if . . . then . . . , is always true except if p is true and q is false.

p q pq

0 0 1

0 1 1

1 0 0

1 1 1

Episode 03 – Formal logic

(34)

Definition (Conditional)

The conditional of p and q, noted by the logical operator→and the words if . . . then . . . , is always true except if p is true and q is false.

p q pq

0 0 1

0 1 1

1 0 0

1 1 1

Example

The conditional of “it’s raining” and “I’ll take my umbrella” is “if it’s raining then I’ll take my umbrella”.

Episode 03 – Formal logic

(35)

Definition (Biconditional)

The biconditional of p and q, noted by the logical operator↔and the words if and only if, is true when p and q have the same truth value.

Episode 03 – Formal logic

(36)

Definition (Biconditional)

The biconditional of p and q, noted by the logical operator↔and the words if and only if, is true when p and q have the same truth value.

p q pq

0 0 1

0 1 0

1 0 0

1 1 1

Episode 03 – Formal logic

(37)

Definition (Biconditional)

The biconditional of p and q, noted by the logical operator↔and the words if and only if, is true when p and q have the same truth value.

p q pq

0 0 1

0 1 0

1 0 0

1 1 1

Example

The biconditional of propositions “ABC is a right angled triangle in A”

and “BC2=AB2+AC2” is “ABC is a right angled triangle in A if and only if BC2=AB2+AC2”.

Episode 03 – Formal logic

(38)

Formal equivalences

Definition (Formal equivalence)

Two logical statements are formally equivalent if they share the one method is to build their truth tables and compare them.

Episode 03 – Formal logic

(39)

Theorem

Let p and q be any two propositions. The proposition qp is called the converse of pq. It’s not formally equivalent to pq.

Episode 03 – Formal logic

(40)

Theorem

Let p and q be any two propositions. The proposition qp is called the converse of pq. It’s not formally equivalent to pq.

Episode 03 – Formal logic

(41)

Theorem

Let p and q be any two propositions. The proposition qp is called the converse of pq. It’s not formally equivalent to pq.

Proof.

Let’s look at the truth tables of the two propostions.

p q pq qp

0 0 1

0 1 1

1 0 0

1 1 1

Episode 03 – Formal logic

(42)

Theorem

Let p and q be any two propositions. The proposition qp is called the converse of pq. It’s not formally equivalent to pq.

Proof.

Let’s look at the truth tables of the two propostions.

p q pq qp

0 0 1 1

0 1 1

1 0 0

1 1 1

Episode 03 – Formal logic

(43)

Theorem

Let p and q be any two propositions. The proposition qp is called the converse of pq. It’s not formally equivalent to pq.

Proof.

Let’s look at the truth tables of the two propostions.

p q pq qp

0 0 1 1

0 1 1 0

1 0 0

1 1 1

Episode 03 – Formal logic

(44)

Theorem

Let p and q be any two propositions. The proposition qp is called the converse of pq. It’s not formally equivalent to pq.

Proof.

Let’s look at the truth tables of the two propostions.

p q pq qp

0 0 1 1

0 1 1 0

1 0 0 1

1 1 1

Episode 03 – Formal logic

(45)

Theorem

Let p and q be any two propositions. The proposition qp is called the converse of pq. It’s not formally equivalent to pq.

Proof.

Let’s look at the truth tables of the two propostions.

p q pq qp

0 0 1 1

0 1 1 0

1 0 0 1

1 1 1 1

Episode 03 – Formal logic

(46)

Theorem

Let p and q be any two propositions. The proposition qp is called the converse of pq. It’s not formally equivalent to pq.

Proof.

Let’s look at the truth tables of the two propostions.

p q pq qp

0 0 1 1

0 1 1 0

1 0 0 1

1 1 1 1

As the truth tables are not the same, the propositions are not formally equivalent.

Episode 03 – Formal logic

(47)

Theorem

Let p and q be any two propositions. The proposition¬q → ¬p is called the contrapositive of pq. It’s formally equivalent to pq.

Episode 03 – Formal logic

(48)

Theorem

Let p and q be any two propositions. The proposition¬q → ¬p is called the contrapositive of pq. It’s formally equivalent to pq.

Proof.

Let’s look at the truth tables of the two propostions.

Episode 03 – Formal logic

(49)

Theorem

Let p and q be any two propositions. The proposition¬q → ¬p is called the contrapositive of pq. It’s formally equivalent to pq.

Proof.

Let’s look at the truth tables of the two propostions.

p q pq ¬q ¬p ¬q→ ¬p

0 0 1

0 1 1

1 0 0

1 1 1

Episode 03 – Formal logic

(50)

Theorem

Let p and q be any two propositions. The proposition¬q → ¬p is called the contrapositive of pq. It’s formally equivalent to pq.

Proof.

Let’s look at the truth tables of the two propostions.

p q pq ¬q ¬p ¬q→ ¬p

0 0 1 1

0 1 1

1 0 0

1 1 1

Episode 03 – Formal logic

(51)

Theorem

Let p and q be any two propositions. The proposition¬q → ¬p is called the contrapositive of pq. It’s formally equivalent to pq.

Proof.

Let’s look at the truth tables of the two propostions.

p q pq ¬q ¬p ¬q→ ¬p

0 0 1 1 1

0 1 1

1 0 0

1 1 1

Episode 03 – Formal logic

(52)

Theorem

Let p and q be any two propositions. The proposition¬q → ¬p is called the contrapositive of pq. It’s formally equivalent to pq.

Proof.

Let’s look at the truth tables of the two propostions.

p q pq ¬q ¬p ¬q→ ¬p

0 0 1 1 1 1

0 1 1

1 0 0

1 1 1

Episode 03 – Formal logic

(53)

Theorem

Let p and q be any two propositions. The proposition¬q → ¬p is called the contrapositive of pq. It’s formally equivalent to pq.

Proof.

Let’s look at the truth tables of the two propostions.

p q pq ¬q ¬p ¬q→ ¬p

0 0 1 1 1 1

0 1 1 0

1 0 0

1 1 1

Episode 03 – Formal logic

(54)

Theorem

Let p and q be any two propositions. The proposition¬q → ¬p is called the contrapositive of pq. It’s formally equivalent to pq.

Proof.

Let’s look at the truth tables of the two propostions.

p q pq ¬q ¬p ¬q→ ¬p

0 0 1 1 1 1

0 1 1 0 1

1 0 0

1 1 1

Episode 03 – Formal logic

(55)

Theorem

Let p and q be any two propositions. The proposition¬q → ¬p is called the contrapositive of pq. It’s formally equivalent to pq.

Proof.

Let’s look at the truth tables of the two propostions.

p q pq ¬q ¬p ¬q→ ¬p

0 0 1 1 1 1

0 1 1 0 1 1

1 0 0

1 1 1

Episode 03 – Formal logic

(56)

Theorem

Let p and q be any two propositions. The proposition¬q → ¬p is called the contrapositive of pq. It’s formally equivalent to pq.

Proof.

Let’s look at the truth tables of the two propostions.

p q pq ¬q ¬p ¬q→ ¬p

0 0 1 1 1 1

0 1 1 0 1 1

1 0 0 1

1 1 1

Episode 03 – Formal logic

(57)

Theorem

Let p and q be any two propositions. The proposition¬q → ¬p is called the contrapositive of pq. It’s formally equivalent to pq.

Proof.

Let’s look at the truth tables of the two propostions.

p q pq ¬q ¬p ¬q→ ¬p

0 0 1 1 1 1

0 1 1 0 1 1

1 0 0 1 0

1 1 1

Episode 03 – Formal logic

(58)

Theorem

Let p and q be any two propositions. The proposition¬q → ¬p is called the contrapositive of pq. It’s formally equivalent to pq.

Proof.

Let’s look at the truth tables of the two propostions.

p q pq ¬q ¬p ¬q→ ¬p

0 0 1 1 1 1

0 1 1 0 1 1

1 0 0 1 0 0

1 1 1

Episode 03 – Formal logic

(59)

Theorem

Let p and q be any two propositions. The proposition¬q → ¬p is called the contrapositive of pq. It’s formally equivalent to pq.

Proof.

Let’s look at the truth tables of the two propostions.

p q pq ¬q ¬p ¬q→ ¬p

0 0 1 1 1 1

0 1 1 0 1 1

1 0 0 1 0 0

1 1 1 0

Episode 03 – Formal logic

(60)

Theorem

Let p and q be any two propositions. The proposition¬q → ¬p is called the contrapositive of pq. It’s formally equivalent to pq.

Proof.

Let’s look at the truth tables of the two propostions.

p q pq ¬q ¬p ¬q→ ¬p

0 0 1 1 1 1

0 1 1 0 1 1

1 0 0 1 0 0

1 1 1 0 0

Episode 03 – Formal logic

(61)

Theorem

Let p and q be any two propositions. The proposition¬q → ¬p is called the contrapositive of pq. It’s formally equivalent to pq.

Proof.

Let’s look at the truth tables of the two propostions.

p q pq ¬q ¬p ¬q→ ¬p

0 0 1 1 1 1

0 1 1 0 1 1

1 0 0 1 0 0

1 1 1 0 0 1

Episode 03 – Formal logic

(62)

Theorem

Let p and q be any two propositions. The proposition¬q → ¬p is called the contrapositive of pq. It’s formally equivalent to pq.

Proof.

Let’s look at the truth tables of the two propostions.

p q pq ¬q ¬p ¬q→ ¬p

0 0 1 1 1 1

0 1 1 0 1 1

1 0 0 1 0 0

1 1 1 0 0 1

As the truth tables are the same, the propositions are formally equivalent.

Episode 03 – Formal logic

(63)

Definition (Tautology and contradiction)

A tautology is a logical statement that is true by virtue of its logical form, that requires no assumptions to determine its veracity. A contradiction is a statement that is always false.

Episode 03 – Formal logic

Références

Documents relatifs

We tested for two additional contrasts an- alyzed by Smolka et al.: the difference in priming strength between Transparent and Opaque Deriva- tion (not significant in either

be
the
best
way
to
solve
the
debt
and
employment
problems
of
the
province.
This
left
no
use


Relational structures, ages, counting functions, oligomorphic groups, age algebra, Ramsey theorem, integral domain.. ∗ Research done under the auspices of Intas programme

The negation of a proposition p, noted by the logical operator ¬ and the word not, is true when p is false.. F or example, "it's raining

That this is the normal situation in practical problems is the sole justifica- tion for the common practice of specifying a Markov process merely b y writing

Suppose R is a right noetherian, left P-injective, and left min-CS ring such that every nonzero complement left ideal is not small (or not singular).. Then R

HAL is a multi-disciplinary open access archive for the deposit and dissemination of sci- entific research documents, whether they are pub- lished or not. The documents may come

L’enquête par entretiens avec les seules mères minore le rôle des conjoints dans le « choix » du homeschooling, comme l’illustre un entretien exceptionnellement mené en