Evaluate Proposition #2

Closed
opened 2026-05-27 13:01:52 +00:00 by bemmesr · 1 comment
Owner

Introduce a function which when given a proposition will determine if it is:

  • contradictory
  • contingent
  • tautology

This should pass given that there are tests showing that propositions of varying complexity are correctly identified as being one of the three. In these tests there should be one example of each of the above types of proposition for each combination of the basic connectives.

Introduce a function which when given a proposition will determine if it is: - contradictory - contingent - tautology This should pass given that there are tests showing that propositions of varying complexity are correctly identified as being one of the three. In these tests there should be one example of each of the above types of proposition for each combination of the basic connectives.
bemmesr changed title from evaluateProposition to Evaluate Proposition 2026-05-27 13:05:52 +00:00
Author
Owner

Possible to also test by first creating a random contradictory proposition (which evaluates as such) and then negating it and seeing if the result is determined to be a tautology (if not, there is an error). Similar test can be applied by first generating a tautology and negating it. As for a random contingent proposition, we can test it by putting it in conjunction with its negation and seeing if the result is evaluated as a contradiction, and likewise we can test it by putting it in disjunction with its negation and seeing if the result is evaluated as a tautology. All this requires that the proposition data type be sufficiently flexible so as to easily use one proposition in another.

Possible to also test by first creating a random contradictory proposition (which evaluates as such) and then negating it and seeing if the result is determined to be a tautology (if not, there is an error). Similar test can be applied by first generating a tautology and negating it. As for a random contingent proposition, we can test it by putting it in conjunction with its negation and seeing if the result is evaluated as a contradiction, and likewise we can test it by putting it in disjunction with its negation and seeing if the result is evaluated as a tautology. All this requires that the proposition data type be sufficiently flexible so as to easily use one proposition in another.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
bemmesr/liblogic#2
No description provided.