In mathematics, a content is a set function that is like a measure, but a content must only be finitely additive, whereas a measure must be countably additive. A content is a real function defined on a collection of subsets such that In many important applications the is chosen to be a Ring of sets or to be at least a Semiring of sets in which case some additional properties can be deduced which are described below. For this reason some authors prefer to define contents only for the case of semirings or even rings. If a content is additionally σ-additive it is called a pre-measure and if furthermore is a σ-algebra, the content is called a measure. Therefore every (real-valued) measure is a content, but not vice versa. Contents give a good notion of integrating bounded functions on a space but can behave badly when integrating unbounded functions, while measures give a good notion of integrating unbounded functions. Examples A classical example is to define a content on all half open intervals by setting their content to the length of the intervals, that is, One can further show that this content is actually σ-additive and thus defines a pre-measure on the semiring of all half-open intervals. This can be used to construct the Lebesgue measure for the real number line using Carathéodory's extension theorem. For further details on the general construction see article on Lebesgue measure. An example of a content that is not a measure on a σ-algebra is the content on all subsets of the positive integers that has value on any integer and is infinite on any infinite subset. An example of a content on the positive integers that is always finite but is not a measure can be given as follows. Take a positive linear functional on the bounded sequences that is 0 if the sequence has only a finite number of nonzero elements and takes value 1 on the sequence so the functional in some sense gives an "average value" of any bounded sequence. (Such a functional cannot be constructed explicitly, but exists by the Hahn–Banach theorem.) Then the content of a set of positive integers is the average value of the sequence that is 1 on this set and 0 elsewhere. Informally, one can think of the content of a subset of integers as the "chance" that a randomly chosen integer lies in