Skip to content

Instantly share code, notes, and snippets.

@rosskarchner
Created February 14, 2015 06:11
Show Gist options
  • Save rosskarchner/29c83e8359753388e25b to your computer and use it in GitHub Desktop.
Save rosskarchner/29c83e8359753388e25b to your computer and use it in GitHub Desktop.
def conjunction(left_conjunct,right_conjunct):
return bool(left_conjunct and right_conjunct)
def disjunction(left_disjunct,right_disjunct):
return bool(left_disjunct or right_disjunct)
def negation(a):
return not(a)
def implication(antecedent, consequent):
if consequent:
return True
elif not(antecedent) and not(consequent):
return True
else:
return False
def biconditional(left_bicomponent,right_bicomponent):
return bool(left_bicomponent) == bool(right_bicomponent)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment