Skip to content
An Econ-ARK project

About us

Project Bellman provides a declarative, modular and expressive language system for recursive dynamic programming, in economics and in other fields. It is an Econ-ARK project.

1 The project

A dynamic programming model in economics is usually written twice: once as mathematics, and again as the code that solves it. That code is particular to the one model. The author of the next model therefore starts again, and another person's model is hard to read.

In the Bellman language, an economist writes the model once, as stages. A stage is one self-contained decision problem, written as one stage file. Stages written separately join into a model, and a new model reuses them. The same four stage files, for example, build a portfolio–consumption model with consumption chosen first or with the portfolio chosen first. Parameter values and numerical methods are attached to a stage afterwards, so a change of method leaves the stage files unchanged.

We develop the language, its mathematical foundations and worked examples together. The model's equations and structure remain available for people and software to inspect.

Read the overview, explore a worked model, or follow the mathematical foundations.

2 People and support

The Bellman language was created by Christopher D. Carroll and Akshay Shanker. It is named in honor of Richard Bellman, whose ideas on breaking a dynamic program into stages, linked by functional equations, are the foundation of the language.1

Contributors Institution
Christopher D. Carroll Johns Hopkins University
Alan Lujan Johns Hopkins University
Akshay Shanker Johns Hopkins University

Project Bellman is a sub-project of Econ-ARK and is supported by the Alfred P. Sloan Foundation.

3 Acknowledgments

The grammar of the Bellman language is derived from dynspec, the grammar of Dyno, a library written by Pablo Winant and Ousema Bouaneni.2

4 Take part

Questions, corrections and contributions to the code, documentation and examples are welcome on GitHub. To report a problem or suggest an improvement, open an issue. For a model example, include the equations and the behavior you expect.

The software is available under the Apache License 2.0.

5 Homepage media

The Mile 12 market sequence combines drone footage with a wider photograph of the same market in Lagos, both taken by Ayorinde Ogundele on 8 March 2025. The edit uses an animated crop and a navy-to-ice color treatment. Both sources and the edited sequence are licensed under CC BY-SA 4.0. Market Movements · Mile 12 market photograph · License

The night-light sequence uses twelve annual satellite composites from 2012 to 2023 with the same crop and color treatment throughout. Credit to NASA’s Scientific Visualization Studio. Change in Night Lights between 2012 and 2023

Henderson, Storeygard and Weil (2012) show how satellite observations of night lights can supplement official estimates of income growth, especially where national accounts are poor. Measuring Economic Growth from Outer Space

The sculling video comes from Wikimedia Commons and is shown in navy and ice. An adaptation of a share-alike work retains its source's license.

6 Typefaces

The site sets its display line in Syne, its statements and headings in Space Grotesk, its text in Archivo and its code in IBM Plex Mono. All four are published under the SIL Open Font License and served from the site itself, with each family's license text beside its files.


  1. Richard Bellman, Dynamic Programming (Princeton University Press, 1957), Preface, pp. vii and xi–xii, and Chapter I, §§4–5, pp. 7–9. ↩

  2. Pablo Winant and Ousema Bouaneni, Dyno, EconForge, https://github.com/EconForge/dyno.py. The dynspec grammar is the file src/dyno/dynspec/grammars/grammar.lark, cited at commit 312e8ea. ↩