Axiomatic Approach In Propositional Logic
In Axiomatic approach we try to build new, more complex formulas that are true — called theorems, tautologies, or semantically valid formulas, from existing simple formulas that are assumed true by convention — called axioms.All formulas consist of: atoms, operations, and parentheses, and are built like algebraic expressions. Atom is a lowercase Latin letter and represent an abstract entity that is either true or false, but we don't know it at the moment. Operation is one of: implication → ("if-then", "follows"), conjunction ∧ ("and"), disjunction ∨ ("or"), negation ¬ ("not").
Axioms
Propositional Logic can be axiomatized in many ways. On this website I use axioms listed below that we were taught at Mathematical Logic course in University of Latvia by Karlis Podnieks:
[A1] p→(q→p) [A2] (p→(q→r))→((p→q)→(p→r)) [A3] p∧q→p [A4] p∧q→q [A5] p→(q→p∧q) [A6] p→p∨q [A7] q→p∨q [A8] (p→r)→((q→r)→(p∨q→r)) [A9] (p→q)→((p→¬q)→¬p) [A10] ¬p→(p→q) [A11] p∨¬p
Inference Rules
I use 2 rules of inference: substitution and detachment.
Substitution allows to replace all occurences of an atom in a tautology (axiom or theorem), with an arbitrary atom or formula. It can be applied to multiple atoms in a tautology at the same time.
Detachment rule has Latin name "Modus Ponens". It allows, given 2 formulas of form p→q and p, derive formula of form q. If we have "q follows from p" and "it is known that p", then we derive "q is also true".
My work-in-progress software generated the following axiomatic proofs:
- Proof Of Reflexivity Of Implication p→p;
- Proof Of Commutativity Of Conjunction (p∧q)→(q∧p);
- Proof Of Commutativity Of Disjunction (p∨q)→(q∨p);
- Proof Of Double Negation Law p→¬¬p and ¬¬p→p;
- Proof Of Negation Elimination Law ¬p→(p→q);
- Proof Of Syllogism Rules (p→q)→((q→r)→(p→r)), (q→r)→((p→q)→(p→r)), (p→(q→r))→(q→(p→r));
- Proof Of Peirce's Law ((p→q)→p)→p;
- Proof Of ¬(p→q)→p;
- Proof Of ¬(p→q)→¬q;
- Proof Of p→(¬q→¬(p→q));
- Proof Of (¬p→p)→p;
- Proof Of (p→q)→((¬p→q)→q);
- Proof Of Implication Contraposition (¬p→q)→(¬q→p) and (p→¬q)→(q→¬p);
- Proof Of Implication Transposition (p→q)→(¬q→¬p) and (¬q→¬p)→(p→q);
- Proof Of Material Implication (p→q)→(¬p∨q) and (¬p∨q)→(p→q);
- Proof Of Negation Introduction ((¬p→¬q)→p)→(¬p→q) and (¬p→q)→((¬p→¬q)→p).
If you have an interesting/challenging theorem, please send it to me. I will feed it to my program, maybe it will output some unusual result.