Please help me, a mathematician, to make sense of entropy. I know it's a topic with about a million questions already, so I understand if this gets ignored. Yet for the life of me, I cannot make sense of the previous answers.
So apparently the definition of entropy change in a system is $\Delta S = \int_\mathrm{rev} \frac{\mathrm d Q}{T}$ and this is a state variable. I also know that for irreversible paths, you have to find a reversible one that links the same thermodynamic states to calculate the entropy. Yet in my professor's notes it says
$$ \mathrm dS = \oint \frac{\mathrm dQ}{T} < 0 \text{ for irreversible processes }$$
(is this even still an entropy difference? The notation $dS$ instead of $\Delta S$ confuses me) and elsewhere, talking about the Sterling process, it also says
$$ \oint_{irrev} \frac{\mathrm dQ}{T} < 0 \text{ , so the entropy of the machine (not the total entropy) decreases } $$
so it really must be talking about the entropy change in the system (the machine) and not about the total entropy change of system + surroundings. But how can this be when for a system in a circular process the difference in any state variable is 0?