Inflation is when the ratio of <money available>/<goods available> grows.
This can happen by the numerator growing (your (a)) or the denominator shrinking (your (b)).
This can happen by the numerator growing (your (a)) or the denominator shrinking (your (b)).