mathpartir: type rules
array
bussproof: proof trees
Packages for typesetting natural deduction: link
simplebnf: for simple grammars
Code formatting:
tikzmath