Documenting the type system from scratch