Skip to content

Commit

Permalink
failing test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Vipul-Cariappa committed Oct 23, 2023
1 parent f746251 commit ddd33b8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion logic/proof.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,10 @@ def prove(self) -> tuple[Proof, bool]:
case CompositePropositionBICONDITIONAL(assumption=assumption, conclusion=conclusion):
# Applying definition of Bi-Conditional
# (p <-> q) -> (p -> q) & (q -> p)
if IMPLY(assumption, conclusion) == self.conclusion or IMPLY(conclusion, assumption) == self.conclusion:
if (
IMPLY(assumption, conclusion) == self.conclusion
or IMPLY(conclusion, assumption) == self.conclusion
):
self.proof.add(Equivalence.DefinitionOfBiConditional, i)
return self.proof, True

Expand Down

0 comments on commit ddd33b8

Please sign in to comment.