Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Boolean Implication

I need some help with this Boolean Implication.

Can someone explain how this works in simple terms:

A implies B = B + A' (if A then B). Also equivalent to A >= B

like image 234
Tony The Lion Avatar asked Nov 30 '09 23:11

Tony The Lion


2 Answers

Boolean implication A implies B simply means "if A is true, then B must be true". This implies (pun intended) that if A isn't true, then B can be anything. Thus:

False implies False -> True
False implies True  -> True
True  implies False -> False
True  implies True  -> True

This can also be read as (not A) or B - i.e. "either A is false, or B must be true".

like image 169
Pavel Minaev Avatar answered Oct 17 '22 22:10

Pavel Minaev


Here's how I think about it:

if(A)
  return B;
else
  return True;

if A is true, then b is relevant and should be checked, otherwise, ignore B and return true.

like image 31
infinitenothing Avatar answered Oct 17 '22 21:10

infinitenothing