Truth Table
truth_tableGenerate a complete truth table for boolean expressions (and, or, not, xor, implies, iff), returning each variable assignment, result, row count, satisfiability, and tautology.
Instructions
Build the truth table for a boolean expression over and/or/not/xor/ implies/iff (plus true/false constants and variables): 'a and b or not c', 'p xor q', 'a implies b'. Use z3_check, not this, for satisfiability over inequalities or non-boolean variables; use evaluate_expression for symbolic (non-boolean) math.
Returns variables (sorted names) and rows (one dict per assignment,
each variable name -> bool plus result), plus row_count,
satisfiable (any row true), and tautology (every row true).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expression | Yes | Boolean logic expression to tabulate, e.g. 'a and b or not c', 'p xor q', 'a implies b' |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||