So, obviously for a term $t$ of type $T$, I would represent it as:
T
+-----------+
| |
| t |
| |
+-----------+
That is a node labeled $T$ parenting another node labeled $t$. I'm wondering though how you can represent $\Pi x:A, B(x)$ in a canonical fashion. MS paint drawings welcome! :)
My attempt and best guess is something like this:
So that says that $x$ inhabits the Pi-type $(\Pi_{a:A} B(a))$, hopefully. So even the labels can be more complicated than a string, i.e. consist of nodes & arrows themselves. Or is there some better way of doing this? Your go.