Check Logic
check_logicDetermine if a propositional logic formula is satisfiable, a tautology, or generate its truth table.
Instructions
Check a propositional logic formula for satisfiability, tautology, or generate a truth table.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| formula | Yes | A Boolean formula using variables and operators (and/&, or/|, not/!, ->/implies). Examples: 'p and (q or r)', '(p -> q) and (q -> r) -> (p -> r)' | |
| check_type | No | Type of check: 'satisfiability', 'tautology', or 'truth_table'. | satisfiability |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |