# Fluent (artificial intelligence)

In artificial intelligence, a fluent is a condition that can change over time. In logical approaches to reasoning about actions, fluents can be represented in first-order logic by predicates having an argument that depends on time. For example, the condition “the box is on the table”, if it can change over time, cannot be represented by ${\displaystyle \mathrm {On} (\mathrm {box} ,\mathrm {table} )}$; a third argument is necessary to the predicate ${\displaystyle \mathrm {On} }$ to specify the time: ${\displaystyle \mathrm {On} (\mathrm {box} ,\mathrm {table} ,t)}$ means that the box is on the table at time ${\displaystyle t}$. This representation of fluents is modified in the situation calculus by using the sequence of the past actions in place of the current time.
A fluent can also be represented by a function, dropping the time argument. For example, that the box is on the table can be represented by ${\displaystyle on(box,table)}$, where ${\displaystyle on}$ is a function and not a predicate. In first order logic, converting predicates to functions is called reification; for this reason, fluents represented by functions are said to be reified. When using reified fluents, a separate predicate is necessary to tell when a fluent is actually true or not. For example, ${\displaystyle HoldsAt(on(box,table),t)}$ means that the box is actually on the table at time ${\displaystyle t}$, where the predicate ${\displaystyle HoldsAt}$ is the one that tells when fluents are true. This representation of fluents is used in the event calculus, in the fluent calculus, and in the features and fluents logics.
Some fluents can be represented as functions in a different way. For example, the position of a box can be represented by a function ${\displaystyle on(box,t)}$ whose value is the object the box is standing on at time ${\displaystyle t}$. Conditions that can be represented in this way are called functional fluents. Statements about the values of such functions can be given in first order logic with equality using literals such as ${\displaystyle on(box,t)=table}$. Some fluents are represented this way in the situation calculus.