Lippmeier, Ben2015-12-079783642005893http://hdl.handle.net/1885/18993Restricting destructive update to values of a distinguished reference type prevents functions from being polymorphic in the mutability of their arguments. This restriction makes it easier to reason about program behaviour during transformation, but the lack of polymorphism reduces the expressiveness of the language. We present a System-F style core language that uses dependently kinded proof witnesses to encode information about the mutability of values and the purity of computations. We support mixed strict and lazy evaluation, and use our type system to ensure that only computations without visible side effects are suspended.Keywords: Lazy evaluation; Side effect; Type systems; Computer software; Query languages; LinguisticsWitnessing Purity, Constancy and Mutability200910.1007/978-3-642-10672-9_92016-02-24