Logical Implication

Outlines:

  • Definition of Implication
  • Truth table for implication
  • different expressions of implication
  • Converse, contrapositive, and inverse

Definition of Implication: Let p and q be propositions. The conditional statement, or implication p→q is the proposition:

  • “If p then q”

p is called the hypothesis (or antecedent or premise)
q is called the conclusion (or consequence)

Truth Table:

Pasted image 20261028165237.png

Basically, if p is ever false, then we know that the entire statement is definitely true. If the premise however is true, then the only way for the implication to be false is if q is false, otherwise the implication is true. So it is good to think of it like a promise, if the promise is never started, then it is true, if it is started and kept, then it is also true, if it is started but not kept, then it is false.

Different ways of saying it:

Pasted image 20261028165422.png


Converse, Contrapositive, and Inverse

Let p and q be propositions and A the conditional statement p→q. And this is the basic implication.

  • Converse: q→p
  • Contrapositive: ¬q→¬p
  • Inverse: ¬p→¬q

Pasted image 20261028165746.png
Pasted image 20261028165827.png


Logical Equivalence

Outline:

  • Definition of equivalence
  • Equivalence properties
  • Equivalent propositions
  • Proving Equivalence
  • Proving non-equivalence
  • Precedence of Logical Operations

Definition of Equivalence Let p and q be propositions. The bi-conditional or equivalence statement p↔q is the proposition of p→q AND q→p, and is therefore only equal when the two propositions are equal to each other, both being false or both being true

These are also called bi-implications and can be read as p⇔q: “p if and only if q”

Pasted image 20261028170825.png

Equivalent Propositions:

For two propositions p, q. p and q are logically equivalent if they always share the same truth value no matter what. For this you can then write that p ≡ q, meaning that they always have the same value

Let it be known that p and q could be compound propositions that still evaluate to the same thing, for two contradictions you might have completely different looking propositions, but they are still logically equivalent

You can prove logical equivalence using the idea of a truth table, and with this you can compare how the two propositions compare in output for every single possible input that they have. This is good for simple propositions
Pasted image 20261028171205.png

The converse or the inverse of this then obviously means that two propositions are not logically equivalent if the two of them end up with different truth tables, even if one row is not the same, then they are considered to be not logically equivalent.

Pasted image 20261028171327.png

Pasted image 20261028171421.png


Laws of Propositional Logic:

Outlines:

  • Laws of propositional Logic
  • Equivalence Proof

Pasted image 20261028174321.png

Some of the ones not outlined here are outlined in weeks one and two inside of the fundamentals of computer science course. generally it looks like includes some things like de Morgan’s laws, as well as the laws about consumption or some shit I do not really remember, but generally the same stuff, I actually think the other laws might have been about sets, but it all applies here just the same.

Pasted image 20261028174530.png

Pasted image 20261028174544.png

Okay so yes here are the other ones that I was talking about, De Morgan’s which basically just negates a given proposition, as well as then the negation tautology and contradiction which are just basically the standard definition for that, and if you negate something twice it ends up being true.

The only real one to mention once again is those weird absorption laws, which basically mean that given whatever value you have, eventually the other value will not matter because of the precedence/the strength of binding for the other logical proposition


Practice Work

“tutorial-propostional-logic 2.pdf” could not be found.


Book Reading

Consolidate your understanding by reading the following pages on these topics: logical implication; converse, contrapositive and inverse; equivalence; the laws of propositional logic (including De Morgan’s laws); and the precedence of logical operators.

Once you’ve finished the readings, please attempt the following exercises from the same book (Rosen 2012): 

  • pp.14: exercises 22–23,  
  • pp.13: exercises 10, 11, 12 and 14,
  • pp.15: exercises 32, 33, 35 and 37,
  • pp.35: exercises 9, 30, 31 and 34.

Once you have finished the reading, please attempt the following exercises from the same book (Koshy 2004):

  • p. 19 exercises 54–56,
  • p.29 exercises 3–7, 11 and 35–37.

Further reading

If you would like to explore and practise these concepts further, you can read the following pages from Levin (2019) pp. 6–15 and 198–202.