Price level in Gali ch.3/7

Hello everyone,

I was looking at Johannes Pfeifer’s mod file for the NK model (particular ch.3 and 7 but maybe also in other chapters) and I noticed that in the model block with the first order conditions, we define one time the phillips curve pi=bettapi(+1)+kappay_gap;
and a few lines further down we define again the price level with exact the same definition pi=p-p(-1);

Hence, we have in the model block one variable but two definitions, I just wondered why we do this and how is this possible that the model still works (side note: the code runs, there are no errors).

Thanks for any clarification.

The NK-PC determines the dynamics of inflation.
The second equation you have mentioned, the definition of the price level, determines the dynamics of the log price level.
Therefore the number of equations equals the number of variables.