Jainism has been advocating fasting for thousands of years as a way to purify the soul, but with the knowledge that it has numerous health benefits, many of which you discussed in your post.
this process trigered after 4 days is called ketosis. r/keto has all the info you need