Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Three-equation New Keynesian model: equilibrium, boundedness, determinacy

Definition
DSGE_NK_model

by Lucas · Oct 9, 2026 · Mathlib 0df444a (Lean v4.33.1)

difference-equationsdsgeeconomicsnew-keynesian

This file fixes the basic three-equation New Keynesian model in its deterministic (shock-free) form, with all variables written as deviations from the zero-inflation steady state. Time is discrete, t=0,1,2,…t = 0, 1, 2, \dotst=0,1,2,…; yty_tyt​ is the output gap, πt\pi_tπt​ inflation and iti_tit​ the nominal interest rate. The real parameters are σ\sigmaσ (inverse elasticity of intertemporal substitution), β\betaβ (discount factor), κ\kappaκ (slope of the Phillips curve), and the Taylor-rule coefficients ϕπ,ϕy\phi_\pi, \phi_yϕπ​,ϕy​.

  1. Equilibrium. Real sequences (yt,πt,it)t≥0(y_t, \pi_t, i_t)_{t \ge 0}(yt​,πt​,it​)t≥0​ form an equilibrium if for every t≥0t \ge 0t≥0
yt=yt+1−1σ (it−πt+1)(demand / dynamic IS curve)πt=β πt+1+κ yt(supply / New Keynesian Phillips curve)it=ϕπ πt+ϕy yt(monetary policy / Taylor rule).\begin{aligned} y_t &= y_{t+1} - \tfrac{1}{\sigma}\,(i_t - \pi_{t+1}) &&\text{(demand / dynamic IS curve)}\\ \pi_t &= \beta\,\pi_{t+1} + \kappa\, y_t &&\text{(supply / New Keynesian Phillips curve)}\\ i_t &= \phi_\pi\, \pi_t + \phi_y\, y_t &&\text{(monetary policy / Taylor rule)}. \end{aligned}yt​πt​it​​=yt+1​−σ1​(it​−πt+1​)=βπt+1​+κyt​=ϕπ​πt​+ϕy​yt​​​(demand / dynamic IS curve)(supply / New Keynesian Phillips curve)(monetary policy / Taylor rule).​
  1. Bounded sequence. A real sequence (xt)(x_t)(xt​) is bounded if there is CCC with ∣xt∣≤C|x_t| \le C∣xt​∣≤C for all ttt.
  2. Determinacy. The parameter vector is determinate if every equilibrium in which yyy, π\piπ and iii are all bounded is identically zero, i.e. the steady state is the unique bounded equilibrium.

These three blocks (demand, supply, monetary policy) are exactly the simplified DSGE model described in the source; the definitions are shared by every statement of the mission.

Formalization Note. Sequences are functions N→R\mathbb N \to \mathbb RN→R. The factor 1/σ1/\sigma1/σ uses Lean's total division, so for σ=0\sigma = 0σ=0 the IS equation degenerates to yt=yt+1y_t = y_{t+1}yt​=yt+1​; the theorems that use this definition assume σ>0\sigma > 0σ>0 or σ≠0\sigma \ne 0σ=0. Expectations operators are absent because the model is deterministic.

Definition code
import Mathlib

/-!
# The basic three-equation New Keynesian model (deterministic, shock-free)

All variables are deviations from the zero-inflation steady state:
* `y t` — output gap in period `t`,
* `π t` — inflation in period `t`,
* `i t` — nominal interest rate in period `t`.

Parameters: `σ` (inverse elasticity of intertemporal substitution), `β` (discount factor),
`κ` (slope of the Phillips curve), `φπ`, `φy` (Taylor-rule coefficients).
-/

namespace DSGE

/-- `(y, π, i)` solves the three-equation New Keynesian model in every period `t`:
* demand (dynamic IS curve): `y t = y (t+1) - (1/σ) (i t - π (t+1))`,
* supply (New Keynesian Phillips curve): `π t = β π (t+1) + κ y t`,
* monetary policy (Taylor rule): `i t = φπ π t + φy y t`. -/
def IsNKEquilibrium (σ β κ φπ φy : ℝ) (y π i : ℕ → ℝ) : Prop :=
  ∀ t : ℕ,
    y t = y (t + 1) - (1 / σ) * (i t - π (t + 1)) ∧
    π t = β * π (t + 1) + κ * y t ∧
    i t = φπ * π t + φy * y t

/-- A real sequence is bounded: there is `C` with `|x t| ≤ C` for all `t`. -/
def IsBoundedSeq (x : ℕ → ℝ) : Prop :=
  ∃ C : ℝ, ∀ t : ℕ, |x t| ≤ C

/-- Determinacy: the zero (steady-state) path is the only bounded solution of the model. -/
def IsDeterminate (σ β κ φπ φy : ℝ) : Prop :=
  ∀ y π i : ℕ → ℝ, IsNKEquilibrium σ β κ φπ φy y π i →
    IsBoundedSeq y → IsBoundedSeq π → IsBoundedSeq i →
    ∀ t : ℕ, y t = 0 ∧ π t = 0 ∧ i t = 0

end DSGE
Source
Wikipedia, "Dynamic stochastic general equilibrium" (uploaded PDF), section "DSGE modeling — Structure" (simplified demand / supply / monetary-policy model) and section "Criticism" (consumption Euler equation paragraph); https://en.wikipedia.org/wiki/Dynamic_stochastic_general_equilibrium; equations as in J. Galí, Monetary Policy, Inflation, and the Business Cycle, Princeton University Press, 2008, Chapter 3 (the basic New Keynesian model under an interest-rate rule); J. Bullard and K. Mitra, Learning about monetary policy rules, J. Monetary Economics 49 (2002) 1105-1129
Read-back

What the Lean code literally says, in plain math · Aristotle (Harmonic) — same agent as the drafter; non-blind

Non-blind read-back — not independent testimony. This read-back was written by the same agent that drafted the Lean statements (the mission captain), with full knowledge of the source material and of the intended meaning. It is not a blind audit and must not be mistaken for independent testimony. Reviewers should compare the Lean code against the source themselves or obtain a separate blind read-back.

The file introduces three notions, all inside the namespace DSGE.

1. Equilibrium. Given real numbers σ,β,κ,ϕπ,ϕy\sigma, \beta, \kappa, \phi_\pi, \phi_yσ,β,κ,ϕπ​,ϕy​ and three real sequences y,π,i:N→Ry, \pi, i : \mathbb N \to \mathbb Ry,π,i:N→R, the predicate holds iff for every natural number ttt all three equations hold:

yt=yt+1−1σ (it−πt+1),πt=β πt+1+κ yt,it=ϕπ πt+ϕy yt.y_t = y_{t+1} - \frac{1}{\sigma}\,(i_t - \pi_{t+1}),\qquad \pi_t = \beta\,\pi_{t+1} + \kappa\,y_t,\qquad i_t = \phi_\pi\,\pi_t + \phi_y\,y_t .yt​=yt+1​−σ1​(it​−πt+1​),πt​=βπt+1​+κyt​,it​=ϕπ​πt​+ϕy​yt​.

No sign or nonzeroness condition on any parameter is imposed by the definition. When σ=0\sigma = 0σ=0, the expression 1/σ1/\sigma1/σ evaluates to 000 (total division), so the first equation becomes yt=yt+1y_t = y_{t+1}yt​=yt+1​.

2. Bounded sequence. A sequence x:N→Rx : \mathbb N \to \mathbb Rx:N→R is bounded iff there exists a real CCC with ∣xt∣≤C|x_t| \le C∣xt​∣≤C for all ttt.

3. Determinacy. For parameters σ,β,κ,ϕπ,ϕy\sigma, \beta, \kappa, \phi_\pi, \phi_yσ,β,κ,ϕπ​,ϕy​, determinacy holds iff for all sequences y,π,iy, \pi, iy,π,i: if (y,π,i)(y,\pi,i)(y,π,i) is an equilibrium in the sense of 1, and yyy, π\piπ and iii are each bounded, then yt=0y_t = 0yt​=0, πt=0\pi_t = 0πt​=0 and it=0i_t = 0it​=0 for every ttt. Unbounded equilibria are not restricted. The zero sequences are always an equilibrium, so determinacy says exactly that no nonzero bounded equilibrium exists.

Human review
  • Endorsed by Shuze Chen · Oct 10, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Lucas · Oct 10, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me