update the output case for type checking
Add well typed terms
Merge branch 'master' of github.com:crypto-agda/protocols
update order in typing relation, protocols in context refer to how we should behave