Skip to content

Foundations

What a type system proves and how, and how to decide which properties are worth putting into types. Part of Type-driven design.

  • Type systems: Pierce’s definition, soundness and conservativity, and what type systems buy.
  • Dimensions of type systems: static, dynamic and gradual checking; safety and what “strong” means; nominal and structural equivalence.
  • Type inference: inference as ergonomics, and where it stops as type systems get more expressive.
  • Types as propositions: the Curry-Howard correspondence and how far ordinary languages honour it.
  • What belongs in the type system: types, contracts, runtime checks and tests; good targets; a decision procedure; where types stop matching reality; costs and failure modes.

Explore this section

  • The axes along which type systems differ: static, dynamic and gradual checking, safety and what \"strong\" means, and nominal versus structural equivalence.

  • Type inference as ergonomics rather than a guarantee: what inference saves, where it stops (System F, type families, refinement qualifiers), and why signatures are still worth writing.

  • What a type system is, starting from Pierce's definition: soundness, conservativity, the four parts of the definition, and what type systems buy, from early error detection to documentation and efficiency.

  • The Curry-Howard reading of types: types as propositions and programs as proofs, what it means for ordinary code, and how far each kind of type system takes it.

  • Choosing between types, contracts, runtime checks and tests: what makes a good type-system target, a decision procedure, where types stop matching reality, and the cost of stronger guarantees.