having high IQ is not substitute for knowledge.
if you go for more than 6 hours without protein in the diet you will begin to lose muscle relative to what amount of muscle you would have had if you had protein.
working out while not eating protein will only make you lose muscle faster because you will accelerate muscle breakdown without increasing protein synthesis ( granted, this will depend on how long the fast is - if the stimulus of workout lasts longer than the fast then you will still build muscle, but i would NEVER work out unless i was going to eat protein in the following couple of hours ).
fasting when your weight randomly goes up is not as clever an idea as it sounds, because it isn't random fluctuations ( that are mostly due to either water weight or contents of your intestines ) that will kill you but the integral of visceral fat mass overtime. so for example if you carried an average of 20 lbs of visceral fat for 20 years that 400 lbs of visceral fat pound-years is what is going to kill you.
the real reason to fast is because it is psychologically easier to periodically fast than to always stop eating before you're full ( which is what a dietitian would tell you to do ).
always stopping before you're full would be like having sex every day but always stopping before reaching orgasm. this is torture and the reason why very few people succeed on such diets. it is obviously more pleasurable to go for a few days without any sex and then be completely satisfied. likewise it is more pleasurable to touch no food the whole day and then only eat in the last few hours of the day ( how most people fast, and also how our hunter ancestors used to eat ).
this is the real reason for fasting - everything else is pseudoscientific BS charlatans make up to rationalize it with things like "autophagy" and so on.
we humans ( and other carnivores ) evolved to starve most of the time and occasionally pig out. nibbling until half full is contrary to our nature, which is why everybody hates that and few can stick to it.
if any of you want to know more about nutrition ask me on my site here
https://dissidentsound.discoursehosting.net/c/health/nutrition/113