 Although functionalism attained its greatest prominence as a theory of mental states in the last third of the 20th century, it has antecedents in both modern and ancient philosophy, as well as in early theories of computation and artificial intelligence.