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¬¬pp\neg\neg p \equiv p
Negación de \top y \bot¬\neg \top \equiv \bot, ¬\quad \neg \bot \equiv \top
Reflexividad de \Leftrightarrowppp \Leftrightarrow p \equiv \top
Identidad de \Leftrightarrowpp\top \Leftrightarrow p \equiv p
Distributividad de ¬\neg sobre \Leftrightarrow¬(pq)¬pq\neg(p \Leftrightarrow q) \equiv \neg p \Leftrightarrow q

Disyunción

NombreTeorema
Conmutatividadpqqpp \lor q \equiv q \lor p
Asociatividad(pq)rp(qr)(p \lor q) \lor r \equiv p \lor (q \lor r)
Idempotenciapppp \lor p \equiv p
Identidadppp \lor \bot \equiv p
Dominaciónpp \lor \top \equiv \top
Tercero excluidop¬pp \lor \neg p \equiv \top

Conjunción

NombreTeorema
Regla doradapqpqpqp \land q \equiv p \Leftrightarrow q \Leftrightarrow p \lor q
Conmutatividadpqqpp \land q \equiv q \land p
Asociatividad(pq)rp(qr)(p \land q) \land r \equiv p \land (q \land r)
Idempotenciapppp \land p \equiv p
Identidadppp \land \top \equiv p
Dominaciónpp \land \bot \equiv \bot
Contradicciónp¬pp \land \neg p \equiv \bot

Distributividad y absorción

NombreTeorema
\land sobre \lorp(qr)(pq)(pr)p \land (q \lor r) \equiv (p \land q) \lor (p \land r)
\lor sobre \landp(qr)(pq)(pr)p \lor (q \land r) \equiv (p \lor q) \land (p \lor r)
Absorciónp(pq)pp \land (p \lor q) \equiv p, p(pq)p\quad p \lor (p \land q) \equiv p

Leyes de De Morgan

NombreTeorema
De Morgan (\land)¬(pq)¬p¬q\neg(p \land q) \equiv \neg p \lor \neg q
De Morgan (\lor)¬(pq)¬p¬q\neg(p \lor q) \equiv \neg p \land \neg q

Implicación

NombreTeorema
Definiciónpq¬pqp \Rightarrow q \equiv \neg p \lor q
Contrarrecíprocopq¬q¬pp \Rightarrow q \equiv \neg q \Rightarrow \neg p
Shuntingpqrp(qr)p \land q \Rightarrow r \equiv p \Rightarrow (q \Rightarrow r)
Doble implicaciónpq(pq)(qp)p \Leftrightarrow q \equiv (p \Rightarrow q) \land (q \Rightarrow p)
Debilitamientopqpp \land q \Rightarrow p, ppq\quad p \Rightarrow p \lor q
Modus ponensp(pq)qp \land (p \Rightarrow q) \Rightarrow q
Análisis de casos(pr)(qr)(pq)r(p \Rightarrow r) \land (q \Rightarrow r) \equiv (p \lor q) \Rightarrow r
Casos exhaustivos(pr)(¬pr)r(p \Rightarrow r) \land (\neg p \Rightarrow r) \equiv r

Cuantificadores

NombreTeorema
Distributividad de \forall sobre \landx:(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 \lorx:(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íox: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)xy:Pyx:P\forall x\, \forall y : P \equiv \forall y\, \forall x : P; análogo para \exists
Cuantificadores mixtosxy:Pyx:P\exists x\, \forall y : P \Rightarrow \forall y\, \exists x : P (el recíproco no vale)