• Aucun résultat trouvé

Formal equivalences

N/A
N/A
Protected

Academic year: 2022

Partager "Formal equivalences"

Copied!
11
0
0

Texte intégral

(1)

Formal equivalences

Season 2

Episode 04 Time frame 1 period

Prerequisites :

Truthtables.

Logialoperators

¬

,

,

,

,

.

Notionofformalequivalene.

Objectives :

Build some omplextruth tables.

Compare truth tables and nd formalequivalenes.

Materials :

Fat sheet with a fewlogial transformation rules.

Ninepairs of formally equivalent propositionsinvolvingthree propositions

p

,

q

,

r

.

Complete truth tables of eah proposition.

Beamer with a few logialtransformation rules.

1 – Build a truth table 15 mins

Students workin pairs.Eahpair is given alogial proposition and has tobuild itstruth

table. The teaher heks eah truh table beforeproeeding tothe seond part.

2 – Find formal equivalences 10 mins

Students mingle (stillworking by pairs) to nd a proposition formally equivalent to the

one they have.

3 – Formal derivation 20 mins

The teaher givesafewlogialtransformationrules,with afewexamples.Then students,

working inteamsoffour,havetouse themtotransformoneoftheirtwopropositionsinto

the other.

4 – Challenge 10 mins

Students have to redue the following property so that there are brakets and no ondi-

tional. To prove that their result is good, they have to build the truth tables of the two

propositions.

¬ ((p ∧ ¬ r) ∨ ( ¬ p ∨ r)) −→ ¬ (p ∧ ( ¬ q ∨ r))

(2)

Formal equivalences : a few rules

Season 2

Episode 04 Document Lesson

De Morgan's laws

Theorem 1

¬ (p ∧ q) ⇐⇒ ( ¬ p ∨ ¬ q)

and

¬ (p ∨ q) ⇐⇒ ( ¬ p ∧ ¬ q)

Proof. Let's look at the truth tableof eah proposition.

p q p ∧ q ¬ ( p ∧ q ) ¬ p ¬ q ¬ p ∨ ¬ q

0 0 0 1 1 1 1

0 1 0 1 1 0 1

1 0 0 1 0 1 1

1 1 1 0 0 0 0

As

¬ (p ∧ q)

and

¬ p ∨ ¬ q

havethe same truthtable, they are formallyequivalent.

p q p ∨ q ¬ ( p ∨ q ) ¬ p ¬ q ¬ p ∧ ¬ q

0 0 0 1 1 1 1

0 1 1 0 1 0 0

1 0 1 0 0 1 0

1 1 1 0 0 0 0

As

¬ (p ∨ q)

and

¬ p ∧ ¬ q

havethe same truthtable, they are formallyequivalent.

Conditional and bionditional

Theorem 2

(p → q) ⇐⇒ ( ¬ q → ¬ p) ⇐⇒ ( ¬ p ∨ q)

Proof. The rst formal equivalene has been proven in the previous session, so we just

have tolookat the truth tables of

p → q

and

¬ p ∨ q

.

p q p → q ¬ p ¬ p ∨ q

0 0 1 1 1

0 1 1 1 1

1 0 0 0 0

1 1 1 0 1

As

p → q

and

¬ p ∨ q

have the same truth table, they are formally equivalent.

(3)

Theorem 3

(p ↔ q) ⇐⇒ ( ¬ q ↔ ¬ p)

Proof. One again,we just haveto look atthe truth tables of the two propositions.

p q p ↔ q ¬ p ¬ q ¬ p ↔ ¬ q

0 0 1 1 1 1

0 1 0 1 0 0

1 0 0 0 1 0

1 1 1 0 0 1

As

p ↔ q

and

¬ p ↔ ¬ q

have the same truth table,they are formally equivalent.

(4)

Season 2Episode 04Formal equivalences

3

Document 1

Pairs of formallyequivalent propositions

( p ∧ q ) → r

¬ r → ( ¬ p ∨ ¬ q )

( ¬ p ∧ ¬ r ) → q

¬ q → ( p ∨ r )

¬ p → ¬ (q ∨ r)

¬ ( ¬ q ∧ ¬ r ) → p

(5)

( ¬ p → q ) → ¬ r

r → ( ¬ p ∧ ¬ q )

( p ∨ q ) → ( p ∧ r )

( ¬ p ∨ ¬ r ) → ( ¬ q ∧ ¬ p )

¬ p ↔ (q ∧ r)

( ¬ q ∨ ¬ r) ↔ p

(6)

Season 2Episode 04Formal equivalences

5

(p → q) ∨ (p → ¬ r)

p → ( q ∨ ¬ r )

( p ∧ q ) ↔ ( ¬ p ∨ r )

( p ∧ ¬ r ) ↔ ( ¬ p ∨ ¬ q )

( ¬ p ∨ p) → (q ∧ r)

( ¬ q ∨ ¬ r) → (p ∧ ¬ p)

(7)

Document 2

Pairsof formallyequivalent propositionswith ompletetruth tables

(p ∧ q) → r

p q r p ∧ q (p ∧ q) → r

0 0 0 0 1

0 0 1 0 1

0 1 0 0 1

0 1 1 0 1

1 0 0 0 1

1 0 1 0 1

1 1 0 1 0

1 1 1 1 1

¬ r → ( ¬ p ∨ ¬ q )

p q r ¬ p ¬ q ¬ r ¬ p ∨ ¬ q ¬ r → ( ¬ p ∨ ¬ q )

0 0 0 1 1 1 1 1

0 0 1 1 1 0 1 1

0 1 0 1 0 1 1 1

0 1 1 1 0 0 1 1

1 0 0 0 1 1 1 1

1 0 1 0 1 0 1 1

1 1 0 0 0 1 0 0

1 1 1 0 0 0 0 1

( ¬ p ∧ ¬ r) → q

p q r ¬ p ¬ r ¬ p ∧ ¬ r ( ¬ p ∧ ¬ r) → q

0 0 0 1 1 1 0

0 0 1 1 0 0 1

0 1 0 1 1 1 1

0 1 1 1 0 0 1

1 0 0 0 1 0 1

1 0 1 0 0 0 1

1 1 0 0 1 0 1

1 1 1 0 0 0 1

¬ q → ( p ∨ r )

p q r ¬ q p ∨ r ¬ q → (p ∨ r)

0 0 0 1 0 0

0 0 1 1 1 1

0 1 0 0 0 1

0 1 1 0 1 1

1 0 0 1 1

¬ p → ¬ (q ∨ r)

1

1 0 1 1 1 1

1 1 0 0 1 1

1 1 1 0 1 1

(8)

Season 2Episode 04Formal equivalences

7

¬ p → ¬ (q ∨ r)

p q r ¬ p q ∨ r ¬ (q ∨ r) ¬ p → ¬ (q ∨ r)

0 0 0 1 0 1 1

0 0 1 1 1 0 0

0 1 0 1 1 0 0

0 1 1 1 1 0 0

1 0 0 0 0 1 1

1 0 1 0 1 0 1

1 1 0 0 1 0 1

1 1 1 0 1 0 1

¬ ( ¬ q ∧ ¬ r ) → p

p q r ¬ q ¬ r ¬ q ∧ ¬ r ¬ ( ¬ q ∧ ¬ r) ¬ ( ¬ q ∧ ¬ r) → p

0 0 0 1 1 1 0 1

0 0 1 1 0 0 1 0

0 1 0 0 1 0 1 0

0 1 1 0 0 0 1 0

1 0 0 1 1 1 0 1

1 0 1 1 0 0 1 1

1 1 0 0 1 0 1 1

1 1 1 0 0 0 1 1

( ¬ p → q ) → ¬ r

p q r ¬ p ¬ r ¬ p → q ( ¬ p → q ) → ¬ r

0 0 0 1 1 0 1

0 0 1 1 0 0 1

0 1 0 1 1 1 1

0 1 1 1 0 1 0

1 0 0 0 1 1 1

1 0 1 0 0 1 0

1 1 0 0 1 1 1

1 1 1 0 0 1 0

r → ( ¬ p ∧ ¬ q)

p q r ¬ p ¬ q ¬ p ∧ ¬ q r → ( ¬ p ∧ ¬ q)

0 0 0 1 1 1 1

0 0 1 1 1 1 1

0 1 0 1 0 0 1

0 1 1 1 0 0 0

1 0 0 0 1 0 1

1 0 1 0 1 0 0

1 1 0 0 0 0 1

1 1 1 0 0 0 0

(9)

(p ∨ q) → (p ∧ r)

p q r p ∨ q p ∧ r (p ∨ q) → (p ∧ r)

0 0 0 0 0 1

0 0 1 0 0 1

0 1 0 1 0 0

0 1 1 1 0 0

1 0 0 1 0 0

1 0 1 1 1 1

1 1 0 1 0 0

1 1 1 1 1 1

( ¬ p ∨ ¬ r ) → ( ¬ q ∧ ¬ p )

p q r ¬ p ¬ q ¬ r ¬ p ∨ ¬ r ¬ q ∧ ¬ p ( ¬ p ∨ ¬ r) → ( ¬ q ∧ ¬ p)

0 0 0 1 1 1 1 1 1

0 0 1 1 1 0 1 1 1

0 1 0 1 0 1 1 0 0

0 1 1 1 0 0 1 0 0

1 0 0 0 1 1 1 0 0

1 0 1 0 1 0 0 0 1

1 1 0 0 0 1 1 0 0

1 1 1 0 0 0 0 0 1

¬ p ↔ ( q ∧ r )

p q r ¬ p q ∧ r ¬ p ↔ ( q ∧ r )

0 0 0 1 0 0

0 0 1 1 0 0

0 1 0 1 0 0

0 1 1 1 1 1

1 0 0 0 0 1

1 0 1 0 0 1

1 1 0 0 0 1

1 1 1 0 1 0

( ¬ q ∨ ¬ r) ↔ p

p q r ¬ q ¬ r ¬ q ∨ ¬ r ( ¬ q ∨ ¬ r) ↔ p

0 0 0 1 1 1 0

0 0 1 1 0 1 0

0 1 0 0 1 1 0

0 1 1 0 0 0 1

1 0 0 1 1 1 1

1 0 1 1 0 1 1

1 1 0 0 1 1 1

1 1 1 0 0 0 0

(10)

Season 2Episode 04Formal equivalences

9

(p → q) ∨ (p → ¬ r)

p q r ¬ r p → q p → ¬ r (p → q) ∨ (p → ¬ r)

0 0 0 1 1 1 1

0 0 1 0 1 1 1

0 1 0 1 1 1 1

0 1 1 0 1 1 1

1 0 0 1 0 1 1

1 0 1 0 0 0 0

1 1 0 1 1 1 1

1 1 1 0 1 0 1

p → ( q ∨ ¬ r )

p q r ¬ r q ∨ ¬ r p → (q ∨ ¬ r)

0 0 0 1 1 1

0 0 1 0 0 1

0 1 0 1 1 1

0 1 1 0 1 1

1 0 0 1 1 1

1 0 1 0 0 0

1 1 0 1 1 1

1 1 1 0 1 1

( p ∧ q ) ↔ ( ¬ p ∨ r )

p q r ¬ p p ∧ q ¬ p ∨ r ( p ∧ q ) ↔ ( ¬ p ∨ r )

0 0 0 1 0 1 0

0 0 1 1 0 1 0

0 1 0 1 0 1 0

0 1 1 1 0 1 0

1 0 0 0 0 0 1

1 0 1 0 0 1 0

1 1 0 0 1 0 0

1 1 1 0 1 1 1

(p ∧ ¬ r) ↔ ( ¬ p ∨ ¬ q)

p q r ¬ p ¬ q ¬ r p ∧ ¬ r ¬ p ∨ ¬ q (p ∧ ¬ r) ↔ ( ¬ p ∨ ¬ q)

0 0 0 1 1 1 0 1 0

0 0 1 1 1 0 0 1 0

0 1 0 1 0 1 0 1 0

0 1 1 1 0 0 0 1 0

1 0 0 0 1 1 1 1 1

1 0 1 0 1 0 0 1 0

1 1 0 0 0 1 1 0 0

1 1 1 0 0 0 0 0 1

(11)

( ¬ p ∨ p) → (q ∧ r)

p q r ¬ p ¬ p ∨ p q ∧ r ( ¬ p ∨ p) → (q ∧ r)

0 0 0 1 1 0 0

0 0 1 1 1 0 0

0 1 0 1 1 0 0

0 1 1 1 1 1 1

1 0 0 0 1 0 0

1 0 1 0 1 0 0

1 1 0 0 1 0 0

1 1 1 0 1 1 1

( ¬ q ∨ ¬ r ) → ( p ∧ ¬ p )

p q r ¬ p ¬ q ¬ r ¬ q ∨ ¬ r p ∧ ¬ p ( ¬ q ∨ ¬ r) → (p ∧ ¬ p)

0 0 0 1 1 1 1 0 0

0 0 1 1 1 0 1 0 0

0 1 0 1 0 1 1 0 0

0 1 1 1 0 0 0 0 1

1 0 0 0 1 1 1 0 0

1 0 1 0 1 0 1 0 0

1 1 0 0 0 1 1 0 0

1 1 1 0 0 0 0 0 1

Références

Documents relatifs

reading skills .a,nd, those .low achieving ·.. -:-students ·as

While we do not know how to rule out the possibility that E s has elevated rank, we can easily compute lists of curves in this family that can be used to generate clean pairs.. If

Yet in BioNetGen equivalent sites must be equivalent in the rules, in the algebraic expressions, and in the initial state, whereas KaDE may exploit pairs of sites that are equivalent

This piggybacking of promiscuous domain- pairs onto less promiscuous domain-pairs is possible only with concept lattices whose attribute-labels are not reduced and is enhanced by

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

Our proposed approach (Cherfia and Belala, 2014) consists in providing a bigraphical reactive systems based approach to formally model the different aspects

The methodology comprises three steps: (i) creating a data set with labelled instances from which the roles can be learned based on a set of features, (ii) representing formally

of our approaches, finite models will be presented in the form of tree automata, and formally checking models in this case essentially amounts to producing formal proofs of