Compromise said:As for the value of food, yes I get it. All I'm saying is that the food is not valuable directly. A city working 10 grass pigs makes 42 food and can grow to size 21 even if the happy cap is 10. The value comes when you whip the people, not from the food itself. In fact, happy and unhappy people cost the same to support, so the unhappy people in this ridiculous situation have negative value.
True, food isn't valuable directly. It is only valuable as far as your ability to convert it into hammers or commerce. Mines are one such way of performing that conversion; slavery is another. The primary difference between the two is this fact: working a mine is limited to converting 1 food per turn (2 if it's on a plains hill, but the return is lower). Slavery, however, can convert a large amount of food each turn (sometimes at an even better rate). To put it this way, if I have a city at 4 population making +3 food, I would have to grow three additional population and have hills available to convert those food into hammers via mines at 1:3. With slavery, though, I can always and easily convert all 3 surplus food into hammers (at either ~3:7 or 3:8 ratio depending on whether you make use of the bug) by sacrificing 2 citizens.
The reason that pigs and other food resources are valuable is because they have a large food output that enables lots of hammers. In many cities, though, there are not methods available to convert that excess food to hammers on the same scale that slavery can. To fully realize the potential of just one pig resource, you would need 4 grassland hills available, and would need to grow to fill those hills (costing you population maintenance). Slavery allows you to convert all of the food from the pigs at a high efficiency.
Food is only as powerful as two things: a) the ratio at which it can be converted into hammers (or commerce) and b) the amount that can be converted. Slavery gives you nearly the maximum value in both of those criteria. Mines nearly maximize (a), but sacrifce (b).
The reason your analysis showed poor returns for slavery is because you looked at a situation with 1 surplus food. In that scenario, a single mine is a very likely and accessible method of conversion into hammers. The reason you eliminated the pigs from the equation is, likely, because you couldn't think of anything for the city with the mine to do with all that excess food. That is precisely the problem you're faced with in game. Slavery provides you a very easy way to fully utilize the (very powerful) food resources at your disposal.