TD 1 ALG

Table des matières

  1. TD1: Raisonnement et logiques

1. TD1: Raisonnement et logiques

1.1 Négation des propositions

La négation d'une proposition inverse sa valeur de vérité. Pour les implications et les équivalences, des règles spécifiques s'appliquent pour former leur négation 1.

  • Négation d'une implication (P⇒QP \Rightarrow Q): La négation est P∧¬QP \land \neg Q. Cela signifie que la proposition PP est vraie et que la proposition QQ est fausse.
  • Négation d'une conjonction (P∧QP \land Q): La négation est ¬P∨¬Q\neg P \lor \neg Q.
  • Négation d'une disjonction (P∨QP \lor Q): La négation est ¬P∧¬Q\neg P \land \neg Q.
  • Négation d'une équivalence (P⇔QP \Leftrightarrow Q): La négation est (P∧¬Q)∨(¬P∧Q)(P \land \neg Q) \lor (\neg P \land Q).
PropositionNégation
P⇒QP \Rightarrow QP∧¬QP \land \neg Q
P⇒((¬Q∧R)∨¬P)P \Rightarrow ((\neg Q \land R) \lor \neg P)P∧¬((¬Q∧R)∨¬P)P \land \neg ((\neg Q \land R) \lor \neg P)
(P⇔Q)∨(¬P∧R)(P \Leftrightarrow Q) \lor (\neg P \land R)¬((P⇔Q)∨(¬P∧R))\neg ((P \Leftrightarrow Q) \lor (\neg P \land R))
(P∨R)⇒Q(P \lor R) \Rightarrow Q(P∨R)∧¬Q(P \lor R) \land \neg Q
P∧(R⇒Q)P \land (R \Rightarrow Q)¬P∨(R∧¬Q)\neg P \lor (R \land \neg Q)
(¬P∧R)⇒¬Q(\neg P \land R) \Rightarrow \neg Q(¬P∧R)∧Q(\neg P \land R) \land Q

📝 La négation de la proposition "P⇒QP \Rightarrow Q" est "P∧¬QP \land \neg Q". Si la proposition "S'il pleut, alors le sol est mouillé" est fausse, cela signifie qu'il pleut et que le sol n'est pas mouillé 1.

1.2 Quantificateurs universels et existentiels

Les quantificateurs universels (∀\forall) et existentiels (∃\exists) sont fondamentaux pour exprimer des propriétés sur des ensembles d'éléments. La négation d'une proposition quantifiée implique de changer le quantificateur et de nier la proposition interne 1.

  • Quantificateur universel (∀\forall): Signifie "pour tout" ou "pour chaque".
  • Quantificateur existentiel (∃\exists): Signifie "il existe au moins un" ou "il y a au moins un".
  • Négation d'une proposition quantifiée:
  • ¬(∀x,P(x))\neg (\forall x, P(x)) est équivalent à ∃x,¬P(x)\exists x, \neg P(x).
  • ¬(∃x,P(x))\neg (\exists x, P(x)) est équivalent à ∀x,¬P(x)\forall x, \neg P(x).
PropositionNégation
∀x∈R,∃y∈R,2x+y>3\forall x \in \mathbb{R}, \exists y \in \mathbb{R}, 2x + y > 3∃x∈R,∀y∈R,2x+y≤3\exists x \in \mathbb{R}, \forall y \in \mathbb{R}, 2x + y \le 3
∀ϵ>0,∃α>0,∣x∣<α⇒∣x2∣<ϵ\forall \epsilon > 0, \exists \alpha > 0, \vert x\vert < \alpha \Rightarrow \vert x^2\vert < \epsilon∃ϵ>0,∀α>0,∣x∣<α∧∣x2∣≥ϵ\exists \epsilon > 0, \forall \alpha > 0, \vert x\vert < \alpha \land \vert x^2\vert \ge \epsilon
∀x∈R,(x=0∨x∈]2,4])\forall x \in \mathbb{R}, (x = 0 \lor x \in ]2, 4])∃x∈R,(x≠0∧x∉]2,4])\exists x \in \mathbb{R}, (x \ne 0 \land x \notin ]2, 4])
∃M∈R+,∀n∈N,∣Un∣≤M\exists M \in \mathbb{R}^+, \forall n \in \mathbb{N}, \vert U_n\vert \le M∀M∈R+,∃n∈N,∣Un∣>M\forall M \in \mathbb{R}^+, \exists n \in \mathbb{N}, \vert U_n\vert > M

📝 La proposition "A:(∃h∈R)(∀j∈R)h+j>0A: (\exists h \in \mathbb{R}) (\forall j \in \mathbb{R}) h + j > 0" est fausse car pour tout hh, on peut toujours trouver un jj suffisamment petit (par exemple j=−h−1j = -h-1) tel que h+j≤0h+j \le 0. Sa négation est "(∀h∈R)(∃j∈R)h+j≤0(\forall h \in \mathbb{R}) (\exists j \in \mathbb{R}) h + j \le 0" 1.

1.3 Démonstration d'implications

Pour démontrer une implication de la forme P⇒QP \Rightarrow Q, on suppose que PP est vraie et on montre que QQ doit nécessairement être vraie. Une méthode courante est la démonstration directe ou par contraposition 2.

  • Démonstration directe: Supposer PP vraie et déduire QQ.
  • Démonstration par contraposition: Montrer que ¬Q⇒¬P\neg Q \Rightarrow \neg P.

📝 Pour montrer que (∀ϵ∈R+,∣a∣≤ϵ)⇒a=0(\forall \epsilon \in \mathbb{R}^+, |a| \le \epsilon) \Rightarrow a = 0:

  1. Supposons que pour tout ϵ∈R+\epsilon \in \mathbb{R}^+, ∣a∣≤ϵ|a| \le \epsilon.
  2. Si a≠0a \ne 0, alors ∣a∣>0|a| > 0.
  3. On peut choisir ϵ=∣a∣/2\epsilon = |a|/2. Par hypothèse, ∣a∣≤∣a∣/2|a| \le |a|/2.
  4. Cela implique 1≤1/21 \le 1/2, ce qui est une contradiction.
  5. Donc, l'hypothèse a≠0a \ne 0 est fausse, et par conséquent a=0a = 0 2.

Voir aussi