But actually how much mass must you necessarily lose to stay alive each day? Most of it is probably water, so if we allow "four pills plus as much water" at a meal then it's harder to rule out the pill diet.
Maybe a better way to bound it: apparently we exhale around 1 kg of CO2 each day, which has 370g of carbon in it so unless we can radically reengineer our metabolism I guess you need a minimum of 370g daily to maintain carbon levels. 370g / 3 meals / 4 pills = 30g per pill. Even with the density of diamond that would be (picking a convenient rough number) 8 cm3 or 2x2x2cm.
Which is... a hard pill to swallow. Maybe not impossible though.
With 2000 kcal, three meals with four pills equals twelve lard pills, each in a squishy 2.7cm cube format, easy to swallow. ;-)
It doesn't have to be a completely self-contained solution.
[1] Also armed forced with deployed troops would love this too as it makes food logistics much easier.
(NASA does not like the side-effects of an all-oil diet on space toilets, I suspect.)
(Edit typo fix)