Consumption Euler equation (two-period problem)
ProvedDSGE.consumption_euler_equationConsider a consumer with period utility , discount factor , real interest rate with , and wealth . Consuming today leaves to be saved, which pays tomorrow; lifetime utility is . If maximises over , and is differentiable at and at , then
This is the consumption Euler equation that the source describes in words: "our marginal utility from consumption today must equal our marginal utility from consumption in the future, with a weighting parameter that refers to the valuation that we place on the future relative to today." Its log-linearisation is the demand block (dynamic IS curve) of the New Keynesian model.
Formalization Note. The hypotheses and are the model's standing conventions; the first-order condition itself does not depend on them.
import Mathlib
namespace DSGE
theorem consumption_euler_equation (u : ℝ → ℝ) (β r w c₀ : ℝ)
(hβ : 0 < β) (hr : 0 < 1 + r) (hc₀ : c₀ ∈ Set.Ioo 0 w)
(hmax : ∀ c ∈ Set.Ioo 0 w,
u c + β * u ((1 + r) * (w - c)) ≤ u c₀ + β * u ((1 + r) * (w - c₀)))
(hu₀ : DifferentiableAt ℝ u c₀) (hu₁ : DifferentiableAt ℝ u ((1 + r) * (w - c₀))) :
deriv u c₀ = β * (1 + r) * deriv u ((1 + r) * (w - c₀)) := by sorry
end DSGERead-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.
For every function and real numbers , assume:
- and ;
- ;
- for every with : , i.e. maximises on the open interval ;
- is (Fréchet) differentiable at the point and at the point .
Then , where denotes the derivative of . No concavity, monotonicity or domain restriction on is assumed; is defined on all of . Hypothesis 2 forces . The hypotheses and are present but the conclusion would follow without them.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.