CTAN Comprehensive TeX Archive Network

Boolalg – Truth tables, step-by-step simplification, and algebraic proofs for Boolean

The boolalg package provides pure- macros for parsing, evaluating, simplifying, and proving Boolean algebra expressions without requiring external tools, Python, or shell-escape:

– \btable and \btable*: Generate truth tables with intermediate subexpression columns and optional simplified results. – \bsimplify and \bsimplify*: Perform step-by-step algebraic simplification with explicit law justifications (Idempotence, Absorption, Consensus theorem, De Morgan’s laws, Distributivity, etc.). – \bprove: Construct step-by-step algebraic proofs between two equivalent expressions, or automatically find and print a concrete counterexample if the claim is false.

Expressions support flexible input syntax including implicit multiplication (AB), postfix primes (A'), prefix operators (!, ~), English words (and, or, xor, nand, nor, xnor, not), and standard math symbols (\land, \lor, \oplus, \lnot, etc.).

Sources/macros/latex/contrib/boolalg
Documentation
Version1.0.0
LicensesThe Project Public License 1.3c
Copyright2026 Param Srivastava
MaintainerParam Srivastava
TopicsLogic
See alsoluatruthtable
truthtable

Download the contents of this package in one zip archive (160.9k).

Community Comments

Loading...
Guest Book Sitemap Contact Contact Author