Lógica

Guía de Lógica

Referencia rápida de los principales teoremas y equivalencias de la lógica proposicional y de predicados.

Equivalencia y negación

NombreTeorema
Doble negación¬¬p≡p\neg\neg p \equiv p
Negación de ⊤\top y ⊥\bot¬⊤≡⊥\neg \top \equiv \bot, ¬⊥≡⊤\quad \neg \bot \equiv \top
Reflexividad de ⇔\Leftrightarrowp⇔p≡⊤p \Leftrightarrow p \equiv \top
Identidad de ⇔\Leftrightarrow⊤⇔p≡p\top \Leftrightarrow p \equiv p
Distributividad de ¬\neg sobre ⇔\Leftrightarrow¬(p⇔q)≡¬p⇔q\neg(p \Leftrightarrow q) \equiv \neg p \Leftrightarrow q

Disyunción

NombreTeorema
Conmutatividadp∨q≡q∨pp \lor q \equiv q \lor p
Asociatividad(p∨q)∨r≡p∨(q∨r)(p \lor q) \lor r \equiv p \lor (q \lor r)
Idempotenciap∨p≡pp \lor p \equiv p
Identidadp∨⊥≡pp \lor \bot \equiv p
Dominaciónp∨⊤≡⊤p \lor \top \equiv \top
Tercero excluidop∨¬p≡⊤p \lor \neg p \equiv \top

Conjunción

NombreTeorema
Regla doradap∧q≡p⇔q⇔p∨qp \land q \equiv p \Leftrightarrow q \Leftrightarrow p \lor q
Conmutatividadp∧q≡q∧pp \land q \equiv q \land p
Asociatividad(p∧q)∧r≡p∧(q∧r)(p \land q) \land r \equiv p \land (q \land r)
Idempotenciap∧p≡pp \land p \equiv p
Identidadp∧⊤≡pp \land \top \equiv p
Dominaciónp∧⊥≡⊥p \land \bot \equiv \bot
Contradicciónp∧¬p≡⊥p \land \neg p \equiv \bot

Distributividad y absorción

NombreTeorema
∧\land sobre ∨\lorp∧(q∨r)≡(p∧q)∨(p∧r)p \land (q \lor r) \equiv (p \land q) \lor (p \land r)
∨\lor sobre ∧\landp∨(q∧r)≡(p∨q)∧(p∨r)p \lor (q \land r) \equiv (p \lor q) \land (p \lor r)
Absorciónp∧(p∨q)≡pp \land (p \lor q) \equiv p, p∨(p∧q)≡p\quad p \lor (p \land q) \equiv p

Leyes de De Morgan

NombreTeorema
De Morgan (∧\land)¬(p∧q)≡¬p∨¬q\neg(p \land q) \equiv \neg p \lor \neg q
De Morgan (∨\lor)¬(p∨q)≡¬p∧¬q\neg(p \lor q) \equiv \neg p \land \neg q

Implicación

NombreTeorema
Definiciónp⇒q≡¬p∨qp \Rightarrow q \equiv \neg p \lor q
Contrarrecíprocop⇒q≡¬q⇒¬pp \Rightarrow q \equiv \neg q \Rightarrow \neg p
Shuntingp∧q⇒r≡p⇒(q⇒r)p \land q \Rightarrow r \equiv p \Rightarrow (q \Rightarrow r)
Doble implicaciónp⇔q≡(p⇒q)∧(q⇒p)p \Leftrightarrow q \equiv (p \Rightarrow q) \land (q \Rightarrow p)
Debilitamientop∧q⇒pp \land q \Rightarrow p, p⇒p∨q\quad p \Rightarrow p \lor q
Modus ponensp∧(p⇒q)⇒qp \land (p \Rightarrow q) \Rightarrow q
Análisis de casos(p⇒r)∧(q⇒r)≡(p∨q)⇒r(p \Rightarrow r) \land (q \Rightarrow r) \equiv (p \lor q) \Rightarrow r
Casos exhaustivos(p⇒r)∧(¬p⇒r)≡r(p \Rightarrow r) \land (\neg p \Rightarrow r) \equiv r

Cuantificadores

NombreTeorema
Distributividad de ∀\forall sobre ∧\land∀x:(P(x)∧Q(x))≡(∀x:P(x))∧(∀x:Q(x))\forall x : (P(x) \land Q(x)) \equiv (\forall x : P(x)) \land (\forall x : Q(x))
Distributividad de ∃\exists sobre ∨\lor∃x:(P(x)∨Q(x))≡(∃x:P(x))∨(∃x:Q(x))\exists x : (P(x) \lor Q(x)) \equiv (\exists x : P(x)) \lor (\exists x : Q(x))
De Morgan (∀\forall)¬(∀x:P(x))≡∃x:¬P(x)\neg(\forall x : P(x)) \equiv \exists x : \neg P(x)
De Morgan (∃\exists)¬(∃x:P(x))≡∀x:¬P(x)\neg(\exists x : P(x)) \equiv \forall x : \neg P(x)
Dominio vacío∀x∈∅:P(x)≡⊤\forall x \in \emptyset : P(x) \equiv \top, ∃x∈∅:P(x)≡⊥\quad \exists x \in \emptyset : P(x) \equiv \bot
Intercambio (mismo tipo)∀x ∀y:P≡∀y ∀x:P\forall x\, \forall y : P \equiv \forall y\, \forall x : P; análogo para ∃\exists
Cuantificadores mixtos∃x ∀y:P⇒∀y ∃x:P\exists x\, \forall y : P \Rightarrow \forall y\, \exists x : P (el recíproco no vale)