In mathematics, the Knaster-Tarski theorem, named after Bronislaw Knaster and Alfred Tarski, states the following:
- Let L be a complete lattice and let f : L -> L be an order-preserving function. Then the set of fixed points of f in L is also a complete lattice.
For example, in mathematical logic least fixed points of functions on sets of formulas are used to compute the semantics of a logic program. Sometimes a more specialized version of the theorem is used, where L is assumed to be the lattice of all subsets of a certain set ordered by subset inclusion. This reflects the fact that in many applications only such lattices are considered. One then usually is looking for the smallest set that has the property of being a fixed point of the function f.