
In
order theory
Order theory is a branch of mathematics that investigates the intuitive notion of order using binary relations. It provides a formal framework for describing statements such as "this is less than that" or "this precedes that". This article intr ...
, a branch of
mathematics
Mathematics is a field of study that discovers and organizes methods, Mathematical theory, theories and theorems that are developed and Mathematical proof, proved for the needs of empirical sciences and mathematics itself. There are many ar ...
, the least fixed point (lfp or LFP, sometimes also smallest fixed point) of a
function from a
partially ordered set
In mathematics, especially order theory, a partial order on a Set (mathematics), set is an arrangement such that, for certain pairs of elements, one precedes the other. The word ''partial'' is used to indicate that not every pair of elements need ...
("poset" for short) to itself is the
fixed point which is less than each other fixed point, according to the order of the poset. A function need not have a least fixed point, but if it does then the least fixed point is unique.
Examples
With the usual order on the
real number
In mathematics, a real number is a number that can be used to measure a continuous one- dimensional quantity such as a duration or temperature. Here, ''continuous'' means that pairs of values can have arbitrarily small differences. Every re ...
s, the least fixed point of the real function ''f''(''x'') = ''x''
2 is ''x'' = 0 (since the only other fixed point is 1 and 0 < 1). In contrast, ''f''(''x'') = ''x'' + 1 has no fixed points at all, so has no least one, and ''f''(''x'') = ''x'' has infinitely many fixed points, but has no least one.
Let
be a
directed graph and
be a vertex. The
set
Set, The Set, SET or SETS may refer to:
Science, technology, and mathematics Mathematics
*Set (mathematics), a collection of elements
*Category of sets, the category whose objects and morphisms are sets and total functions, respectively
Electro ...
of vertices accessible from
can be defined as the least fixed-point of the function
, defined as
The set of vertices which are co-accessible from
is defined by a similar least fix-point. The
strongly connected component
In the mathematics, mathematical theory of directed graphs, a graph is said to be strongly connected if every vertex is reachability, reachable from every other vertex. The strongly connected components of a directed graph form a partition of a s ...
of
is the
intersection
In mathematics, the intersection of two or more objects is another object consisting of everything that is contained in all of the objects simultaneously. For example, in Euclidean geometry, when two lines in a plane are not parallel, their ...
of those two least fixed-points.
Let
be a
context-free grammar
In formal language theory, a context-free grammar (CFG) is a formal grammar whose production rules
can be applied to a nonterminal symbol regardless of its context.
In particular, in a context-free grammar, each production rule is of the fo ...
. The set
of symbols which produces the
empty string
In formal language theory, the empty string, or empty word, is the unique String (computer science), string of length zero.
Formal theory
Formally, a string is a finite, ordered sequence of character (symbol), characters such as letters, digits ...
can be obtained as the least fixed-point of the function
, defined as
, where
denotes the
power set
In mathematics, the power set (or powerset) of a set is the set of all subsets of , including the empty set and itself. In axiomatic set theory (as developed, for example, in the ZFC axioms), the existence of the power set of any set is po ...
of
.
Applications
Many
fixed-point theorem
In mathematics, a fixed-point theorem is a result saying that a function ''F'' will have at least one fixed point (a point ''x'' for which ''F''(''x'') = ''x''), under some conditions on ''F'' that can be stated in general terms.
In mathematica ...
s yield algorithms for locating the least fixed point. Least fixed points often have desirable properties that arbitrary fixed points do not.
Denotational semantics

In
computer science
Computer science is the study of computation, information, and automation. Computer science spans Theoretical computer science, theoretical disciplines (such as algorithms, theory of computation, and information theory) to Applied science, ...
, the ''
denotational semantics
In computer science, denotational semantics (initially known as mathematical semantics or Scott–Strachey semantics) is an approach of formalizing the meanings of programming languages by constructing mathematical objects (called ''denotations'' ...
'' approach uses least fixed points to obtain from a given program text a corresponding mathematical function, called its semantics. To this end, an artificial mathematical object,
, is introduced, denoting the exceptional value "undefined".
Given e.g. the program datatype
int
, its mathematical counterpart is defined as
it is made a partially ordered set by defining
for each
and letting any two different members
be uncomparable w.r.t.
, see picture.
The semantics of a program definition
int f(int n)
is some mathematical function
If the program definition
f
does not terminate for some input
n
, this can be expressed mathematically as
The set of all mathematical functions is made partially ordered by defining
if, for each
the relation
holds, that is, if
is less defined or equal to
For example, the semantics of the expression
x+x/x
is less defined than that of
x+1
, since the former, but not the latter, maps
to
and they agree otherwise.
Given some program text
f
, its mathematical counterpart is obtained as least fixed point of some mapping from functions to functions that can be obtained by "translating"
f
.
For example, the
C definition
int fact(int n)
is translated to a mapping
:
defined as
The mapping
is defined in a non-recursive way, although
fact
was defined recursively.
Under certain restrictions (see
Kleene fixed-point theorem
In the mathematical areas of order and lattice theory, the Kleene fixed-point theorem, named after American mathematician Stephen Cole Kleene, states the following:
:Kleene Fixed-Point Theorem. Suppose (L, \sqsubseteq) is a directed-complete pa ...
), which are met in the example,
necessarily has a least fixed point,
, that is
for all
.
It is possible to show that
:
A larger fixed point of
is e.g. the function
defined by
:
however, this function does not correctly reflect the behavior of the above program text for negative
e.g. the call
fact(-1)
will not terminate at all, let alone return
0
.
Only the ''least'' fixed point,
can reasonably be used as a mathematical program semantic.
Descriptive complexity
Immerman
and
Vardi
independently showed the
descriptive complexity
Descriptive complexity is a branch of computational complexity theory and of finite model theory that characterizes complexity classes by the type of logic needed to express the formal language, languages in them. For example, PH (complexity), PH, ...
result that the
polynomial-time computable properties of
linearly ordered
In mathematics, a total order or linear order is a partial order in which any two elements are comparable. That is, a total order is a binary relation \leq on some set X, which satisfies the following for all a, b and c in X:
# a \leq a ( re ...
structures are definable in
FO(LFP), i.e. in
first-order logic
First-order logic, also called predicate logic, predicate calculus, or quantificational logic, is a collection of formal systems used in mathematics, philosophy, linguistics, and computer science. First-order logic uses quantified variables over ...
with a least fixed point operator. However, FO(LFP) is too weak to express all polynomial-time properties of unordered structures (for instance that a structure has
even size).
Greatest fixed points
The greatest fixed point of a function can be defined analogously to the least fixed point, as the fixed point which is greater than any other fixed point, according to the order of the poset. In
computer science
Computer science is the study of computation, information, and automation. Computer science spans Theoretical computer science, theoretical disciplines (such as algorithms, theory of computation, and information theory) to Applied science, ...
, greatest fixed points are much less commonly used than least fixed points. Specifically, the posets found in
domain theory
Domain theory is a branch of mathematics that studies special kinds of partially ordered sets (posets) commonly called domains. Consequently, domain theory can be considered as a branch of order theory. The field has major applications in computer ...
usually do not have a greatest element, hence for a given function, there may be multiple, mutually incomparable
maximal fixed points, and the greatest fixed point of that function may not exist. To address this issue, the ''optimal fixed point'' has been defined as the most-defined fixed point compatible with all other fixed points. The optimal fixed point always exists, and is the greatest fixed point if the greatest fixed point exists. The optimal fixed point allows formal study of
recursive
Recursion occurs when the definition of a concept or process depends on a simpler or previous version of itself. Recursion is used in a variety of disciplines ranging from linguistics to logic. The most common application of recursion is in m ...
and
corecursive functions that do not converge with the least fixed point. Unfortunately, whereas
Kleene's recursion theorem shows that the least fixed point is effectively computable, the optimal fixed point of a
computable function
Computable functions are the basic objects of study in computability theory. Informally, a function is ''computable'' if there is an algorithm that computes the value of the function for every value of its argument. Because of the lack of a precis ...
may be a non-computable function.
[ Here: Example 12.1, pp. 12.2–3]
See also
*
Knaster–Tarski theorem
In the mathematical areas of order and lattice theory, the Knaster–Tarski theorem, named after Bronisław Knaster and Alfred Tarski, states the following:
:''Let'' (''L'', ≤) ''be a complete lattice and let f : L → L be an order-preserving ...
*
Fixed-point logic
Notes
{{reflist
References
*
Immerman, Neil. ''
Descriptive Complexity
Descriptive complexity is a branch of computational complexity theory and of finite model theory that characterizes complexity classes by the type of logic needed to express the formal language, languages in them. For example, PH (complexity), PH, ...
'', 1999, Springer-Verlag.
*
Libkin, Leonid. ''Elements of Finite Model Theory'', 2004, Springer.
Order theory
Fixed points (mathematics)