Logic formulas
Propositional and predicate logic. 20 formulas for GATE DA Artificial Intelligence, each with when to use it. Each is explained in the topic notes.
IAE Academy: Propositional and predicate logic formulas (GATE DA)
All 20 Logic formulas
Implication elimination
The usual first step (after rewriting ) when converting to CNF or DNF.
Biconditional
True exactly when p and q have the same truth value.
Contrapositive
The converse and the inverse are NOT equivalent to (they are equivalent to each other).
De Morgan's laws
Double negation: .
Negating an implication and a biconditional
is the exclusive or : true exactly when and differ. The negation of an implication is a conjunction, never another implication.
Distributive laws
Each of and distributes over the other; used to reach CNF and DNF.
Exportation
Moves a conjunction in the premise into a chain of implications.
Implications with a compound part
Check any of these by rewriting both sides with . Note the second line: a conjunctive premise splits into an OR, not an AND.
Entailment as validity
means every assignment making true also makes true. With several premises: exactly when is a tautology.
Refutation test for entailment
The basis of proof by contradiction and of resolution refutation.
Normal forms from a truth table
A minterm is true exactly on its row; a maxterm is false exactly on its row. In the maxterm, a variable that is T in the row appears negated and one that is F appears plain (for the row the maxterm is ). A formula with no T rows has an empty DNF (a contradiction); one with no F rows has an empty CNF (a tautology).
Resolution rule
Applies to two clauses holding a complementary pair of literals. The resolvent is entailed by its two parents (soundness). Resolution refutation is also complete for propositional logic: if a clause set is unsatisfiable, the empty clause can be derived from it.
Negating quantifiers
Negation flips the quantifier and moves inside; apply De Morgan's laws to what remains.
Distribution of quantifiers
When both P and Q contain x free, only these two distribute as equivalences.
Moving a quantifier past Q (x not free in Q)
Valid when does not occur free in and the domain is non-empty.
Moving a quantifier out of an implication (x not free in Q)
Valid when does not occur free in and the domain is non-empty. A quantifier moved out of the conclusion stays the same; one moved out of the premise FLIPS ( becomes and vice versa), because the premise sits under a hidden negation: .
One-way implications
The converse of each is NOT valid.
More one-way entailments
The first needs the non-empty domain. None of the converses is valid: for example, with domain , true, false and false, is true but is false.
Quantifier order
Like quantifiers commute: and .
First-order resolution rule
Clauses must share no variable names (standardise apart); the empty clause again signals unsatisfiability of the clause set. Resolution together with factoring (unifying two literals inside one clause) is refutation-complete for first-order logic: an unsatisfiable clause set always yields the empty clause. If the set is satisfiable the search may never stop, since first-order entailment is only semi-decidable.
Where this was asked: 2024 (2), 2025 (1), 2026 (4). See the 7 previous-year questions on Logic. This shows what was asked, not what will be asked.