You can't only view it through the lens of the amount of production. You're missing more than half the story.
Inflation is sometimes described as too much money chasing too few goods.
More specifically, it can be a change in the balance between the amount of money and the amount of goods and services, such that there's some combination of more money, and less goods and services.
So yes, a reduction in production is one possible cause of inflation. An increase in the supply of money is another.
Money doesn't have value in and of itself. Its value comes from its scarcity, (and its credibility, its usefulness as a medium of exchange and a store of value, and so on)
If that scarcity is reduced (by creating enough money to give each person a million dollars, and then doing that), then its unit value decreases a lot - the scarcity value of a single dollar has just hugely decreased. In other words, each unit of production (of a good or a service) can now be exchanged for a lot more dollars. That is to say prices rise, and we have inflation.
Inflation is about the amount of production, the amount of money, the changes in each of those, the interaction between the two amounts, and the interaction between the changes in the two amounts. Inflation is also about the accumulated expectations of the market, of the future of all of those things. It can also be about changes in the balance between the production of different types of goods and services; and changes in the composition of the basket of goods and services that are used to measure inflation. And it can be about changes in the method of calculating inflation.
So that's why it's much more interesting and complex than merely the amount of production.