Nice  post on Type System and Logic.