Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
Review
. 2022 Apr;29(2):430-454.
doi: 10.3758/s13423-021-01977-y. Epub 2021 Dec 15.

Recursion in programs, thought, and language

Affiliations
Review

Recursion in programs, thought, and language

P N Johnson-Laird et al. Psychon Bull Rev. 2022 Apr.

Abstract

This article presents a theory of recursion in thinking and language. In the logic of computability, a function maps one or more sets to another, and it can have a recursive definition that is semi-circular, i.e., referring in part to the function itself. Any function that is computable - and many are not - can be computed in an infinite number of distinct programs. Some of these programs are semi-circular too, but they needn't be, because repeated loops of instructions can compute any recursive function. Our theory aims to explain how naive individuals devise informal programs in natural language, and is itself implemented in a computer program that creates programs. Participants in our experiments spontaneously simulate loops of instructions in kinematic mental models. They rely on such loops to compute recursive functions for rearranging the order of cars in trains on a track with a siding. Kolmogorov complexity predicts the relative difficulty of abducing such programs - for easy rearrangements, such as reversing the order of the cars, to difficult ones, such as splitting a train in two and interleaving the two resulting halves (equivalent to a faro shuffle). This rearrangement uses both the siding and part of the track as working memories, shuffling cars between them, and so it relies on the power of a linear-bounded computer. Linguistic evidence implies that this power is more than necessary to compose the meanings of sentences in natural language from those of their grammatical constituents.

Keywords: Computational power; Grammar; Informal programs; Mental models; Recursion; Working memory.

PubMed Disclaimer

References

    1. Ackermann, W. (1967/1928). On Hilbert’s construction of the real numbers. In van Heijenoort, J. (Ed.) From Frege to Gödel: A source book in mathematical logic, 1879-1931 (pp. 495-507.) Harvard University Press. (Originally published in 1928.)
    1. Adams, R. (2011). An early history of recursive functions and computability: from Gödel to Turing. Docent Press. (An edited version of his 1983 Ph.D. thesis.)
    1. Aho, A. V., & Ullman, J. D. (1972). The Theory of Parsing, Translation, and Compiling, Vol. 1: Parsing. Prentice-Hall.
    1. Anderson, J. R., Pirolli, P., & Farrell, R. (1988). Learning to program recursive functions. In: Chi, M., Glaser, R., & Farr, M. (Eds.), The nature of expertise (pp. 153-183). Erlbaum.
    1. Anderson, J. R., Betts, S., Ferris, J. L., & Fincham, J. M. (2011). Cognitive and metacognitive activity in mathematical problem solving: prefrontal and parietal patterns. Cognitive, Affective, & Behavioral Neuroscience, 11, 52-67.

LinkOut - more resources