There is a well known hypothetical legal case in philosophy of law known as The Case of the Speluncean Explorers
In the hypothetical case, a trapped team of five spelunkers determine via radio contact with physicians that they will have starved to death by the time they are rescued, and thus elect to eat one of their party. Once the remaining four spelunkers are rescued, they are all indicted for the murder of their fifth member. The article proceeds to examine the case from the perspectives of five different legal principles, with widely varying conclusions as to whether or not the spelunkers are guilty, and whether or not they should be executed (as is the mandatory punishment for murder in the fictitious commonwealth where the case takes place).
What is Islam's take on this case? Is it justifiable to eat according to sharia.