@julesh My final year UG project was a type system for Prolog. At that time, in the late 1980's, I didn't know about dependent types.