[Image 1]
Hey it's a me again @drifter1!
Today we continue with Mathematics, and more specifically the branch of "Discrete Mathematics", in order to get into more on Implication and Equivalence Statements.
Of course, you should check out the previous part before getting into this one...
So, without further ado, let's dive straight into it!
In the previous article, a proposition was defined as a declarative sentence that is either true or false. So, even in compound propositions (which are the combination of multiple propositions) the only thing that matters is the final truth value.
The truth value depends on the chosen truth value of each propositional variable that makes up the statement. There are only two possibilities for each such variable. This allows for a visual representation of all possible combinations via something known as a truth table.
The truth tables of the main logical connectives are the following:
where T means true and F means false.
In the context of computer science and mainly logic gates, truth tables are mostly in 0-1 form, where 0 means false and 1 means true.
It's easy to generalize conjunction and disjunction for any number of propositions (inputs):
What's the truth table of an Exclusive-OR (XOR) with 3 inputs?
Hint: In the case of two inputs the output is true only when the propositions are not equal. For any number of inputs it is generalized into being true only if the number of true inputs is odd.
The inverse of the XOR is known as a XNOR. It is true when the two inputs are equal, and generally the number of true inputs is even.
An implication is a statement of the form p → q, where p is the hypothesis (or antecedent) and q the conclusion (or consequent). Such mathematical statements can be proven directly by assuming p (p is true) and deducing q from it.
Implications basically specify the relationship between two propositions. If p → q is a proposition then:
If both p → q and q → p are true then p ↔ q. Such a statement is called a bi-conditional statement or an equivalence.
Proving logical equivalence is as simple as proving that two statements have the same truth table or that each can be deduced from the other (proving p → q and q → p respectively).
Logical equivalence is commonly denoted using the ≡ symbol, which basically means equivalence.
Based on logical equivalence it's possible to simplify statements using various laws of algebra. These are:
Let's proof the following equivalence:
For the left-hand side, replacing the conditionals using the respective laws, and simplifying, yields:
For the right-hand side now, replacing the conditional and then applying De Morgan's law yields:
So, both result in the same statement, and are thus logically equivalent!
Mathematical equations used in this article, have been generated using quicklatex.
Block diagrams and other visualizations were made using draw.io.
And this is actually it for today's post!
Next time we will continue on with strategies for proving mathematical statements...
See ya!
Keep on drifting!