We start by choosing a family H of bounded real functions (called
elementary functions) defined over some set X, that satisfies these two axioms: • H is a linear space with the usual operations of addition and scalar multiplication. • If a function h is in H, so is its
absolute value |h|: x \mapsto |h(x)|. In addition, every function
h in
H is assigned a real number Ih, which is called the
elementary integral of
h, satisfying these three axioms: ; Linearity : If
h and
k are both in
H, and \alpha and \beta are any two real numbers, then I(\alpha h + \beta k) = \alpha Ih + \beta Ik. ; Nonnegativity : If h(x) \ge 0 for all x, then Ih \ge 0. ; Continuity : If h_n is a nonincreasing sequence (i.e. h_1 \ge \cdots \ge h_k \ge \cdots) of functions in H that converges to 0 for all x in X, then Ih_n \to 0.or (more commonly)If h_n is an increasing sequence (i.e. h_1 \le \cdots \le h_k \le \cdots) of functions in H that converges to h for all x in X, then Ih_n \to Ih. That is, we define a continuous non-negative
linear functional I over the space of elementary functions. These elementary functions and their elementary integrals may be any set of functions and definitions of integrals over these functions which satisfy these axioms. The family of all
step functions evidently satisfies the above axioms for elementary functions. Defining the elementary integral of the family of step functions as the (signed) area underneath a step function evidently satisfies the given axioms for an elementary integral. Applying the construction of the Daniell integral described further below using step functions as elementary functions produces a definition of an integral equivalent to the Lebesgue integral. Using the family of all
continuous functions as the elementary functions and the traditional
Riemann integral as the elementary integral is also possible, however, this will yield an integral that is also equivalent to Lebesgue's definition. Doing the same, but using the
Riemann–Stieltjes integral, along with an appropriate function of
bounded variation, gives a definition of integral equivalent to the
Lebesgue–Stieltjes integral. Sets of
measure zero may be defined in terms of elementary functions as follows. A set Z which is a subset of X is a set of measure zero if for any \epsilon > 0, there exists a nondecreasing sequence of nonnegative elementary functions h_p(x) in
H such that Ih_p and \sup_p h_p(x) \ge 1 on Z. A set is called a set of
full measure if its complement, relative to X, is a set of measure zero. We say that if some property holds at every point of a set of full measure (or equivalently everywhere except on a set of measure zero), it holds
almost everywhere. ==Definition==