∑Massarak

Notions de logique

Utiliser le langage logique et les principaux types de raisonnement pour analyser un énoncé, formuler une propriété et rédiger une démonstration mathématique — cours et corrigé détaillé du professeur (8 à 10 heures).

Objectifs

  • Reconnaître une proposition
  • Utiliser les quantificateurs
  • Nier une proposition
  • Exploiter les tables de vérité
  • Rédiger un raisonnement

Prérequis

  • Ensembles de nombres
  • Équations et inéquations
  • Calcul algébrique
  • Propriétés élémentaires des nombres

Cours

I. Proposition — Fonction propositionnelle

Activité 1

Mettre une croix (X\mathrm{X}) dans la case qui convient :

Textes mathématiques

VraiFaux
On ne peut pas
décider sa
vérité
N'a pas de
sens
∘  15×2\circ ~~15 \times 2
∘  12×3+4=20\circ ~~12 \times 3+4=20
∘  −6∉N\circ ~~-6 \notin \mathbb{N}
∘  2\circ ~~2 est une racine du polynôme P(x)=x2−x−2P(x) = x^2 - x - 2
∘  \circ ~~ Chaque nombre impair est un nombre premier.
(x∈Z):x+5≥0.(x \in \mathbb{Z}) : x + 5 \ge 0.
∘  \circ ~~ Soient x,yx, y de Z\mathbb{Z}, on a 2x−y=12x-y=1

I.1 Proposition

Définition I.1

On appelle proposition (ou assertion) tout énoncé mathématique dont on peut dire s'il est vrai (V)(V) ou s'il est faux (F)(F), mais jamais les deux à la fois.

On note souvent une proposition par les lettres PP, QQ ou RR.

Exemple 1
  • ∘\circ

    " Le nombre 2022 est pair " est une proposition vraie.

  • ∘\circ

    " Tout carré est un parallélogramme " est une proposition vraie.

  • ∘\circ

    " Tout nombre pair est divisible par 4 " est une proposition fausse.

Application 1

Déterminer la valeur de vérité de chacune des propositions suivantes :

  • ∙\bullet

    P:"(73)2=73"P : "\left(\dfrac{\sqrt{7}}{\sqrt{3}}\right)^{2}=\dfrac{7}{3} ".

  • ∙\bullet

    Q:"3+5×3−5∈N"Q : " \sqrt{3+\sqrt{5}} \times \sqrt{3-\sqrt{5}} \in \mathbb{N} ".

  • ∙\bullet

    RR : « L'équation x2−3x+5=0x^{2}-3 x+5=0 admet deux solutions dans R\mathbb{R} ».

I.2 Fonction propositionnelle

Définition I.2

On appelle fonction propositionnelle tout énoncé mathématique contenant une ou plusieurs variables appartenant à un ensemble EE, qui devient une proposition lorsqu'on remplace chacune de ses variables par un élément particulier de EE.

Exemple 2

  • ∘\circ

    Sur R\mathbb{R}, P(x):x2−x<0P(x):x^{2}-x<0 est une fonction propositionnelle ; P(0)P(0) est fausse et P(12)P\left(\dfrac{1}{2}\right) est vraie.

  • ∘\circ

    Sur N2\mathbb{N}^{2}, Q(n,m):n+m=10Q(n,m):n+m=10 est une fonction propositionnelle ; Q(4,6)Q(4,6) est vraie et Q(2,7)Q(2,7) est fausse.

  • ∘\circ

    Sur R\mathbb{R}, S(x):x2≥0S(x):x^{2}\geq0 est une fonction propositionnelle ; S(a)S(a) est vraie pour tout réel aa (par exemple, S(−3)S(-3) et S(0)S(0) sont vraies).

I.3 Proposition quantifiée

Activité 2

Mettre une croix (X\mathrm{X}) dans la case qui convient :

PropositionVraiFaux
Le carré de tout nombre réel est positif.
Il existe un nombre réel inférieur strictement à 1.
Tout nombre réel est décimal.
L'équation x2=0x^{2}=0 admet une unique solution réelle.

Les propositions précédentes apparaissent sous forme de phrases, mais on peut les écrire à l'aide de symboles. Si on symbolise « pour tout » ou « quel que soit » par ∀\forall, et « il existe au moins » par ∃\exists, alors la première proposition du tableau devient (∀x∈R):x2≥0(\forall x \in \mathbb{R}) : x^{2} \geq 0 et la deuxième devient (∃x∈R):x<1(\exists x \in \mathbb{R}) : x < 1.

Les symboles ∀\forall et ∃\exists sont appelés les quantificateurs.

À partir d'une fonction propositionnelle P(x)P(x) définie sur un ensemble EE, on peut construire de nouvelles propositions, appelées propositions quantifiées, à l'aide des quantificateurs « quel que soit » et « il existe au moins un ».

Définition I.3 — Quantificateur universel

Soit P(x)P(x) une fonction propositionnelle définie sur un ensemble EE. On appelle quantificateur universel le symbole ∀\forall, qui se lit « pour tout » ou « quel que soit », et qui permet de former la proposition quantifiée (∀x∈E):P(x). (\forall x\in E): P(x). Cette proposition est vraie si P(x)P(x) est vraie pour tous les éléments xx de EE ; elle est fausse s'il existe au moins un élément xx de EE pour lequel P(x)P(x) est fausse.

Définition I.4 — Quantificateur existentiel

Soit P(x)P(x) une fonction propositionnelle définie sur un ensemble EE. On appelle quantificateur existentiel le symbole ∃\exists, qui se lit « il existe » ou « il existe au moins un », et qui permet de former la proposition quantifiée (∃x∈E):P(x). (\exists x\in E): P(x). Cette proposition est vraie s'il existe au moins un élément xx de EE pour lequel P(x)P(x) est vraie ; elle est fausse si P(x)P(x) est fausse pour tous les éléments xx de EE.

Remarque — Quantificateur d'unicité

Lorsqu'il existe un unique élément xx de EE vérifiant P(x)P(x), on écrit (∃! x∈E):P(x)(\exists!\,x\in E):P(x), qui se lit « il existe un unique xx de EE tel que P(x)P(x) ».

Exemple 3
  • ∘\circ

    « (∀x∈R):2x+1=0(\forall x\in\mathbb{R}):2x+1=0 » est fausse, car elle n'est pas vérifiée pour x=0x=0.

  • ∘\circ

    « (∃n∈N):2n−4=0(\exists n\in\mathbb{N}):2n-4=0 » est vraie, car n=2n=2 convient.

  • ∘\circ

    « (∃! x∈R):x2−2x+1=0(\exists!\,x\in\mathbb{R}):x^{2}-2x+1=0 » est vraie, car x=1x=1 est l'unique solution.

Application 2

Réécrire les propositions suivantes en utilisant les quantificateurs logiques.

  • ✓\checkmark

    P1P_{1} : "La valeur absolue de tout nombre réel non nul est strictement positive".

  • ✓\checkmark

    P2P_{2} : "Il existe au moins un nombre réel xx tel que 2x2−3x=02 x^{2}-3 x=0 ".

  • ✓\checkmark

    P3P_{3} : "L'équation x−2x+1=0x-2 \sqrt{x}+1=0 admet une unique solution réelle".

  • ✓\checkmark

    P4P_{4} : "Le polynôme P(x)=x3+2x2−3x+1P(x)=x^{3}+2 x^{2}-3 x+1 admet au moins une racine".

  • ✓\checkmark

    P5P_{5} : "Pour tout nombre réel xx, il existe un unique entier N\mathrm{N} tel que N≤x<N+1"N \leq x<N+1 ".

  • ✓\checkmark

    P6P_{6} : "Il existe un entier multiple de tous les autres".

Remarque
  • ■\blacksquare

    On peut inverser deux quantificateurs universels ou deux quantificateurs existentiels.

  • ■\blacksquare

    On ne peut a priori pas inverser un quantificateur existentiel avec un quantificateur universel.

Exemple 4
  • ∘\circ

    Les propositions " (∀x∈R)(∀y∈R):x+y=2(\forall x \in \mathbb{R})(\forall y \in \mathbb{R}): x+y=2 " et

    " (∀y∈R)(∀x∈R):x+y=2(\forall y \in \mathbb{R})(\forall x \in \mathbb{R}): x+y=2 " ont la même valeur de vérité.

  • ∘\circ

    Les propositions " (∃x∈R)(∀y∈R):x+y=2(\exists x \in \mathbb{R})(\forall y \in \mathbb{R}): x+y=2 " et

    " (∀y∈R)(∃x∈R):x+y=2(\forall y \in \mathbb{R})(\exists x \in \mathbb{R}): x+y=2 " n'ont pas la même valeur de vérité. La première est fausse mais la deuxième est vraie.

Exercice 1

Déterminer la valeur de vérité de chacune des propositions suivantes :

  • ∙\bullet

    P1:"(∃x∈R):x2+x−1=0"P_{1}: "(\exists x \in \mathbb{R}): x^{2}+x-1=0 ".

  • ∙\bullet

    P2:"(∀x∈R):x2+3x+7<0"P_{2}: "(\forall x \in \mathbb{R}): x^{2}+3 x+7<0 ".

  • ∙\bullet

    P3:"(∀x∈R)(∃y∈R):x≤y"P_{3}: "(\forall x \in \mathbb{R})(\exists y \in \mathbb{R}): x \leq y ".

  • ∙\bullet

    P4:"(∃y∈R)(∀x∈R):x≤y"P_{4}: "(\exists y \in \mathbb{R})(\forall x \in \mathbb{R}): x \leq y ".

  • ∙\bullet

    P5:"(∀y∈R)(∀x∈R):x≤y"P_{5}: "(\forall y \in \mathbb{R})(\forall x \in \mathbb{R}): x \leq y ".

  • ∙\bullet

    P6:P_{6}: « (∃x∈R)(∃y∈R):x<y(\exists x \in \mathbb{R})(\exists y \in \mathbb{R}) : x<y ».

Partie terminée ? Testez-vous sur cette partie :

II. Opérations sur les propositions

II.1 La négation d'une proposition

Définition II.1

La négation d'une proposition PP, notée P‾\overline{P}, est la proposition qui est vraie si PP est fausse et qui est fausse si PP est vraie.

Tableau de vérité de PP et P‾\overline{P}

PPP‾\overline{P}
Ce tableau est appelé le
VVFFtableau de vérité de la
FFVVnégation.
Exemple 5
  • ∘\circ

    La négation de la proposition 3>23>2 est 3≤23 \leq 2.

  • ∘\circ

    La négation de la proposition (−2)2=−4(-2)^{2}=-4 est (−2)2≠−4(-2)^{2} \neq-4.

  • ∘\circ

    La négation de la proposition −3∈N-3 \in \mathbb{N} est −3∉N-3 \notin \mathbb{N}.

Propriété II.1
  • ∘\circ

    La négation de la proposition " (∀x∈E):P(x)(\forall x \in E): P(x) " est " (∃x∈E):P(x)‾(\exists x \in E): \overline{P(x)} ".

  • ∘\circ

    La négation de la proposition " (∃x∈E):P(x)(\exists x \in E): P(x) " est " (∀x∈E):P(x)‾(\forall x \in E): \overline{P(x)} ".

  • ∘\circ

    La négation de la proposition " (∀x∈E)(∃y∈E):P(x,y)(\forall x \in E)(\exists y \in E): P(x, y) " est :

    " (∃x∈E)(∀y∈E):P(x,y)‾"(\exists x \in E)(\forall y \in E): \overline{P(x, y)} ".

  • ∘\circ

    La négation de la proposition : " (∃x∈E)(∀y∈E):P(x,y)(\exists x \in E)(\forall y \in E): P(x, y) " est :

    " (∀x∈E)(∃y∈E):P(x,y)‾"(\forall x \in E)(\exists y \in E): \overline{P(x, y)} ".

Remarque
  • ✓\checkmark

    La double négation de PP est PP : les propositions PP et P‾‾\overline{\overline{P}} ont la même valeur de vérité.

  • ✓\checkmark

    On a le tableau suivant :

Le symbole>><<≥\geq≤\leq==∈\in
Sa négation≤\leq≥\geq<<>>≠\neq∉\notin
Exemple 6
La proposition PPLa négation P‾\overline{P}
∘(∀x∈R):x≥1\circ(\forall x \in \mathbb{R}): x \geq 1∘(∃x∈R):x<1\circ(\exists x \in \mathbb{R}): x<1
∘(∃n∈N):n∈N\circ(\exists n \in \mathbb{N}): \sqrt{n} \in \mathbb{N}∘(∀n∈N):n∉N\circ(\forall n \in \mathbb{N}): \sqrt{n} \notin \mathbb{N}
∘(∀x∈R):x2+x+1≥0\circ(\forall x \in \mathbb{R}): x^{2}+x+1 \geq 0∘(∃x∈R):x2+x+1<0\circ(\exists x \in \mathbb{R}): x^{2}+x+1<0
∘(∀n∈N)(∃m∈N):m≥n\circ(\forall n \in \mathbb{N})(\exists m \in \mathbb{N}): m \geq n∘(∃n∈N)(∀m∈N):m<n\circ(\exists n \in \mathbb{N})(\forall m \in \mathbb{N}): m<n
Application 3

Compléter le tableau suivant :

Proposition PP

La négation P‾\overline{P}
∘\circ (∀x∈R):x2+2x+1≥0(\forall x \in \mathbb{R}): x^{2}+2 x+1 \geq 0∙  \bullet~~
∘\circ (∀x∈N):x2−2x<0(\forall x \in \mathbb{N}): x^{2}-2 x<0∙  \bullet~~
∘\circ (∀x∈Q+):x∉Q\quad(\forall x \in \mathbb{Q}^{+}): \sqrt{x} \notin \mathbb{Q}∙  \bullet~~
∘\circ (∃x∈R):x∈Q(\exists x \in \mathbb{R}): x \in \mathbb{Q}∙  \bullet~~
∘\circ (∃x∈N):x(\exists x \in \mathbb{N}): x est pair∙  \bullet~~
∘\circ (∃x∈N)(∀y∈N):x<y(\exists x \in \mathbb{N})(\forall y \in \mathbb{N}): x<y∙  \bullet~~
∘  (∀m∈N)(∃n∈N):m=2n\circ~~(\forall m \in \mathbb{N}) (\exists n \in \mathbb{N}) : m = 2n∙  \bullet~~
∘  \circ~~ Tout triangle est rectangle∙  \bullet~~
∘  (∀x∈Q)(∀y∈Z):x×y∈Z\circ~~(\forall x \in \mathbb{Q})(\forall y \in \mathbb{Z}): x \times y \in \mathbb{Z}∙  \bullet~~

II.2 La disjonction

Définition II.2

La disjonction de deux propositions PP et QQ est la proposition qui est vraie si au moins l'une des deux propositions est vraie. Elle est notée « PP ou QQ », ou P∨QP \vee Q.

Tableau de vérité de PP ou QQ

PPQ\boldsymbol{Q}PP ou Q\boldsymbol{Q}
V\boldsymbol{V}V\boldsymbol{V}V\boldsymbol{V}
V\boldsymbol{V}F\boldsymbol{F}V\boldsymbol{V}
F\boldsymbol{F}V\boldsymbol{V}V\boldsymbol{V}
F\boldsymbol{F}F\boldsymbol{F}F\boldsymbol{F}
Exemple 7
  • ∘\circ

    La proposition : (−5≥2)(-5 \geq 2) ou (5≥2)(5 \geq 2) est vraie.

  • ∘\circ

    La proposition : (3+2=6)(3+2=6) ou (−3≥1)(-3 \geq 1) est fausse.

  • ∘\circ

    La proposition : (−5∈R)(-5 \in \mathbb{R}) ou ( 3 divise 12)) est vraie.

  • ∘\circ

    La proposition : [(∃x∈R):x2=−1]\bigl[(\exists x \in \mathbb{R}): x^{2}=-1\bigr] ou [2∈Q]\bigl[\sqrt{2} \in \mathbb{Q}\bigr] est fausse.

II.3 La conjonction

Définition II.3

La conjonction de deux propositions PP et QQ est la proposition qui est vraie uniquement si les deux propositions PP et QQ sont vraies en même temps. Elle est notée « PP et QQ », ou P∧QP \wedge Q.

Tableau de vérité de PP et QQ

PP

Q\boldsymbol{Q}PP et Q\boldsymbol{Q}
V\boldsymbol{V}V\boldsymbol{V}V\boldsymbol{V}
V\boldsymbol{V}F\boldsymbol{F}F\boldsymbol{F}
F\boldsymbol{F}V\boldsymbol{V}F\boldsymbol{F}
F\boldsymbol{F}F\boldsymbol{F}F\boldsymbol{F}
Exemple 8
  • ∘\circ

    La proposition : (−5≥2)(-5 \geq 2) et (5≥2)(5 \geq 2) est fausse.

  • ∘\circ

    La proposition : (3+2=6)(3+2=6) et (−3≥1)(-3 \geq 1) est fausse.

  • ∘\circ

    La proposition : (−5∈R)(-5 \in \mathbb{R}) et ( 3 divise 12 ) est vraie.

  • ∘\circ

    La proposition : [(∃x∈R):x2=−1]\bigl[(\exists x \in \mathbb{R}): x^{2}=-1\bigr] et [2∈Q]\bigl[\sqrt{2} \in \mathbb{Q}\bigr] est fausse.

Application 4

Déterminer la valeur de vérité de chacune des propositions suivantes :

  • ∙\bullet

    P1P_{1} : (3 est impair) et (3=5)(3=5).

  • ∙\bullet

    P2:(4×8=20)P_{2}:(4 \times 8=20) ou (10 est pair )).

  • ∙\bullet

    P3:(9−3=6)P_{3}:(9-3=6) et (−1∈Z)(-1 \in \mathbb{Z}).

  • ∙\bullet

    P4:(−4∈N)P_{4}:(-4 \in \mathbb{N}) ou (∀x∈R:x2+1>0)\left(\forall x \in \mathbb{R}: x^{2}+1>0\right).

Remarque — Lois de Morgan

Soient PP et Q\mathrm{Q} deux propositions.

  • ✓\checkmark

    La négation de (PP et Q)\mathrm{Q}) est (P‾\overline{P} ou Q‾)\overline{\mathrm{Q}}).

  • ✓\checkmark

    La négation de (P ou Q) est (P‾\overline{P} et Q‾)\overline{\mathrm{Q}}).

Exemple 9
  • ∘\circ

    La négation de « (0≥2)(0 \geq 2) et (1+5=3)(1+5=3) » est : « (0<2)(0<2) ou (1+5≠3)(1+5 \neq 3) ».

  • ∘\circ

    La négation de « (5∈N)(5 \in \mathbb{N}) ou (∀x∈R:x2>0)\left(\forall x \in \mathbb{R}: x^{2}>0\right)» est : « (5∉N)(5 \notin \mathbb{N}) et (∃x∈R:x2≤0)\left(\exists x \in \mathbb{R}: x^{2} \leq 0\right)».

Application 5

Nier les deux propositions suivantes :

  • ∙\bullet

    P:P: " (∀x∈R)(∃y∈R):x≤y(\forall x \in \mathbb{R})(\exists y \in \mathbb{R}): x \leq y ou x≥y"x \geq y ".

  • ∙\bullet

    Q:Q: « (∃x∈R)(∀y∈R):(y2=x et x>0)(\exists x \in \mathbb{R})(\forall y \in \mathbb{R}): (y^{2}=x \text{ et } x>0) ».

II.4 L'implication

Activité 3

Soient PP et QQ deux propositions. Compléter le tableau de vérité de P‾\overline{P} ou QQ, puis préciser le seul cas où cette proposition est fausse.

PPQQP‾\overline{P}P‾\overline{P} ou QQ
VVVV
VVFF
FFVV
FFFF
Définition II.4

Soient PP et QQ deux propositions. L'implication de PP vers QQ est la proposition « non PP ou QQ », notée P⇒QP \Rightarrow Q. Elle se lit « PP implique QQ » ou « si PP, alors QQ ». Elle est fausse lorsque PP est vraie et QQ est fausse, et elle est vraie dans tous les autres cas.

Tableau de vérité de P⇒QP \Rightarrow Q

PPQ\boldsymbol{Q}P⇒QP \Rightarrow Q
V\boldsymbol{V}V\boldsymbol{V}V\boldsymbol{V}
V\boldsymbol{V}F\boldsymbol{F}F\boldsymbol{F}
F\boldsymbol{F}V\boldsymbol{V}V\boldsymbol{V}
F\boldsymbol{F}F\boldsymbol{F}V\boldsymbol{V}
Exemple 10
  • ∘\circ

    La proposition 2>1⇒2+3=−12>1 \Rightarrow 2+3=-1 est fausse.

  • ∘\circ

    La proposition 3×2=9⇒5−1=203 \times 2=9 \Rightarrow 5-1=20 est vraie.

  • ∘\circ

    La proposition (32=9)⇒4−1=3\left(3^{2}=9\right) \Rightarrow 4-1=3 est vraie.

  • ∘\circ

    La proposition 2<0⇒2+3=52<0 \Rightarrow 2+3=5 est vraie.

Remarque
  • ✓\checkmark

    P⇒QP \Rightarrow \mathrm{Q} signifie si PP est vraie, alors Q\mathrm{Q} est vraie.

  • ✓\checkmark

    L'implication Q⇒PQ \Rightarrow P est appelée l'implication réciproque de l'implication P⇒QP \Rightarrow Q.

  • ✓\checkmark

    L'implication Q‾⇒P‾\overline{Q} \Rightarrow \overline{P} est appelée la contraposée de l'implication P⇒QP \Rightarrow Q.

  • ✓\checkmark

    Une implication et sa contraposée ont la même valeur de vérité : (P⇒Q)⇔(Q‾⇒P‾). (P \Rightarrow Q) \Leftrightarrow (\overline{Q} \Rightarrow \overline{P}).

Exemple 11
  • ∘\circ

    La proposition « (∀x∈R):x=2⇒x2=4(\forall x\in\mathbb{R}) : x=2 \Rightarrow x^{2}=4 » signifie : « pour tout réel xx, si x=2x=2, alors x2=4x^{2}=4 ». Elle est vraie.

  • ∘\circ

    La proposition « (∀x∈R):x2=4⇒x=2(\forall x\in\mathbb{R}) : x^{2}=4 \Rightarrow x=2 » est la réciproque de la proposition précédente. Elle est fausse, car x=−2x=-2 constitue un contre-exemple.

Application 6

On considère les propositions suivantes : P:« 12 est divisible par 3 »etQ:« (1+3)2=4 ». P : \text{« 12 est divisible par 3 »} \qquad\text{et}\qquad Q : \text{« $(1+\sqrt{3})^{2}=4$ »}.

  1. Déterminer les valeurs de vérité de PP et de QQ.

  2. Déterminer les valeurs de vérité des implications P⇒QP\Rightarrow Q et Q⇒PQ\Rightarrow P.

II.5 L'équivalence

Définition II.5

L'équivalence de deux propositions PP et QQ est la proposition (P⇒QP \Rightarrow Q et Q⇒PQ \Rightarrow P), notée P⇔QP \Leftrightarrow Q. Elle se lit « PP est équivalente à QQ » ou « PP si et seulement si QQ ». L'équivalence P⇔QP \Leftrightarrow Q est vraie si et seulement si PP et QQ ont la même valeur de vérité.

Tableau de vérité de P⇔QP \Leftrightarrow Q

PPQ\boldsymbol{Q}P⇔QP \Leftrightarrow Q
V\boldsymbol{V}V\boldsymbol{V}V\boldsymbol{V}
V\boldsymbol{V}F\boldsymbol{F}F\boldsymbol{F}
F\boldsymbol{F}V\boldsymbol{V}F\boldsymbol{F}
F\boldsymbol{F}F\boldsymbol{F}V\boldsymbol{V}
Exemple 12

Soient aa et bb deux nombres réels

Si ab=0a b=0, alors a=0a=0 ou b=0b=0.

Inversement, si a=0a=0 ou b=0b=0, alors ab=0a b=0.

Donc on a l'équivalence suivante : ab=0⇔(a=0a b=0 \Leftrightarrow (a=0 ou b=0)b=0).

Application 7

Déterminer la valeur de vérité de chacune des propositions suivantes :

  • ∘\circ

    P1:3P_{1}: 3 est impair ⇔3=5\Leftrightarrow 3=5.

  • ∘\circ

    P2:4×8=20⇔10P_{2}: 4 \times 8=20 \Leftrightarrow 10 est pair.

  • ∘\circ

    P3:−1∈Z⇔9−3=6P_{3}:-1 \in \mathbb{Z} \Leftrightarrow 9-3=6.

  • ∘\circ

    P4:−4∈N⇔[(∀x∈R):x2+1>0]P_{4}:-4 \in \mathbb{N} \Leftrightarrow\bigl[(\forall x \in \mathbb{R}): x^{2}+1>0\bigr].

  • ∘\circ

    P5:2>3⇔5=6P_{5}: 2>3 \Leftrightarrow 5=6.

Partie terminée ? Testez-vous sur cette partie :

III. Lois logiques

Définition III.1

Une loi logique est une proposition qui est vraie quelle que soit la valeur de vérité des propositions qui la constituent.

Exemple 13

PP et Q\mathrm{Q} sont deux propositions. Montrons que (P⇔Q)‾⇔(P‾⇔Q)\overline{(P \Leftrightarrow Q)} \Leftrightarrow(\overline{P} \Leftrightarrow Q) est une loi logique.

PPQ\boldsymbol{Q}P⇔QP \Leftrightarrow Q(P⇔Q)‾\overline{(P \Leftrightarrow Q)}P‾⇔Q\overline{P} \Leftrightarrow Q(P⇔Q)‾⇔(P‾⇔Q)\overline{(P \Leftrightarrow Q)} \Leftrightarrow(\overline{P} \Leftrightarrow Q)
V\boldsymbol{V}V\boldsymbol{V}V\boldsymbol{V}F\boldsymbol{F}F\boldsymbol{F}V\boldsymbol{V}
V\boldsymbol{V}F\boldsymbol{F}F\boldsymbol{F}V\boldsymbol{V}V\boldsymbol{V}V\boldsymbol{V}
F\boldsymbol{F}V\boldsymbol{V}F\boldsymbol{F}V\boldsymbol{V}V\boldsymbol{V}V\boldsymbol{V}
F\boldsymbol{F}F\boldsymbol{F}V\boldsymbol{V}F\boldsymbol{F}F\boldsymbol{F}V\boldsymbol{V}

La proposition (P⇔Q)‾⇔(P‾⇔Q)\overline{(P \Leftrightarrow Q)} \Leftrightarrow(\overline{P} \Leftrightarrow Q) est toujours vraie quelles que soient les valeurs de vérité de PP et Q\mathrm{Q}. Donc c'est une loi logique.

Application 8

Montrer que les propositions suivantes sont des lois logiques :

  • ∙\bullet

    P⇔P‾‾P \Leftrightarrow\overline{\overline{P}}

  • ∙\bullet

    (P⇒Q)⇔(Q‾⇒P‾)(P \Rightarrow Q) \Leftrightarrow(\overline{Q} \Rightarrow\overline{P})

  • ∙\bullet

    (P⇒Q)‾⇔(P et Q‾)\overline{(P \Rightarrow Q)} \Leftrightarrow (P \text{ et } \overline{Q})

Partie terminée ? Testez-vous sur cette partie :

IV. Raisonnements mathématiques

IV.1 Raisonnement direct (ou déductif)

Propriété IV.1

Pour démontrer directement une implication P⇒QP \Rightarrow Q, on suppose que PP est vraie, puis on utilise les définitions et les propriétés connues pour établir que QQ est vraie.

Exemple 14

Montrons que la proposition « (∀x∈R):∣x∣≤3⇒∣2x−4∣≤10(\forall x\in\mathbb{R}) : |x| \leq 3 \Rightarrow |2x-4| \leq 10 » est vraie.

Soit x∈Rx\in\mathbb{R} tel que ∣x∣≤3|x|\leq 3. On a : ∣x∣≤3⇒−3≤x≤3⇒−6≤2x≤6⇒−10≤2x−4≤2⇒−10≤2x−4≤10⇒∣2x−4∣≤10. \begin{aligned} |x| \leq 3 & \Rightarrow -3 \leq x \leq 3 \\ & \Rightarrow -6 \leq 2x \leq 6 \\ & \Rightarrow -10 \leq 2x-4 \leq 2 \\ & \Rightarrow -10 \leq 2x-4 \leq 10 \\ & \Rightarrow |2x-4| \leq 10. \end{aligned}

Donc (∀x∈R):∣x∣≤3⇒∣2x−4∣≤10(\forall x\in\mathbb{R}) : |x| \leq 3 \Rightarrow |2x-4| \leq 10.

Application 9
  1. Soit n∈Nn \in \mathbb{N}. Montrer que nn pair ⇒n2\Rightarrow n^{2} pair.

  2. Montrer que (∀x∈R+):(11+x=1−x⇒x=0)\left(\forall x \in \mathbb{R}^{+}\right): \left(\dfrac{1}{1+\sqrt{x}}=1-\sqrt{x} \Rightarrow x=0\right).

Exercice 2
  1. Soient x,y∈Rx,y\in\mathbb{R}. Montrer que 1+xy=x+y⇒x=11+xy=x+y \Rightarrow x=1 ou y=1y=1.

  2. Montrer que (∀x∈R):3≤x≤5⇒14≤1x−1≤12(\forall x \in \mathbb{R}): 3 \leq x \leq 5 \Rightarrow \dfrac{1}{4} \leq \dfrac{1}{x-1} \leq \dfrac{1}{2}.

    • a.

      Montrer que (∀a∈R)(∀b∈R):a2+b2=0⇒a=b=0(\forall a \in \mathbb{R})(\forall b \in \mathbb{R}): a^{2}+b^{2}=0 \Rightarrow a=b=0.

    • b.

      En déduire (∀x∈R+)(∀y∈R+):x+y+2=2x+2y⇒x=y=1\left(\forall x \in \mathbb{R}^{+}\right) \left(\forall y \in \mathbb{R}^{+}\right): x+y+2=2\sqrt{x}+2\sqrt{y} \Rightarrow x=y=1.

IV.2 Raisonnement par contre-exemple

Activité 4

On considère la proposition (∀x∈R):x2≥x. (\forall x\in\mathbb{R}):\quad x^2\geq x.

  1. Cette proposition est-elle vraie ?

  2. Tester la proposition pour x=12x=\dfrac12.

  3. Que suffit-il de trouver pour montrer qu'une proposition universelle est fausse ?

Propriété IV.2

Pour prouver que la proposition " (∀x∈E):P(x)(\forall x \in E): P(x) " est fausse, il suffit de prouver que la proposition (∃x∈E):P(x)‾(\exists x \in E): \overline{P(x)} est vraie.

Exemple 15

Montrons que « (∀x∈R):2x−1=0(\forall x \in \mathbb{R}): 2x-1=0 » est fausse.

Il suffit de montrer que " (∃x∈R):2x−1≠0(\exists x \in \mathbb{R}): 2 x-1 \neq 0 " est vraie.

On a pour x=0:2×0−1≠0x=0: 2 \times 0-1 \neq 0

Alors "( ∃x∈R):2x−1≠0\exists x \in \mathbb{R}): 2 x-1 \neq 0 " est vraie.

Par suite " (∀x∈R):2x−1=0(\forall x \in \mathbb{R}): 2 x-1=0 " est fausse.

Application 10

Montrer que la proposition suivante est fausse : (∀x∈R):x+1=2. (\forall x\in\mathbb R):\quad x+1=2.

Exercice 3

Montrer par contre-exemple que les propositions suivantes sont fausses :

  1. (∀x∈R∗):x+1x≥2(\forall x\in\mathbb R^*):\quad x+\dfrac1x\geq2.

  2. (∀n∈N):n∈N(\forall n\in\mathbb N):\quad \sqrt n\in\mathbb N.

  3. (∀n∈N):n2+n+1(\forall n\in\mathbb N):\quad n^2+n+1 est un nombre premier.

IV.3 Raisonnement par la contraposée

Propriété IV.3

Pour démontrer l'implication P⇒QP \Rightarrow Q, on peut essayer de démontrer la contraposée Q‾⇒P‾\overline{Q} \Rightarrow \overline{P}, qui est parfois plus simple.

Exemple 16

Montrons que (∀x∈R+)(∀y∈R+):x≠y⇒x3+4x≠y3+4y\left(\forall x \in \mathbb{R}^{+}\right)\left(\forall y \in \mathbb{R}^{+}\right): x \neq y \Rightarrow x^{3}+4 x \neq y^{3}+4 y.

Essayons de montrer (∀x∈R+)(∀y∈R+):x3+4x=y3+4y⇒x=y\left(\forall x \in \mathbb{R}^{+}\right)\left(\forall y \in \mathbb{R}^{+}\right): x^{3}+4 x=y^{3}+4 y \Rightarrow x=y.

On a x3+4x=y3+4y⇒x3−y3+4x−4y=0x^{3}+4 x=y^{3}+4 y \Rightarrow x^{3}-y^{3}+4 x-4 y=0

⇒(x−y)(x2+xy+y2)+4(x−y)=0⇒(x−y)(x2+xy+y2+4)=0⇒x−y=0 car x2+xy+y2+4≠0 du fait que x∈R+et y∈R+⇒x=y \begin{aligned} & \Rightarrow(x-y)\left(x^{2}+x y+y^{2}\right)+4(x-y)=0 \\ & \Rightarrow(x-y)\left(x^{2}+x y+y^{2}+4\right)=0 \\ & \Rightarrow x-y=0 \text { car } x^{2}+x y+y^{2}+4 \neq 0 \text { du fait que } x \in \mathbb{R}^{+} \text {et } y \in \mathbb{R}^{+} \\ & \Rightarrow x=y \end{aligned}

Application 11

Montrer que, pour tous a,b∈Ra,b\in\mathbb R, a+b>1⇒a>12 ou b>12. a+b>1\Rightarrow a>\dfrac12\ \text{ou}\ b>\dfrac12.

Exercice 4

En utilisant un raisonnement par contraposée, montrer que :

  1. pour tout x∈R∖{−5}x\in\mathbb R\setminus\{-5\}, x≠−8⇒x+2x+5≠2; x\neq-8\Rightarrow\dfrac{x+2}{x+5}\neq2;

  2. pour tous x,y∈Rx,y\in\mathbb R, x≠y⇒(x+1)(y−1)≠(x−1)(y+1); x\neq y\Rightarrow(x+1)(y-1)\neq(x-1)(y+1);

  3. pour tous x,y>1x,y>1, x≠y⇒x1+x2≠y1+y2. x\neq y\Rightarrow\dfrac{x}{1+x^2}\neq\dfrac{y}{1+y^2}.

IV.4 Raisonnement par les équivalences successives

Propriété IV.4

Soient PP, R et QQ trois propositions.

Le raisonnement par les équivalences successives se base sur la loi logique suivante :

[(P⇔R) et (R⇔Q)]⇒(P⇔Q) [(P \Leftrightarrow R) \text{ et } (R \Leftrightarrow Q)] \Rightarrow(P \Leftrightarrow Q)

Exemple 17

Montrons que (∀a∈R)(∀b∈R):a2+b2=2ab⇔a=b(\forall a \in \mathbb{R})(\forall b \in \mathbb{R}): a^{2}+b^{2}=2 a b \Leftrightarrow a=b

Soient a,b∈Ra,b\in\mathbb{R}. On a : a2+b2=2ab⇔a2−2ab+b2=0a^{2}+b^{2}=2ab \Leftrightarrow a^{2}-2ab+b^{2}=0

⇔(a−b)2=0⇔a−b=0⇔a=b. \begin{aligned} & \Leftrightarrow(a-b)^{2}=0 \\ & \Leftrightarrow a-b=0 \\ & \Leftrightarrow a=b . \end{aligned}

Application 12

Montrer que, pour tous x,y∈R∖{−1}x,y\in\mathbb R\setminus\{-1\}, x1+x=y1+y⇔x=y. \dfrac{x}{1+x}=\dfrac{y}{1+y}\Leftrightarrow x=y.

Exercice 5
  1. Soit xx un réel. Montrer que :21+x2=1⇔x=3: \dfrac{2}{\sqrt{1+x^{2}}}=1 \Leftrightarrow x=\sqrt{3} ou x=−3x=-\sqrt{3}.

  2. Montrer que, pour tout x∈R∖{−1}x\in\mathbb{R}\setminus\{-1\}, ∣x−1∣<12⇔25<1x+1<23|x-1|<\dfrac{1}{2} \Leftrightarrow \dfrac{2}{5}<\dfrac{1}{x+1}<\dfrac{2}{3}.

  3. Soient a∈[1;+∞[a \in[1 ;+\infty[ et b∈[4;+∞[b \in[4 ;+\infty[. Montrer que

    a−1+2b−4=a+b2⇔a=2 et b=8. \sqrt{a-1}+2 \sqrt{b-4}=\dfrac{a+b}{2} \Leftrightarrow a=2 \text { et } b=8.

IV.5 Raisonnement par disjonction des cas

Propriété IV.5

Soient PP, RR et QQ trois propositions. Ce type de raisonnement consiste à appliquer la loi logique suivante : [(P ou R)⇒Q]⇔[(P⇒Q) et (R⇒Q)]. [(P \text{ ou } R) \Rightarrow Q] \Leftrightarrow [(P \Rightarrow Q) \text{ et } (R \Rightarrow Q)].

Pratiquement : pour montrer que la proposition (∀x∈E):P(x)(\forall x \in E):P(x) est vraie, on partage EE en deux parties AA et E∖AE\setminus A. On montre que P(x)P(x) est vraie pour x∈Ax\in A, puis qu'elle est vraie pour x∈E∖Ax\in E\setminus A.

Remarque : le raisonnement par disjonction des cas se généralise à plus de deux cas.

Exemple 18

Montrons que, pour tout n∈Nn\in\mathbb N, le nombre n(n+1)n(n+1) est pair.

Soit n∈Nn\in\mathbb{N}. Distinguons deux cas :

  • -

    Si nn est pair, alors n=2kn=2k avec k∈Nk\in\mathbb N. Ainsi n(n+1)=2k(n+1)n(n+1)=2k(n+1) est pair.

  • -

    Si nn est impair, alors n=2k+1n=2k+1 avec k∈Nk\in\mathbb N. Donc n+1=2(k+1)n+1=2(k+1) et n(n+1)=2n(k+1)n(n+1)=2n(k+1) est pair.

Dans tous les cas, n(n+1)n(n+1) est pair.

Application 13

Montrer que, pour tout n∈Nn\in\mathbb N, les entiers nn et n2n^2 ont la même parité.

Exercice 6

En utilisant une disjonction des cas :

  1. montrer que (∀x∈R): 1+x2+x>0(\forall x\in\mathbb R):\ \sqrt{1+x^2}+x>0 ;

  2. montrer que (∀x∈R): ∣x−1∣≤x2−x+1(\forall x\in\mathbb R):\ |x-1|\leq x^2-x+1 ;

  3. montrer que, pour tout n∈Nn\in\mathbb N, le nombre n(n+1)(n+2)n(n+1)(n+2) est divisible par 33.

IV.6 Raisonnement par l'absurde

Propriété IV.6

Soient PP et Q\mathrm{Q} deux propositions.

Le raisonnement par absurde est basé sur la loi logique [P‾⇒(Q et Q‾)]⇒P. [\overline{P} \Rightarrow (Q \text{ et } \overline{Q})] \Rightarrow P.

Le principe

  • ∙\bullet

    Supposition : On suppose que l'affirmation de départ est fausse (on prend sa négation).

  • ∙\bullet

    Développement : On suit les règles de la logique pour en tirer des conséquences.

  • ∙\bullet

    Contradiction : On arrive à un résultat impossible ou absurde (comme 0=10=1).

  • ∙\bullet

    Conclusion : On en déduit que l'hypothèse de départ était fausse, et que la proposition initiale est donc vraie.

Remarque — Cas d'une implication

Pour démontrer par l'absurde une implication P⇒QP\Rightarrow Q, on suppose simultanément que PP est vraie et que QQ est fausse, c'est-à-dire que PP et Q‾\overline{Q} sont vraies, puis on cherche une contradiction. En effet, (P⇒Q)‾⇔(P et Q‾). \overline{(P\Rightarrow Q)}\Leftrightarrow (P\text{ et }\overline{Q}).

Exemple 19

Soit n∈Nn\in\mathbb N. Montrons, en raisonnant par l'absurde, que n+3n+5≠1. \dfrac{n+3}{n+5}\neq1.

Supposons que n+3n+5=1\dfrac{n+3}{n+5}=1. Comme n+5>0n+5>0, on obtient n+3=n+5n+3=n+5, donc 3=53=5, ce qui est impossible. Par conséquent, n+3n+5≠1\dfrac{n+3}{n+5}\neq1.

Application 14

Montrer, en raisonnant par l'absurde, que la proposition suivante est vraie : (∀x∈R):x2+1≠0. (\forall x\in\mathbb R):\quad x^2+1\neq0.

Exercice 7

En raisonnant par l'absurde, montrer que :

  1. si xx, yy et zz sont des éléments de R+∗\mathbb{R}_{+}^{*} tels que x+y+z<1x+1y+1zetxyz>1, x+y+z<\dfrac{1}{x}+\dfrac{1}{y}+\dfrac{1}{z} \quad\text{et}\quad xyz>1, alors x≠1x\neq1, y≠1y\neq1 et z≠1z\neq1 ;

  2. (∀x∈R):x≠0⇒1+x2≠1+x22(\forall x\in\mathbb R):\quad x\neq0\Rightarrow\sqrt{1+x^2}\neq1+\dfrac{x^2}{2} ;

  3. le système suivant n'admet aucune solution réelle : {2x−3z>3,3y−2x≥3,y−z≤2. \begin{cases} 2x-3z>3,\\ 3y-2x\geq3,\\ y-z\leq2. \end{cases}

IV.7 Raisonnement par récurrence

Propriété IV.7

Le principe de récurrence permet de montrer qu'une fonction propositionnelle P(n)P(n) est vraie pour tout entier naturel n≥n0n \geq n_{0}, avec n0∈Nn_{0} \in \mathbb{N}.

La démonstration par récurrence se déroule en trois étapes :

  • ∙\bullet

    Initialisation : On prouve que P(n)P(n) est vraie pour n=n0n=n_{0}.

  • ∙\bullet

    Hérédité : On prend n≥n0n \geq n_{0} donné, on suppose que P(n)P(n) est vraie, et on démontre que P(n+1)P(n+1) est vraie.

  • ∙\bullet

    Conclusion : On conclut que, pour tout n≥n0,P(n)n \geq n_{0}, P(n) est vraie.

Exemple 20

Montrons que 33 divise 4n−14^{n}-1 pour tout n∈Nn \in \mathbb{N}.

Initialisation : Pour n=0n=0, 40−1=04^{0}-1=0 et 33 divise 00. Donc la propriété est vraie pour n=0n=0.

Hérédité : Soit n∈Nn \in \mathbb{N}. Supposons que 33 divise 4n−14^{n}-1.

Montrons que 3 divise 4n+1−14^{n+1}-1 :

4n+1−1=4×4n−1=3×4n+4n−14^{n+1}-1=4 \times 4^{n}-1=3 \times 4^{n}+4^{n}-1.

D'après l'hypothèse de la récurrence, il existe un entier naturel kk tel que 4n−1=3k4^{n}-1=3 k.

Donc 4n+1−1=3×4n+3k=3(4n+k)=3k′4^{n+1}-1=3 \times 4^{n}+3 k=3\left(4^{n}+k\right)=3 k^{\prime}, avec k′∈Nk^{\prime} \in \mathbb{N}.

Ce qui entraine que 3 divise 4n+1−14^{n+1}-1.

Conclusion : D'après le principe de récurrence, on conclut que 33 divise 4n−14^{n}-1 pour tout n∈Nn \in \mathbb{N}.

Application 15

Montrer par récurrence que, pour tout n∈N∗n\in\mathbb N^*, 1+2+3+⋯+n=n(n+1)2. 1+2+3+\cdots+n=\dfrac{n(n+1)}2.

Exercice 8

Montrer par récurrence que :

  1. (∀n∈N):7n−1(\forall n\in\mathbb N):\quad 7^n-1 est divisible par 66 ;

  2. (∀n∈N):n3+2n(\forall n\in\mathbb N):\quad n^3+2n est divisible par 33 ;

  3. (∀n∈N):1+4+42+⋯+4n=4n+1−13(\forall n\in\mathbb N):\quad 1+4+4^2+\cdots+4^n=\dfrac{4^{n+1}-1}{3}.

Partie terminée ? Testez-vous sur cette partie :

Entraînement ciblé

  • Reconnaître et quantifier une proposition

    5 questions · 6 questions disponibles

  • Nier et combiner des propositions

    5 questions · 7 questions disponibles

  • Vérifier un raisonnement et trouver un contre-exemple

    5 questions · 6 questions disponibles

  • Choisir une méthode de démonstration

    5 questions · 6 questions disponibles

Fiches mémo

0 / 12 cartes validées12 à revoir

Carte 1 / 12 · Recto

Quiz : testez-vous

Mon parcours maths

0 / 30
  1. Facile10 questions
  2. Moyen10 questions
  3. Difficile10 questions

Facile · Question 1 / 10

Quelle phrase est une proposition mathématique ?
Professeur en attente