Theories of types and proofs (Elsevier, 2002)