ArticleslgStudy

science

Fixed-point logic

Fixed-point logic is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Fixed-point logic rather than just read about it. In short: In mathematical logic, fixed-point logics are extensions of classical predicate logic that have been introduced to express recursion. Their development has been motivated by descriptive complexity theory and their relationship to database query languages, in particular to Datalog.

Fixed-point logic — main illustration
Fixed-point logic — illustration

Key takeaways

  • Fixed-point logic belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Fixed-point logic to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Fixed-point logic from memory before moving on to harder problems.

Reference excerpt

In mathematical logic, fixed-point logics are extensions of classical predicate logic that have been introduced to express recursion. Their development has been motivated by descriptive complexity theory and their relationship to database query languages, in particular to Datalog. Least fixed-point logic was first studied systematically by Yiannis N. Moschovakis in 1974, and it was introduced to computer scientists in 1979, when Alfred Aho and Jeffrey Ullman suggested fixed-point logic as an expressive database query language.

Partial fixed-point logic For a relational signature X, FO[PFP](X) is the set of formulas formed from X using first-order connectives and predicates, second-order variables as well as a partial fixed point operator PFP used to form formulas of the form [PFPx→,Pφ]t→, where P is a second-order variable, x→ a tuple of first-order variables, t→ a tuple of terms and the lengths of x→ and t→ coincide with the arity of P. Let k be an integer, x,y be vectors of k variables, P be a second-order variable of arity k, and let φ be an FO(PFP,X) function using x and P as variables. We can iteratively define (Pi)i∈N such that P0(x)=false and Pi(x)=φ(Pi−1,x) (meaning φ with Pi−1 substituted for the second-order variable P). Then, on a finite structure, either the sequence reaches a fixed point, or it eventually enters a cycle of length greater than one. [PFPx→,Pφ]t→ is defined as the value of the fixed point of (Pi) on t→ if there is a fixed point, else as false. Since Ps are properties of arity k, there are at most 2nk values for the Pis, so with a polynomial-space counter we can check if there is a loop or not. It has been proven that on ordered finite structures, a property is expressible in FO(PFP,X) if and only if it lies in PSPACE.

Least fixed-point logic Since the iterated predicates involved in calculating the partial fixed point are not in general monotone, the fixed-point may not always exist. FO(LFP,X), least fixed-point logic, is the set of formulas in FO(PFP,X) where the partial fixed point is taken only over such formulas φ that only contain positive occurrences of P (that is, occurrences preceded by an even number of negations). This guarantees monotonicity of the fixed-point construction (That is, if the second order variable is P, then Pi(x) always implies Pi+1(x)). Due to monotonicity, we only add vectors to the truth table of P, and since there are only nk possible vectors we will always find a fixed point before nk iterations. The Immerman-Vardi theorem, shown independently by Immerman and Vardi, shows that FO(LFP,X) characterises P on all ordered structures. The expressivity of least-fixed point logic coincides exactly with the expressivity of the database querying language Datalog, showing that, on ordered structures, Datalog can express exactly those queries executable in polynomial time.

Inflationary fixed-point logic Another way to ensure the monotonicity of the fixed-point construction is by only adding new tuples to P at every stage of iteration, without removing tuples for which P no longer holds. Formally, we define IFP⁡(ϕP,x) as PFP⁡(ψP,x) where ψ(P,x)=ϕ(P,x)∨P(x). This inflationary fixed-point agrees with the least-fixed point where the latter is defined. Although at first glance it seems as if inflationary fixed-point logic should be more expressive than least fixed-point logic since it supports a wider range of fixed-point arguments, in fact, every FO[IFP](X)-formula is equivalent to an FO[LFP](X)-formula.

Simultaneous induction While all the fixed-point operators introduced so far iterated only on the definition of a single predicate, many computer programs are more naturally thought of as iterating over several predicates simultaneously. By either increasing the arity of the fixed-point operators or by nesting them, every simultaneous least, inflationary or partial fixed-point can in fact be expressed using the corresponding single-iteration constructions discussed above.

Transitive closure logic Rather than allow induction over arbitrary predicates, transitive closure logic allows only transitive closures to be expressed directly. FO[TC](X) is the set of formulas formed from X using first-order connectives and predicates, second-order variables as well as a transitive closure operator TC used to form formulas of the form [TCx→,y→φ]s→t→, where x→ and y→ are tuples of pairwise distinct first-order variables, t→ and s→ tuples of terms and the lengths of x→, y→, s→ and t→ coincide. TC is defined as follows: Let k be a positive integer and u,v,x,y be vectors of k variables. Then 𝖳𝖢(φu,v)(x,y) is true if there exist n vectors of variables (zi) such that z1=x,zn=y, and for all i<n, φ(zi,zi+1) is true. Here, φ is a formula written in FO(TC) and φ(x,y) means that the variables u and v are replaced by x and y. Over ordered structures, FO[TC] characterises the complexity class NL. This characterisation is a crucial part of Immerman's proof that NL is closed under complement (NL = co-NL).

Deterministic transitive closure logic FO[DTC](X) is defined as FO(TC,X) where the transitive closure operator is deterministic. This means that when we apply DTC⁡(ϕu,v), we know that for all u, there exists at most one v such that ϕ(u,v). We can suppose that DTC⁡(ϕu,v) is syntactic sugar for TC⁡(ψu,v) where ψ(u,v)=ϕ(u,v)∧∀x(x=v∨¬ϕ(u,x)). Over ordered structures, FO[DTC] characterises the complexity class L.

Examples

Define a vertex x to be weak if, with at most one exception y, each of its neighbors z is weak, according to the fixed-point formula W(x)←∃y∀z(x∼z⇒(y=z∨W(z))). The remaining vertices form the 2-core of the graph. The following formula written in Least Fixed-point logic states that the 2-core of a graph is not empty: ∃t[LFPx,P∃y∀z(x∼z⇒(y=z∨P(z)))]t A graph is connected if there exists a path between every pair of vertices. The fact that there exists a path between two vertices is the transitive closure of the adjacency relation. Hence the following formula written in Transitive closure logic states that a graph is connected: ∀s∀t[TCx,yx∼y]st

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Fixed-point logic

Start with the simplest possible case. Write down what Fixed-point logic claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Fixed-point logic before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Fixed-point logic ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Fixed-point logic

In research
Fixed-point logic appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Fixed-point logic in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Fixed-point logic is common in secondary-school and first-year university syllabi. It links to neighbouring topics Database theory, Descriptive complexity, Predicate logic, so understanding it makes those chapters shorter.
In everyday life
Look for Fixed-point logic outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Fixed-point logic” →

How to study Fixed-point logic in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Fixed-point logic means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Fixed-point logic out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Fixed-point logic in simple terms?

In mathematical logic, fixed-point logics are extensions of classical predicate logic that have been introduced to express recursion. Their development has been motivated by descriptive complexity theory and their relationship to database query languages, in particular to Datalog.

Why does Fixed-point logic matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Fixed-point logic?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Fixed-point logic.

Tags

  • Database theory
  • Descriptive complexity
  • Predicate logic

Keep exploring