They are. I avoided introducing an explanation of Curry-Howard isomorphism because I think that would not be very intuitive to many people because the most commonly used type systems have very little power to express logical properties about the program.
mh, given Curry–Howard correspondence, aren't those the same? so the goal is indeed not having logical contradictions?