Dependent type

(Because of this and other work by Howard, propositions-as-types is known as the Curry–Howard correspondence.)