Dependent Type Theory And Formal Proof In Law