Solution - Truth table generator
Step-by-step explanation
1. Parse logical expression
The expression is (¬p) → q (implication). Variables: p, q. We need 2^2 = 4 rows.
Identify the propositional variables and logical connectives, then determine the number of rows needed in the truth table.
2. Build truth table
Evaluate the expression for every possible combination of truth values assigned to the variables.
3. Analyze results
The expression (¬p) → q is true for 3 out of 4 rows. This is not a tautology (not always true) and not a contradiction (not always false).
Classify the expression as a tautology (always true), contradiction (always false), or contingent based on the truth table rows.
4. Check one row
Verify the final column by substituting one assignment back into the original expression.