How to use this tool
Enter one expression, optionally add another, and generate the table. Use the examples to fill the inputs. Filters apply to Expression 1 or show every comparison difference. Counts always cover the full table. Copy includes only the displayed columns and rows, with a header.
Grammar and method
Use uppercase variables A through H, constants 0 and 1, and case-insensitive keywords. Precedence is NOT, AND, XOR, OR. Binary operators associate left. Parentheses override precedence. Enumerate the union of variables alphabetically; 0 precedes 1 and the rightmost variable changes fastest. Constant-only expressions have one row.
P0 := P1 (OR P1)* P1 := P2 (XOR P2)* P2 := P3 (AND P3)* P3 := NOT P3 / (P0) / A–H / 0 / 1
Limits and exact example
Each expression allows 256 characters and 16 nested parentheses, giving at most 256 assignments. For A AND NOT B, inputs AB = 00, 01, 10, 11 yield 0, 0, 1, 0: mixed, one true row and three false rows. A OR B AND C yields 1 at A=1, B=0, C=0; (A OR B) AND C yields 0. A XOR B yields 0, 1, 1, 0.
Questions and answers
What does equivalent mean?
Both expressions return the same value on every assignment to all entered variables. NOT (A AND B) and NOT A OR NOT B agree on all four rows. A OR B and A AND B differ at 01 and 10; the first counterexample is 01.
Why keep a previous result after an error?
It remains available for reference and is explicitly marked as previous. Copy is disabled until a valid table is generated again. Intermediate columns show compound subexpressions before the final result.
Other ways to use the table
Check software conditions, document a decision rule, or study De Morgan’s law. Translate programming operators into the supported keywords first. This tool handles Boolean values, not language-specific truthiness or side effects.
Privacy
Expressions and results are parsed and evaluated on this device using a restricted grammar. No accounts, uploads, analytics, advertisements or tracking are included. No expression or result data is sent by the tool.
Privacy →